babel-plugin-transform-export-default

Compile export default to ES2015

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-export-default
7.0.0-alpha.205 years ago5 years agoMinified + gzip package size for babel-plugin-transform-export-default in KB

Readme

babel-plugin-transform-export-default
Compile export-default-from statements to ES2015

Example

export v from 'mod';

Installation

npm install --save-dev babel-plugin-transform-export-default

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["transform-export-default"]
}

Via CLI

babel --plugins transform-export-default script.js

Via Node API

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

References