@babel/plugin-proposal-export-namespace-from
Example
export * as ns from 'mod';
Installation
npm install --save-dev @babel/plugin-proposal-export-namespace-from
Usage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["@babel/plugin-proposal-export-namespace-from"]
}
Via CLI
babel --plugins @babel/plugin-proposal-export-namespace-from script.js
Via Node API
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-proposal-export-namespace-from"]
});