rollup-plugin-vue
Advanced tools
Comparing version 5.1.6 to 5.1.7
@@ -5,2 +5,14 @@ # Change Log | ||
<a name="5.1.7"></a> | ||
## [5.1.7](https://github.com/vuejs/rollup-plugin-vue/compare/v5.1.6...v5.1.7) (2020-05-11) | ||
### Bug Fixes | ||
* bump component-compiler to allow tree-shaking ([a85e6d9](https://github.com/vuejs/rollup-plugin-vue/commit/a85e6d9)) | ||
* provide scopeId to template compiler when the component has scoped styles ([#337](https://github.com/vuejs/rollup-plugin-vue/issues/337)) ([1fec2c5](https://github.com/vuejs/rollup-plugin-vue/commit/1fec2c5)) | ||
* some wording ([#339](https://github.com/vuejs/rollup-plugin-vue/issues/339)) ([6a94a53](https://github.com/vuejs/rollup-plugin-vue/commit/6a94a53)) | ||
<a name="5.1.6"></a> | ||
@@ -7,0 +19,0 @@ ## [5.1.6](https://github.com/vuejs/rollup-plugin-vue/compare/v5.1.5...v5.1.6) (2020-01-22) |
@@ -179,6 +179,12 @@ 'use strict'; | ||
} | ||
const compiler = componentCompiler.createDefaultCompiler(opts); | ||
const descriptors = new Map(); | ||
if (opts.css === false) | ||
d('Running in CSS extract mode'); | ||
const getCompiler = ({ scopeId }) => { | ||
const options = Object.assign({}, opts); | ||
options.template = Object.assign({}, options.template, { compilerOptions: Object.assign({}, (options.template.compilerOptions | ||
? options.template.compilerOptions | ||
: {}), { scopeId: scopeId }) }); | ||
return componentCompiler.createDefaultCompiler(options); | ||
}; | ||
function prependStyle(id, lang, code, map) { | ||
@@ -258,2 +264,6 @@ if (!(lang in data)) | ||
: hash(filename + source)); | ||
const hasScopedStyles = descriptor.styles.some(style => !!style.scoped); | ||
const compiler = getCompiler({ | ||
scopeId: hasScopedStyles ? scopeId : undefined | ||
}); | ||
const styles = yield Promise.all(descriptor.styles.map((style) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -260,0 +270,0 @@ if (style.content) { |
{ | ||
"name": "rollup-plugin-vue", | ||
"version": "5.1.6", | ||
"version": "5.1.7", | ||
"description": "Roll .vue files", | ||
@@ -48,7 +48,7 @@ "author": "Rahul Kadyan <hi@znck.me>", | ||
"dependencies": { | ||
"@vue/component-compiler": "^4.1.0", | ||
"@vue/component-compiler-utils": "^3.0.0", | ||
"@vue/component-compiler": "^4.2.1", | ||
"@vue/component-compiler-utils": "^3.1.2", | ||
"debug": "^4.1.1", | ||
"hash-sum": "^1.0.2", | ||
"magic-string": "^0.25.2", | ||
"magic-string": "^0.25.7", | ||
"querystring": "^0.2.0", | ||
@@ -55,0 +55,0 @@ "rollup-pluginutils": "^2.4.1", |
@@ -7,3 +7,3 @@ <div class="text-xs-center" align="center" style="margin: 20px"> | ||
As vue-loader is for webpack and vueify is for browserify, similarly its for rollup. As we know, webpack and browserify concat stuff and make it runnable in browser. Its difficult to share .vue components. **Now roll your [Vue](http://vuejs.org/) components.** | ||
As vue-loader is for webpack and vueify is for browserify, so is this for rollup. As we know, webpack and browserify concat stuff and make it runnable in the browser. It's difficult to share .vue components. **Now roll your [Vue](http://vuejs.org/) components.** | ||
@@ -10,0 +10,0 @@ With rollup you can break your application into reusable modules. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
56719
844