fis3-parser-babel6

0.1.3 • Public • Published

fis3-parser-babel6

Dependency Status devDependency Status NPM Version

A babel 6 parser for fis3

How to use

Install

npm install fis3-parser-babel6 --save-dev

Add 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 - boolean optional: experiment, if you using npm2 to manage the dependencies, you can enable this option to speed up the babel startup time

  • more babel options, please refer babel

Readme

Keywords

Package Sidebar

Install

npm i fis3-parser-babel6

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • wuhuiyao