Skip to content

Commit

Permalink
fix(esm): We do not compress esm module with terser anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Kopriwa committed Feb 25, 2019
1 parent b39ad22 commit c5daa80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function createConfig(options = {}) {
input: 'src/index.js',
external,
output: o,
plugins: prod ? plugins.concat([terser(), visualizer({ filename: './bundle-stats.html' })]) : plugins,
plugins: prod ? plugins.concat((o.format === 'es' ? [] : [terser()]).concat([visualizer({ filename: './bundle-stats.html' })])) : plugins,
}));
}

Expand Down

0 comments on commit c5daa80

Please sign in to comment.