babel/packages/babel-plugin-transform-es2015-modules-commonjs
kpdecker 1286200712 Output auxiliaryCommentAfter before trail comment
Quick fix for the case where generated comment is the terminal leaf in a subtree that is followed by a trailing comment.

Partial for #3034
2015-11-16 20:59:24 -06:00
..
2015-11-13 03:38:54 -08:00
2015-10-29 17:51:24 +00:00

babel-plugin-transform-es2015-modules-commonjs

Installation

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

Usage

.babelrc

{
  "plugins": ["transform-es2015-modules-commonjs"]
}

Via CLI

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

Via Node API

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