babel-plugin-transform-n4js-systemjs-commonjs
v2.1.0
Published
A babel plugin to transform N4JS SystemJS modules into CommonJS, enabling webpack (via babel-loader) or react-native packager.
Downloads
10
Readme
babel-plugin-transform-n4js-systemjs-commonjs
A babel plugin to transform N4JS SystemJS modules into CommonJS, enabling webpack (via babel-loader) or react-native packager.
Install
$ npm install babel-plugin-transform-n4js-systemjs-commonjs --save-dev
Usage
Using a .babelrc
:
{
"plugins": ["babel-plugin-transform-n4js-systemjs-commonjs"]
}
or via CLI:
$ babel --plugins babel-plugin-transform-n4js-systemjs-commonjs ...
Plugin Options:
verbose: [string]
switches on verbose logging of the used module IDsstripPackageID_re: [string|Regexp]
regex to rewrite/strip parts of the package ID by conventionnoSourceMap: [boolean]
whether the N4JS source-map reference should be dropped; defaults totrue
License
MIT © Daniel Bölzle