core-js-bundle is a pre-built distribution of core-js/actual. It is a single file you can load directly in a browser or Node.js environment without any build tooling.
Installation
Usage
Script tag (browser)
CommonJS (Node.js / legacy bundlers)
Verify what’s included
core-js-bundle is equivalent to importing core-js/actual:
What it includes
core-js-bundle ships the core-js/actual namespace, which covers:
- All stable ECMAScript features (ES5 through the latest ratified spec)
- Web platform standards polyfilled by
core-js(e.g.,structuredClone,queueMicrotask,URL) - Stage 3+ ECMAScript proposals that are actively progressing toward standardisation
core-js-builder.
Files in the package
| File | Description |
|---|---|
index.js | Unminified bundle with source comments |
minified.js | Minified bundle for production use |
minified.js.map | Source map for the minified bundle |
core-js-bundle vs core-js
core-js | core-js-bundle | |
|---|---|---|
| Requires a bundler | Yes (Webpack, Rollup, etc.) | No |
| Tree-shakeable | Yes (import specific modules) | No (entire actual namespace) |
Use with <script> tag | No | Yes |
| Custom feature selection | Yes | No — use core-js-builder |
| Recommended for | Modern build pipelines | CDN, legacy projects, quick prototyping |
If you have a build pipeline (Webpack, Vite, Rollup, etc.), use
core-js directly. It enables tree-shaking, auto-injection with Babel/swc, and lets you import only what you need. core-js-bundle is aimed at environments where a build step is not practical.When to use core-js-bundle
CDN delivery
Serve a polyfill file from a CDN without needing to run a build. Works with unpkg, jsDelivr, or a self-hosted CDN.
Legacy projects without bundlers
Projects using plain
<script> tags or older tooling that cannot process node_modules directly.Quick prototyping
Spin up a prototype or demo page that needs modern JS features without setting up a build pipeline.
Server-rendered pages
Inject a polyfill script into the
<head> of a server-rendered HTML page before any application JavaScript runs.Custom bundles
If you need a pre-built bundle that is smaller thancore-js/actual — for example, scoped to specific features or filtered by target browsers — use core-js-builder to generate it.