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

Skip to content

Commit 523359a

Browse files
committed
fix bundle_wrapper to not clear plugins
1 parent c75eeb5 commit 523359a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/util/bundle_wrapper.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
2727

2828
config.entryPoints = [pathToIndex];
2929
config.outfile = pathToBundle || pathToMinBundle;
30-
config.plugins = opts.noCompress ? [] : [browserifyAdapter(transform)];
30+
if(!opts.noCompress) config.plugins.push(browserifyAdapter(transform));
3131

3232
var pathToMinBundle = opts.pathToMinBundle;
3333
var pending = (pathToMinBundle && pathToBundle) ? 2 : 1;

0 commit comments

Comments
 (0)