Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

mntnoe/babel-plugin-transform-helper-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

babel-plugin-transform-helper-modules

Externalize references to helpers using babel-helper-modules.

If you want to externalize builtins too via core-js's library, see the official plugin babel-plugin-transform-runtime.

Installation

$ npm install babel-plugin-transform-helper-modules babel-helper-modules

Usage

Remember to also install babel-helper-modules. when using the transpiled code.

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-helper-modules"]
}

Via CLI

$ babel --plugins transform-helper-modules script.js

Via Node API

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

About

Externalize references to Babel helpers

Resources

Stars

Watchers

Forks

Packages

No packages published