Meteor Babel Helpers
raw JSON → 0.0.3 verified Sat Apr 25 auth: no javascript maintenance
This package provides runtime helper functions used by meteor-babel to transpile JavaScript and TypeScript code within the Meteor framework. Version 0.0.3 is current and tied to Meteor's Babel integration. The package is a fork/subset of @babel/runtime helpers and is published automatically as part of the Meteor Babel toolchain. It is not intended for standalone use; it ships as a dependency of meteor-babel and is bundled into Meteor apps. There have been no updates since 2021, though Babel upstream has released newer versions. Key differentiator: it is the exact set of helpers used by Meteor's build system.
Common errors
error Cannot find module 'meteor-babel-helpers' ↓
cause Manually installing the npm package does not make it work; it must be installed via Meteor's package system.
fix
Remove manual installation. Ensure you are in a Meteor project and run 'meteor update' to get the correct helper package.
error Missing helper: "extends" ↓
cause The package is not present or not properly linked in the Meteor app.
fix
Run 'meteor npm install --save meteor-babel-helpers' (if using npm) but prefer 'meteor add meteor-babel-helpers' if available. Typically Meteor adds it automatically.
Warnings
gotcha This package is not for direct use; it's a runtime dependency of meteor-babel. Importing or relying on it explicitly is not supported and may break in future Meteor versions. ↓
fix Do not install or import this package manually. Let Meteor's build system manage it.
deprecated No updates since 2021; Babel upstream has newer helper versions. Meteor may update this package eventually. ↓
fix Wait for a newer Meteor release that updates this package, or use Meteor 2.x which may pin helpers.
Install
npm install meteor-babel-helpers yarn add meteor-babel-helpers pnpm add meteor-babel-helpers Imports
- extends
import 'meteor/meteor-babel-helpers'; const x = extends(); - objectSpread
import 'meteor/meteor-babel-helpers'; const obj = objectSpread({}, {a:1}); - typeof
import 'meteor/meteor-babel-helpers'; const type = typeof('x');
Quickstart
// This package is not meant to be used directly.
// It is automatically installed by meteor-babel when needed.
// In a Meteor app, you don't need to install or import it manually.
// If you must verify it's present:
import 'meteor/meteor-babel-helpers';
// The helpers are then available globally (e.g., __extends, __assign, etc.).
// Example: using a helper (auto-injected by Babel)
class Child extends Parent {} // transpiled to use _inherits
// To check the version number:
const pkg = require('meteor-babel-helpers/package.json');
console.log(pkg.version); // 0.0.3