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

NOTE: This plugin is included in @babel/preset-env, in ES2020

Example

  1. export * as ns from "mod";

Installation

  1. npm install --save-dev @babel/plugin-proposal-export-namespace-from

Usage

  1. {
  2. "plugins": ["@babel/plugin-proposal-export-namespace-from"]
  3. }

Via CLI

  1. babel --plugins @babel/plugin-proposal-export-namespace-from script.js

Via Node API

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

References