A preprocessor to process the code compiled by babel when using babel-plugin-external-helpers plugin.
npm install fisx-preprocessor-babel --save-dev
fis.match('/src/**.js', {
preprocessor: fis.plugin('babel')
});
You can use the fisx-prepackager-babel plugin to output the babel helper code file.
-
babelHelperModId -
string
optional
: define the babel helpers module id, by defaultbabelHelpers
-
disableBabel -
boolean
optional
: if the processed file has disableBabel configure withtrue
, the preprocessor will ignore this file