Skip to content

Commit

Permalink
[INFRA] do not minify public API in the bundle (#461)
Browse files Browse the repository at this point in the history
The default terser options minified everything, including class and function
names which prevent to use the bundle in the examples.
  • Loading branch information
tbouffard authored Aug 10, 2020
1 parent 3bc09bc commit fb2cc68
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ if (devMode) {
}

if (demoMode) {
plugins.push(terser());
plugins.push(
terser({
compress: false,
mangle: false,
ecma: 6,
}),
);
}

export default {
Expand Down

0 comments on commit fb2cc68

Please sign in to comment.