diff --git a/builder.js b/builder.js index 2d8fd47..d0bb590 100644 --- a/builder.js +++ b/builder.js @@ -17,7 +17,7 @@ mkdir('dist').then(_ => { fs.writeFileSync(pkg.main, data); // Uglify & print gzip size - const { code } = minify(data); + const { code } = minify(data, { toplevel:true }); const int = sizer.sync(code); console.log(`> gzip size: ${pretty(int)}`);