Closed gadicc closed 8 years ago
And of course, if we do this, we need another way to make sure it's up-to-date, i.e.:
var checkNpmVersions = Package['tmeasday:check-npm-versions'].checkNpmVersions;
checkNpmVersions({
'babel-preset-meteor': '^6.6.7'
}, 'babel-compiler');
Still plan to move react
out too.
Addressed in Meteor 1.3.3.
(to discuss post-1.3)
If you want to use, say, the
transform-decorator
plugin, it has to be loaded before themeteor
preset. But not just for that reason, I think this is the right way to go regardless, since:So now in meteor-react-hotloader's babel-compiler at least we:
.babelrc
if it doesn't already exist with a skeleton{ presets: "meteor" }
exists.i.e. https://github.com/gadicc/meteor-react-hotloader/blob/master/babel-compiler-hot/babelrc.js
meteor-babel
/babel-compiler
will still conditionally add thejscript
plugins based on target, we'll have to think about that. For now I leftreact
in there too, even though it's now used for everything and should probably be in.babelrc
too.