fis-parser-babel-react
v1.0.0
Published
es6 parser for fis [forked from xiangshouding/fis-parser-babel]
Downloads
15
Readme
fis-parser-babel-react
es6 parser for fis
Forked form https://github.com/xiangshouding/fis-parser-babel
INSTALL
npm install -g nimojs/fis-parser-babel-react
USE
in fis3
fis.match('/es6/**.js', { parser: fis.plugin('babel-react') });
in fis
fis.config.set('modules.parser.js', 'babel-react'); fis.config.set('settings.parser.babel-react', { // options }); fis.config.set('roadmap.path', [ { reg: '/es6/**.js', isES6: true }, { reg: '**.js', isES6: false // 排除其他 } ].concat(fis.config.get('roadmap.path', []));