Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-plugin-transform-export-extensions

babel1.9mMIT6.22.0

Compile export extensions to ES2015

babel-plugin

readme

babel-plugin-transform-export-extensions

Compile export extensions to ES2015

Installation

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

Usage

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