0.1.3 • Published 7 years ago

fis3-parser-babel6 v0.1.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago