node package manager

babel-plugin-transform-export-extensions

Compile export extensions to ES2015

babel-plugin-transform-export-extensions

Compile export extensions to ES2015

Installation

$ npm install babel-plugin-transform-export-extensions

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-export-extensions"]
}

Via CLI

$ babel --plugins transform-export-extensions script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-export-extensions"]
});