babel-plugin-proton-hoist
v0.5.0
Published
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](https://github.com/siberianmh/proton/tree/master/pack
Downloads
3
Readme
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-hoistUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["proton-hoist"]
}Via CLI
babel --plugins proton-hoist script.jsVia Node API
require('babel-core').transform('code', {
plugins: ['proton-hoist'],
});