6.6.7 • Published 8 years ago

babel-plugin-transform-es2015-modules-amd-simple v6.6.7

Weekly downloads
244
License
MIT
Repository
github
Last release
8 years ago

babel-plugin-transform-es2015-modules-amd-simple

Alterntative to default babel-plugin-transform-es2015-modules-amd that does not mangle symbol names. Simply uses babel-plugin-transform-es2015-modules-commonjs-simple as a base instead of Babel's default babel-plugin-transform-es2015-modules-commonjs. As a result, it supports the same options as babel-plugin-transform-es2015-modules-commonjs-simple. View that repo for more info.

Installation

$ npm install babel-plugin-transform-es2015-modules-amd-simple

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-es2015-modules-amd-simple"]
}

Via CLI

$ babel --plugins transform-es2015-modules-amd-simple script.js

Via Node API

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