babel-plugin-transform-export-namespace

Compile export namespace to ES2015

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-export-namespace
7.0.0-alpha.205 years ago5 years agoMinified + gzip package size for babel-plugin-transform-export-namespace in KB

Readme

babel-plugin-transform-export-namespace
Compile export-ns-from statements to ES2015

Example

export * as ns from 'mod';

Installation

npm install --save-dev babel-plugin-transform-export-namespace

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["transform-export-namespace"]
}

Via CLI

babel --plugins transform-export-namespace script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-export-namespace"]
});

References