npm / babel-loader
babel-loader
What changed in babel-loader 8 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking1 new APIs and options1 behavior and defaults2 tooling3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbabel-loader 109 changes
Breaking changes 3
The required Node.js versions are now ^18.20.0 || ^20.10.0 || >=22.0.0.
The loader cache now uses output.hashFunction as its hasher.
The minimum required webpack version is now 5.61.0.
New APIs and options 1
A babel-loader logger was added.
Behavior and default changes 1
Caching now supports external dependencies.
Tooling 2
babel-loader now supports Babel 8.
webpack is now marked as an optional peer dependency.
Fixes and other changes 2
Reverts the use of the module.findPackageJSON API.
Filename cache keys are now ensured to be stable.
babel-loader 94 changes
Breaking changes 3
Requires babel ^7.12.0.
Requires Node.js >= 14.15.0.
webpack 4 is no longer supported.
Fixes and other changes 1
The hash method mechanism was updated so it does not fail on a FIPS-enabled machine.
babel-loader 81 changes
Breaking changes 1
Peer dependency requirements on Babel betas and release candidates were dropped, easing migration to stable Babel 7.x.