Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf75f64

Browse files
committed
fix bundle_wrapper
1 parent a6d1437 commit bf75f64

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/util/bundle_wrapper.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
4040

4141
config.outfile = pathToBundle || pathToMinBundle;
4242

43-
config.minify = !!(pathToMinBundle && pending === 1);
44-
config.sourcemap = false;
45-
46-
await build(config);
47-
4843
if(pending === 2) {
4944
config.minify = true;
5045
await build(config);
5146
}
5247

48+
config.minify = !!(pathToMinBundle && pending === 1);
49+
config.sourcemap = false;
50+
51+
await build(config);
52+
5353
if(cb) cb();
5454
}

0 commit comments

Comments
 (0)