vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
342 stars 52 forks source link

ES6 injection #79

Closed cristovao-trevisan closed 5 years ago

cristovao-trevisan commented 5 years ago

Hello, I am using rollup-plugin-vue, but it breaks uglify as of now. The reason is the es6 syntax of the injected (like *const* __vue_inject_styles__) by this project.

Any thoughts on this??

3cp commented 5 years ago

I would say this is neither a vue bug nor rollup bug.

Switch from uglify to terser (uglify-es successor). https://github.com/TrySound/rollup-plugin-terser

cristovao-trevisan commented 5 years ago

I've found tenser some time ago, but forgot about this issue. Sorry, closing it now