How do you add a babel plugin from NPM? (I assume I’d have to use Meteor 1.3)
For example, how to use babel-preset-stage-0
How do you add a babel plugin from NPM? (I assume I’d have to use Meteor 1.3)
For example, how to use babel-preset-stage-0
From what I know you can’t use .babelrc file in Meteor 1.3 https://github.com/meteor/babel/blob/master/options.js#L6
You can if you’re willing to use a community package, and we should get this officially in a release after 1.3.0. See Help test .babelrc support in native Meteor.
$ npm install --save-dev babel-preset-stage-0
Then create/modify the .babelrc
in your project root to resemble:
{
presets: [ 'stage-0' ]
}