babel-plugin-proton-hoist

0.5.0 • Public • Published

babel-plugin-proton-hoist

Babel plugin to hoist proton.disableAutomock, proton.enableAutomock, proton.unmock, proton.mock, calls above import statements. This plugin is automatically included when using babel-proton.

Installation

yarn add --dev babel-plugin-proton-hoist

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["proton-hoist"]
}

Via CLI

babel --plugins proton-hoist script.js

Via Node API

require('babel-core').transform('code', {
  plugins: ['proton-hoist'],
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i babel-plugin-proton-hoist

      Weekly Downloads

      3

      Version

      0.5.0

      License

      MIT

      Unpacked Size

      5.4 kB

      Total Files

      3

      Last publish

      Collaborators

      • smhbrowton