@babel/plugin-proposal-export-default
Compile export default to ES2015
Last updated 3 years ago by hzoo .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @babel/plugin-proposal-export-default 
SYNC missed versions from official npm registry.

@babel/plugin-proposal-export-default

Compile export-default-from statements to ES2015

Example

export v from 'mod';

Installation

npm install --save-dev @babel/plugin-proposal-export-default

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@babel/proposal-export-default"]
}

Via CLI

babel --plugins @babel/proposal-export-default script.js

Via Node API

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

References

Current Tags

  • 7.0.0-beta.32                                ...           latest (3 years ago)

4 Versions

  • 7.0.0-beta.32                                ...           3 years ago
  • 7.0.0-beta.31                                ...           3 years ago
  • 7.0.0-beta.5                                ...           3 years ago
  • 7.0.0-beta.4                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |