fisx-prepackager-babel
v0.1.1
Published
A prepacakger for fisx when using babel-plugin-external-helpers plugin
Maintainers
Readme
fisx-prepackager-babel
A prepackager for fisx to extract the used babel helper api code to a file when using babel-plugin-external-helpers plugin.
How to use
Install
npm install fisx-prepackager-babel --save-devAdd configure to fis-conf.js
// specify the used babel
fis.require('prepackager-babel').babel = require('babel-core');
fis.match('::package', {
prepackager: fis.plugin('babel')
});Add the babelHelpers module variable declaration in compiled babel file, use fisx-preprocessor-babel plugin.
Options
babelHelperFileName -
stringoptional: define the output babel helper file name, by defaultsrc/babelHelpers.jsbabelHelperFileOption -
Objectoptional: specify the output babel helper fis file option, the detail options refer fisFileclass
