mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
152b8eb7e9d751ea23ca038a6ef50c807da14773
This transform takes the liberty of renaming local variables so they don't collide with the names of functions and function-valued properties, which doesn't seem even remotely safe to me, especially considering that function.name is merely a convenience for several other ways of getting the name of the current function, and has not proven to be a widely used ECMAScript feature. This transform can be added back via .babelrc if desired, as long as you don't mind your variables being renamed.
babel-preset-meteor
Babel preset for all Meteor plugins.
Install
$ npm install --save-dev babel-preset-meteor
Usage
Via .babelrc (Recommended)
.babelrc
{
"presets": ["meteor"]
}
Via CLI
$ babel script.js --presets meteor
Via Node API
require("babel-core").transform("code", {
presets: ["meteor"]
});
Languages
JavaScript
91.1%
TypeScript
3.9%
Shell
0.9%
Java
0.7%
Swift
0.7%
Other
2.5%