Skip to content

Instantly share code, notes, and snippets.

@woshi82
Created December 7, 2016 13:15
Show Gist options
  • Save woshi82/2329ae8e36e90307928d7086b7e8344e to your computer and use it in GitHub Desktop.
Save woshi82/2329ae8e36e90307928d7086b7e8344e to your computer and use it in GitHub Desktop.
// 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