canirequire

canirequireDual (CommonJS + ESM) › @babel/runtime-corejs3

Is @babel/runtime-corejs3 ESM-only? Can you require() it?

babel's modular runtime helpers with core-js@3 polyfilling

Last verified Sep 9, 2026 against @babel/runtime-corejs3@8.0.0. JSON

Dual (CommonJS + ESM) Dual package — both require() and import work

@babel/runtime-corejs3 publishes both a CommonJS entry and a native ESM entry (ESM added in 7.13.8). require("@babel/runtime-corejs3") and import "@babel/runtime-corejs3" both work on every supported Node.js version and in Bun.

Latest
8.0.0 (Jun 16, 2026)
Module format
Dual (CommonJS + ESM)
Last CommonJS version
8.0.0
Native ESM since
7.13.8
TypeScript types
None
Node engines
not declared
License
MIT

Does @babel/runtime-corejs3@8.0.0 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("@babel/runtime-corejs3") from a CommonJS file and import "@babel/runtime-corejs3" from an ES module.

Runtimerequire("@babel/runtime-corejs3")import "@babel/runtime-corejs3"
Node.js 18✗ failsERR_PACKAGE_PATH_NOT_EXPORTED✗ failsERR_PACKAGE_PATH_NOT_EXPORTED
Node.js 20✗ failsERR_PACKAGE_PATH_NOT_EXPORTED✗ failsERR_PACKAGE_PATH_NOT_EXPORTED
Node.js 22✗ failsERR_PACKAGE_PATH_NOT_EXPORTED✗ failsERR_PACKAGE_PATH_NOT_EXPORTED
Node.js 24✗ failsERR_PACKAGE_PATH_NOT_EXPORTED✗ failsERR_PACKAGE_PATH_NOT_EXPORTED
Node.js 26✗ failsERR_PACKAGE_PATH_NOT_EXPORTED✗ failsERR_PACKAGE_PATH_NOT_EXPORTED
Bun 1.4✗ failserror: Cannot find module '@babel/runtime-corejs3' from '/Users/boat/Projects/top-seo/data/probe-work/@babel__runtime-corejs3/req.cjs'✗ failserror: Cannot find module '@babel/runtime-corejs3' from '/Users/boat/Projects/top-seo/data/probe-work/@babel__runtime-corejs3/imp.mjs'

A failing require() on a CommonJS package usually means the package needs a browser/DOM global, a peer dependency, or a native binary that is not available in a bare Node.js process.

How to import @babel/runtime-corejs3

ES modules (import)

import runtimeCorejs3 from "@babel/runtime-corejs3";

CommonJS (require)

const runtimeCorejs3 = require("@babel/runtime-corejs3");

Module format by version

Derived from the type, main and exports fields of every stable release on npm (134 versions; the newest 60 shown).

VersionsFormatFirst published
7.18.3 – 8.0.0Dual (CommonJS + ESM)May 25, 2022

Frequently asked

Is @babel/runtime-corejs3 ESM-only?

@babel/runtime-corejs3@8.0.0 ships CommonJS and ESM builds. @babel/runtime-corejs3 publishes both a CommonJS entry and a native ESM entry (ESM added in 7.13.8). require("@babel/runtime-corejs3") and import "@babel/runtime-corejs3" both work on every supported Node.js version and in Bun.

Can I require @babel/runtime-corejs3?

Yes. @babel/runtime-corejs3 ships a CommonJS entry, so require("@babel/runtime-corejs3") works on every Node.js version, alongside the native ESM entry for import.

Does @babel/runtime-corejs3 work in Bun?

Importing @babel/runtime-corejs3 failed in Bun 1.4 on Sep 9, 2026: error: Cannot find module '@babel/runtime-corejs3' from '/Users/boat/Projects/top-seo/data/probe-work/@babel__runtime-corejs3/imp.mjs'

Does @babel/runtime-corejs3 ship TypeScript types?

No. @babel/runtime-corejs3 ships no type declarations and there is no @types package for it.

Links

Other dual (commonjs + esm) packages

Similar popularity