@morgul/snowpack-plugin-vue2
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -25,2 +25,11 @@ // --------------------------------------------------------------------------------------------------------------------- | ||
// Remove the obnoxious comment newlines in the generated code | ||
descriptor.script.content = descriptor.script.content.replace(/\/\/\n/g, ''); | ||
// Support using `Vue.extends()`. Code adapted from: | ||
// https://github.com/vuejs/vue-loader/blob/master/lib/runtime/componentNormalizer.js#L17-L20 | ||
descriptor.script.content = descriptor.script.content.replace('export default ', 'var scriptExports = '); | ||
descriptor.script.content += ';\nvar options = typeof scriptExports === \'function\' ? scriptExports.options : scriptExports;\n'; | ||
descriptor.script.content += 'export default options;' | ||
return { | ||
@@ -27,0 +36,0 @@ descriptor, |
{ | ||
"name": "@morgul/snowpack-plugin-vue2", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A snowpack vue2 compiler based on `@snowpack/plugin-vue`.", | ||
@@ -5,0 +5,0 @@ "main": "plugin/plugin.js", |
@@ -17,3 +17,3 @@ # Snowpack Vue 2 Plugin | ||
```bash | ||
$ npm install -D snowpack-plugin-vue2 | ||
$ npm install -D @morgul/snowpack-plugin-vue2 | ||
``` | ||
@@ -23,3 +23,3 @@ | ||
```bash | ||
$ yarn add -D snowpack-plugin-vue2 | ||
$ yarn add -D @morgul/snowpack-plugin-vue2 | ||
``` | ||
@@ -33,3 +33,3 @@ | ||
"plugins": [ | ||
"snowpack-plugin-vue2" | ||
"@morgul/snowpack-plugin-vue2" | ||
] | ||
@@ -36,0 +36,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39695
430