Created
October 26, 2016 13:13
-
-
Save jacobp100/f49538bd6b252b559a9a8c75eb39b770 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { plugins } = require('babylon/lib/parser'); | |
const pluginName = 'swift-blocks'; | |
const plugin = createSwiftBlocksPlugin(); | |
plugins[pluginName] = 'swift-blocks'; | |
module.exports = () => ({ | |
manipulateOptions(opts, parserOpts) { | |
parserOpts.plugins.push(pluginName); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment