File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
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' ) ;
56var prependify = require ( 'prependify' ) ;
67var fs = require ( 'fs' ) ;
78
@@ -36,9 +37,20 @@ if ( adobeTarget &&
3637 browserifyPlugins . push ( [ prependify , '#target ' + extendscriptr . target + '\n' ] ) ;
3738}
3839
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+
3951var b = browserify ( {
4052 entries : [ extendscriptr . script ] ,
41- transform : ' babelify' ,
53+ transform : babelify ,
4254 plugin : browserifyPlugins
4355} ) ;
4456
You can’t perform that action at this time.
0 commit comments