chore: fix messed up minified esm packages

This commit is contained in:
Miralem Drek
2019-05-10 15:01:57 +02:00
parent fd1b17ac85
commit bda7e3764e

View File

@@ -144,7 +144,7 @@ const config = (isEsm) => {
], ],
}; };
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production' && !isEsm) {
cfg.plugins.push(terser({ cfg.plugins.push(terser({
output: { output: {
preamble: banner, preamble: banner,