Created
December 7, 2016 13:15
-
-
Save woshi82/2329ae8e36e90307928d7086b7e8344e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var browserifyES6Transpiler = require('browserify-es6-transpiler'); | |
var babelify = require('babelify'); | |
// fis3 模块化开发支持 | |
fis.config.set('settings.preprocessor.browserify', { | |
browserify: { | |
debug: true, | |
transform: [ | |
[ | |
babelify, | |
{"presets": ["es2015", "react-native", 'stage-3']} | |
] | |
] | |
} | |
}); | |
fis.match('src/**.js', { | |
// parser: fis.plugin('babel'), | |
// parser: [ | |
// fis.plugin('babel-6.x', { | |
// presets: ['es2015-loose', 'react', 'stage-3'] | |
// }), | |
// fis.plugin('translate-es3ify') | |
// ], | |
preprocessor: fis.plugin('browserify'), | |
release: '$0', | |
rExt: '.js' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment