babel-plugin-transform-runtime
v6.23.0
Published
Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
Downloads
2,020,694
Keywords
Readme
babel-plugin-transform-runtime
Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
Installation
$ npm install babel-plugin-transform-runtimeUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["transform-runtime"]
}Via CLI
$ babel --plugins transform-runtime script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["transform-runtime"]
});