0.1.3 • Published 9 years ago
fis3-parser-babel6 v0.1.3
fis3-parser-babel6
A babel 6 parser for fis3
How to use
Install
npm install fis3-parser-babel6 --save-devAdd configure to fis-conf.js
// require the parser plugin and specify the parser
fis.require('parser-babel6').parser = require('babel-core');
fis.match('/src/**.js', {
parser: fis.plugin('babel6', {
// babel options
})
});By default, the babel helper api used information is saved to file.extras.babelHelpers. If you using babel-plugin-external-helpers plugin plugin, you can lookup the used information from file extras property.
If the processed fis file has disableBabel property set true, the parser will ignore this file.
Options
speed -
booleanoptional:experiment, if you using npm2 to manage the dependencies, you can enable this option to speed up the babel startup timemore babel options, please refer babel