File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change 22var extendscriptr = require ( 'commander' ) ;
33var packageJson = require ( './package.json' ) ;
44var browserify = require ( 'browserify' ) ;
5- var babelify = require ( 'babelify' ) ;
65var prependify = require ( 'prependify' ) ;
76var fs = require ( 'fs' ) ;
87
@@ -37,20 +36,18 @@ if ( adobeTarget &&
3736 browserifyPlugins . push ( [ prependify , '#target ' + extendscriptr . target + '\n' ] ) ;
3837}
3938
40- babelify . configure ( {
41- presets : [
42- 'es2015'
43- ] ,
44- plugins : [
45- 'babel-plugin-transform-es3-member-expression-literals' ,
46- 'babel-plugin-transform-es3-property-literals' ,
47- 'babel-plugin-transform-es5-property-mutators'
48- ]
49- } ) ;
50-
5139var b = browserify ( {
5240 entries : [ extendscriptr . script ] ,
53- transform : babelify ,
41+ transform : [ [ 'babelify' , {
42+ presets : [
43+ 'es2015'
44+ ] ,
45+ plugins : [
46+ 'babel-plugin-transform-es3-member-expression-literals' ,
47+ 'babel-plugin-transform-es3-property-literals' ,
48+ 'babel-plugin-transform-es5-property-mutators'
49+ ]
50+ } ] ] ,
5451 plugin : browserifyPlugins
5552} ) ;
5653
You can’t perform that action at this time.
0 commit comments