7.0.0-beta.32 • Published 8 years ago
@babel/plugin-proposal-export-namespace v7.0.0-beta.32
@babel/plugin-proposal-export-namespace
Compile export-ns-from statements to ES2015
Example
export * as ns from 'mod';Installation
npm install --save-dev @babel/plugin-proposal-export-namespaceUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["@babel/proposal-export-namespace"]
}Via CLI
babel --plugins @babel/proposal-export-namespace script.jsVia Node API
require("@babel/core").transform("code", {
plugins: ["@babel/proposal-export-namespace"]
});