0.5.0 • Published 7 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-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'],
});0.5.0
7 years ago