fis-parser-babel7
v0.1.0
Published
A Plugin to translate es2015/es2016/es2017 to es5 based on babel7 in fis.
Downloads
2
Maintainers
Readme
fis-parser-babel-latest
A Plugin to translate es2015/es2016/es2017 to es5 based on babel in fis/fis3.
INSTALL
npm install -g fis-parser-babel-latest
USE
in fis3
fis3.match('js/**.js', { parser: fis.plugin('babel-latest') })
fis3.match('js/**.js', { parser: fis.plugin('babel-latest', { "presets": [ ["env", { "loose": true }], "react", "stage-0" ] }) })
in fis
fis.config.set('modules.parser.js', 'babel-latest'); fis.config.set('settings.parser.babel-latest', { // options }); fis.config.set('roadmap.path', [ { reg: '/es6/**.js', isES6: true }, { reg: '**.js', isES6: false // 排除其他 } ].concat(fis.config.get('roadmap.path', []));