Closed johannes-z closed 4 years ago
Hi, custom minifier is not supported anymore. Also uglify-es is not longer maintained. Please use rollup-plugin-terser instead. Terser is an actively maintained fork of uglify-es.
I create a new pr for this issue:
renderChunk(code, chunk, outputConf) {
const illegalFormat = ["es"];
if (illegalFormat.indexOf(outputConf.format) !== -1) {
return code;
}
return this.worker.transform(code, minifierOptions).catch(error => {
const { message, line, col: column } = error;
console.error(
codeFrameColumns(code, { start: { line, column } }, { message })
);
throw error;
});
},
@FoxDaxian What's the point? This is lying that everything works. Just use terser.
When I build my package using
umd
the uglify plugin works. It doesn't usingesm
. I already am usinguglify-es
:Here are the dependencies in my package.json:
my rollup.config.js:
This is the error message I get: