babel/packages/babel-plugin-transform-es2015-modules-systemjs
Kai Cataldo f3a6e4b0ae Fix tests with duplicate named exports (#4538)
* Fix babel-plugin-transform-flow-strip-types tests

* Fix babel-plugin-transform-es2015-modules-umd tests

* Fix babel-generator tests

* Fix babel-plugin-transform-es2015-modules-systemjs tests

* Fix babel-plugin-transform-es2015-modules-commonjs tests

* Fix babel-plugin-transform-es2015-modules-amd tests
2016-09-21 10:52:59 +02:00
..
2015-10-30 23:45:42 +00:00
2016-08-24 17:40:46 -06:00

babel-plugin-transform-es2015-modules-systemjs

Installation

$ npm install babel-plugin-transform-es2015-modules-systemjs

Usage

.babelrc

// without options
{
  "plugins": ["transform-es2015-modules-systemjs"]
}

// with options
{
  "plugins": [
    ["transform-es2015-modules-systemjs", {
      // outputs SystemJS.register(...)
      "systemGlobal": "SystemJS"
    }]
  ]
}

Via CLI

$ babel --plugins transform-es2015-modules-systemjs script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-modules-systemjs"]
});