babel-runtime is a self-contained runtime helper library for Babel-transpiled code, version 6.26.0. It provides polyfills and helpers (e.g., `classCallCheck`, `extends`, `typeof`) for ES6+ features without polluting the global scope. Unlike `@babel/runtime` (v7+), this is the legacy v6 package. It is stable but no longer actively developed; users should migrate to `@babel/runtime` v7+ for new projects. Key differentiator: bundling helpers at build time via `babel-plugin-transform-runtime` to avoid code duplication.
npm install babel-runtimeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and use babel-runtime with transform-runtime plugin, requiring helpers and polyfills.
Replace 'babel-runtime' with '@babel/runtime' and update plugins.
Use require() or configure Babel to handle interop.
Access helpers via require('babel-runtime/helpers/xyz').defaultUse @babel/plugin-transform-runtime with @babel/runtime.
Use @babel/runtime-corejs2 or @babel/runtime-corejs3 instead.
Ensure babel-runtime is installed and use correct path: require('babel-runtime/core-js/object/keys')var _classCallCheck = require('babel-runtime/helpers/classCallCheck').default;npm install babel-runtime --save (or --save-dev for transform-runtime)
Use only babel-runtime's polyfills or remove direct core-js imports.