Who know how to enable babel stage 0 on Meteor 1.4?


#1

Can any body hint me how to enable on Meter 1.4 ES7 features (babel-preset-stage-0). I’ve tried a few approaches but wasn’t success of any of them.


#2

What have you tried so far? Have you tried:

  1. meteor npm install --save-dev babel-preset-stage-0
  2. Creating a .babelrc file with something like:
{
  "presets": [
    "stage-0"
  ]
}

#3

Yeaah! Thank you. I’ve tried the same approach, but without meteor when installed this preset. It’s weird, but anyway it helped me. Once again thanks


#4

Recently, I think that Meteor has added the ability to add a .babelrc parralel to your .meteor folder

They also have their own preset: meteor. So do the following.

$ meteor npm install --save-dev babel-preset-meteor babel-preset-stage-0

Then create your .babelrc

{
  "presets": ["meteor", "stage-0"]
}