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](https://github.com/jamietre/babel-plugin-transform-es2015-modules-commonjs-simple) as

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-es2015-modules-amd-simple
6.6.76 years ago6 years agoMinified + gzip package size for babel-plugin-transform-es2015-modules-amd-simple in KB

Readme

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"]
});