Skip to content

Commit d5ae4ba

Browse files
author
Bruno Herfst
committed
Fix refactor bug
1 parent 9aff073 commit d5ae4ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extendscriptr.options.forEach(function(opt) {
2626
);
2727
});
2828

29+
var browserifyPlugins = [];
2930
var adobeTarget = String(extendscriptr.target).toLowerCase();
3031
if ( adobeTarget &&
3132
( adobeTarget.indexOf('indesign') >= 0 ||
@@ -40,7 +41,7 @@ if( extendscriptr.typescript ) {
4041
return;
4142
} else {
4243
var prototypePolyfills = fs.readFileSync(require.resolve('extendscript.prototypes'), 'utf8');
43-
var browserifyPlugins = [ [ prependify, prototypePolyfills ] ];
44+
browserifyPlugins.push ([ prependify, prototypePolyfills ]);
4445

4546
var b = browserify({
4647
entries: [ extendscriptr.script ],

0 commit comments

Comments
 (0)