Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.14 KB

fisx-preprocessor-babel

Dependency Status devDependency Status NPM Version

A preprocessor to process the code compiled by babel when using babel-plugin-external-helpers plugin.

How to use

Install

npm install fisx-preprocessor-babel --save-dev

Add configure to fis-conf.js

fis.match('/src/**.js', {
    preprocessor: fis.plugin('babel')
});

You can use the fisx-prepackager-babel plugin to output the babel helper code file.

Options

  • babelHelperModId - string optional: define the babel helpers module id, by default babelHelpers

  • disableBabel - boolean optional: if the processed file has disableBabel configure with true, the preprocessor will ignore this file