Skip to content

A prepacakger for fisx when using babel-plugin-external-helpers plugin

Notifications You must be signed in to change notification settings

fisx-suite/fisx-prepackager-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fisx-prepackager-babel

Dependency Status devDependency Status NPM Version

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 default src/babelHelpers.js

  • babelHelperFileOption - Object optional: specify the output babel helper fis file option, the detail options refer fis File class

About

A prepacakger for fisx when using babel-plugin-external-helpers plugin

Resources

Stars

Watchers

Forks

Packages

No packages published