Skip to content

Commit

Permalink
build: update bundle-module script
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 16, 2020
1 parent b7be0cb commit a3aa387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bundle-module
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const buildVersion = async (opts, write = true, compressed = false) => {
const bundle = await rollup.rollup(INPUT_OPTS);
const bundleOut = (await bundle.generate(opts)).output[0];
const bundleCode = bundleOut.code;
const terserOut = terser.minify(bundleCode, TERSER_OPTS).code;
const terserOut = (await terser.minify(bundleCode, TERSER_OPTS)).code;
const gzSize = gz.sync(terserOut);

write && fs.writeFileSync(opts.file, compressed ? terserOut : bundleCode);
Expand Down

0 comments on commit a3aa387

Please sign in to comment.