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