fisx-prepackager-babel
v0.1.1
Published
A prepacakger for fisx when using babel-plugin-external-helpers plugin
Downloads
4
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-dev
Add 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 -
string
optional
: define the output babel helper file name, by defaultsrc/babelHelpers.js
babelHelperFileOption -
Object
optional
: specify the output babel helper fis file option, the detail options refer fisFile
class