* Split exportExtensions into two plugins in babylon * rename proposal-export-default to proposal-export-default-from * rename proposal-export-namespace to proposal-export-namespace-from
36 lines
559 B
Markdown
36 lines
559 B
Markdown
# @babel/plugin-syntax-export-namespace-from
|
|
|
|
> Allow parsing of `export * as namespace from`.
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
npm install --save-dev @babel/plugin-syntax-export-namespace-from
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Via `.babelrc` (Recommended)
|
|
|
|
**.babelrc**
|
|
|
|
```json
|
|
{
|
|
"plugins": ["@babel/plugin-syntax-export-namespace-from"]
|
|
}
|
|
```
|
|
|
|
### Via CLI
|
|
|
|
```sh
|
|
babel --plugins @babel/plugin-syntax-export-namespace-from script.js
|
|
```
|
|
|
|
### Via Node API
|
|
|
|
```javascript
|
|
require("@babel/core").transform("code", {
|
|
plugins: ["@babel/plugin-syntax-export-namespace-from"]
|
|
});
|
|
```
|