Babel preset for Meteor's build system, enabling ES2015+ syntax and features supported by Meteor's runtime. Current stable version is 8.0.3. This preset is specifically designed for Meteor plugins and applications, providing transforms and polyfills that align with Meteor's version of Node.js and browser targets. Unlike generic presets like @babel/preset-env, babel-preset-meteor includes Meteor-specific transforms (e.g., object-assign, regenerator, dynamic import) and avoids unnecessary transformations already handled by Meteor's compilation pipeline. Release cadence is tied to Meteor releases; note that this package has been in maintenance mode since Meteor 2.0, with newer projects typically using Meteor's built-in Babel configuration or @babel/preset-env directly.
npm install babel-preset-meteorVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation and basic configuration of babel-preset-meteor via .babelrc and CLI.
Upgrade to @babel/core (Babel 7) and use babel-preset-meteor@8 or later.
For new projects, consider using @babel/preset-env directly and configure targets based on Meteor's Meteor.userConfig().
Add @babel/runtime to your dependencies or devDependencies if not already present.
Run 'npm install --save-dev babel-preset-meteor' from the project root.
Install @babel/core (Babel 7) and uninstall babel-core if present.
Install @babel/runtime: 'npm install @babel/runtime'.