babel-plugin-rewire-es5

1.0.2 • Public • Published

babel-plugin-rewire-es5

Build Status devDependency Status devDependency Status

Hook rewire into every required package.

Installation

$ npm install babel-plugin-rewire-es5 --save-dev

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["rewire-es5"]
}

Via CLI

$ babel --plugins rewire-es5 script.js

Via Node API

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

API

var myModule = require('./my-module');
var myFunc = myModule.__get__('myFunc');

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-rewire-es5

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • eliwhite