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

Example

  1. export v from 'mod';

Installation

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

Usage

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

Via CLI

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

Via Node API

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

References