Skip to content

A babel plugin to transform N4JS SystemJS modules into CommonJS, enabling bundlers.

License

Notifications You must be signed in to change notification settings

dbo/babel-plugin-transform-n4js-systemjs-commonjs

Repository files navigation

babel-plugin-transform-n4js-systemjs-commonjs

Build Status npm semantic-release Commitizen friendly

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 IDs
  • stripPackageID_re: [string|Regexp] regex to rewrite/strip parts of the package ID by convention
  • noSourceMap: [boolean] whether the N4JS source-map reference should be dropped; defaults to true

License

MIT © Daniel Bölzle

About

A babel plugin to transform N4JS SystemJS modules into CommonJS, enabling bundlers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published