Skip to content

Commit c699c40

Browse files
committed
revise adjusting plugins
1 parent e83406b commit c699c40

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
@@ -5,6 +5,8 @@ import browserifyAdapter from 'esbuild-plugin-browserify-adapter';
55

66
import transform from '../../tasks/compress_attributes.js';
77

8+
var basePlugins = esbuildConfig.plugins;
9+
810
/** Convenience bundle wrapper
911
*
1012
* @param {string} pathToIndex path to index file to bundle
@@ -30,7 +32,7 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
3032
config.entryPoints = [pathToIndex];
3133
config.outfile = pathToBundle || pathToMinBundle;
3234
if(!opts.noCompressAttributes) {
33-
config.plugins = config.plugins.concat([browserifyAdapter(transform)]);
35+
config.plugins = basePlugins.concat([browserifyAdapter(transform)]);
3436
}
3537

3638
if(opts.noPlugins) config.plugins = [];

0 commit comments

Comments
 (0)