Closed endymion00 closed 6 years ago
The latest version of this plugin uses uglify-js
package which is able to handle only es5. uglify-es
is unsupported these days and if you need to minify es6 syntax use rollup-plugin-terser instead.
@TrySound ok, thank you very much :)
I would accept pr with this info in docs.
Hi, I'm using the plugin in combination with rollup-plugin-typescript2. In my code I'm referencing lodash.clonedeep as external dependency (so it is not included in the bundle). I get the following error: (uglify plugin) Error: Error transforming bundle with 'uglify' plugin: Unexpected token: name (cloneDeep) Error: Error transforming bundle with 'uglify' plugin: Unexpected token: name (cloneDeep)"
My plugins section in rollup.config.js is:
By the way I tried 'rollup-plugin-uglify-es' and does not throw this error.
my tsconfig.json: