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

Skip to content

Commit 70f6ef0

Browse files
committed
fix disabling attribute meta compression
1 parent faaff88 commit 70f6ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/util/bundle_wrapper.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
2929

3030
config.entryPoints = [pathToIndex];
3131
config.outfile = pathToBundle || pathToMinBundle;
32-
if(!opts.noCompressAttributes) config.plugins.push(browserifyAdapter(transform));
32+
if(!opts.noCompressAttributes) {
33+
config.plugins = config.plugins.concat([browserifyAdapter(transform)]);
34+
}
3335

3436
if(opts.noPlugins) config.plugins = [];
3537
var pathToMinBundle = opts.pathToMinBundle;

0 commit comments

Comments
 (0)