Skip to content

fisx-suite/fisx-preprocessor-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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