跳到主要内容

@babel/plugin-proposal-export-default-from

Example

JavaScript
export v from "mod";

Installation

npm install --save-dev @babel/plugin-proposal-export-default-from

Usage

babel.config.json
{
"plugins": ["@babel/plugin-proposal-export-default-from"]
}

Via CLI

Shell
babel --plugins @babel/plugin-proposal-export-default-from script.js

Via Node API

JavaScript
require("@babel/core").transformSync("code", {
plugins: ["@babel/plugin-proposal-export-default-from"],
});

References