From bda7e3764e51838b3433c54467c0c9b07f193fa5 Mon Sep 17 00:00:00 2001 From: Miralem Drek Date: Fri, 10 May 2019 15:01:57 +0200 Subject: [PATCH] chore: fix messed up minified esm packages --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 52027b77d..fcd02aa33 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -144,7 +144,7 @@ const config = (isEsm) => { ], }; - if (process.env.NODE_ENV === 'production') { + if (process.env.NODE_ENV === 'production' && !isEsm) { cfg.plugins.push(terser({ output: { preamble: banner,