Update plugins READMEs from babel.github.io [skip ci] (#4931)

This commit is contained in:
Tommaso
2016-12-02 15:07:16 -08:00
committed by Brian Ng
parent 81575bcdfe
commit 27e201e0e1
24 changed files with 482 additions and 42 deletions

View File

@@ -1,6 +1,14 @@
# babel-plugin-transform-export-extensions
Compile export extensions to ES2015
> Compile additional export-from statements to ES2015
## Example
```js
export * as ns from 'mod';
export v from 'mod';
```
[Try in REPL](http://babeljs.io/repl/#?evaluate=true&presets=es2015%2Cstage-0&code=export%20*%20as%20ns%20from%20'mod'%3B%0Aexport%20v%20from%20'mod'%3B)
## Installation
@@ -33,3 +41,8 @@ require("babel-core").transform("code", {
plugins: ["transform-export-extensions"]
});
```
## References
* ~~[Proposal: Additional export-from statements in ES7](https://github.com/leebyron/ecmascript-more-export-from)~~ (Withdrawn)
* [ECMAScript Proposal: export ns from](https://github.com/leebyron/ecmascript-export-ns-from)
* [ECMAScript Proposal: export default from](https://github.com/leebyron/ecmascript-export-default-from)