Skip to content

Commit 3903e1e

Browse files
committed
fix bundle wrapper
1 parent c699c40 commit 3903e1e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tasks/util/bundle_wrapper.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
3939
var pathToMinBundle = opts.pathToMinBundle;
4040
var pending = (pathToMinBundle && pathToBundle) ? 2 : 1;
4141

42+
config.minify = !!(pathToMinBundle && pending === 1);
43+
config.outfile = pathToBundle || pathToMinBundle;
44+
config.sourcemap = false;
45+
await build(config);
46+
4247
if(pending === 2) {
4348
config.minify = true;
4449
config.outfile = pathToMinBundle;
50+
// config.sourcemap = true;
4551
await build(config);
4652
}
4753

48-
config.minify = !!(pathToMinBundle && pending === 1);
49-
config.outfile = pathToBundle || pathToMinBundle;
50-
config.sourcemap = false;
51-
52-
await build(config);
53-
5454
if(cb) cb();
5555
}

0 commit comments

Comments
 (0)