0.5.0 • Published 6 years ago
babel-plugin-proton-hoist v0.5.0
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'],
});
0.5.0
6 years ago