NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1590 most downloaded on npm
babel module loader for webpack
Last release 6 months ago
09 Mar 2026
Ships fairly regularly
a new release about every 6 months
Most releases are documented
notes for 50 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
84 releases · first in 2015
Revert #1055 ("use module.findPackageJSON API") by @JLHwung in #1066
Full Changelog: v10.1.0...v10.1.1
refactor: use module.findPackageJSON API by @JLHwung in #1055
module.findPackageJSON API by @JLHwung in #1055Full Changelog: v10.0.0...v10.1.0
One column per quarter.
bump node requirement to ^18.20.0 || ^20.10.0 || >=22.0.0 and webpack requirement to >= 5.61.0 by @JLHwung in #1026
^18.20.0 || ^20.10.0 || >=22.0.0 and webpack requirement to >= 5.61.0 by @JLHwung in #1026cacheIdentifier is computed from the merged options by @JLHwung in #1000find-cache-dir by find-up by @JLHwung in #1031Full Changelog: v9.1.3...v10.0.0
Avoid error on missing getLogger by @nicolo-ribaudo in #1045
Full Changelog: v9.2.0...v9.2.1
Remove caller option check by @JLHwung in #1007
Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #982
Full Changelog: v9.1.2...v9.1.3
9.1.1 was a broken release, it didn't include all the commits.
9.1.1 was a broken release, it didn't include all the commits.
Full Changelog: v9.1.0...v9.1.2
Nothing published for this version
Pass external dependencies from Babel to Webpack by @nicolo-ribaudo in https://github.com/babel/babel-loader/pull/971
Full Changelog: https://github.com/babel/babel-loader/compare/v9.0.1...v9.1.0
remove "node:" builtin prefix by @JLHwung in https://github.com/babel/babel-loader/pull/970
Full Changelog: https://github.com/babel/babel-loader/compare/v9.0.0...v9.0.1
update hash method mechanism so it doesn't fail on a fips enabled machine by @darmbrust in https://github.com/babel/babel-loader/pull/939
Full Changelog: https://github.com/babel/babel-loader/compare/v8.2.5...v9.0.0
Avoid error on missing getLogger by @nicolo-ribaudo in #1044
Full Changelog: v8.4.0...v8.4.1
Fix loader-utils vulnerability by @LuckyLuky in #979
Full Changelog: v8.3.0...v8.4.0
Pass external dependencies from Babel to Webpack by @nicolo-ribaudo in https://github.com/babel/babel-loader/pull/971
Full Changelog: https://github.com/babel/babel-loader/compare/v8.2.5...v8.3.0
fix: respect inputSourceMap loader option by @alan-agius4 in https://github.com/babel/babel-loader/pull/896
inputSourceMap loader option by @alan-agius4 in https://github.com/babel/babel-loader/pull/896Full Changelog: https://github.com/babel/babel-loader/compare/v8.2.4...v8.2.5
doc(README.md): fix a broken markdown link by @loveDstyle in https://github.com/babel/babel-loader/pull/919
Thanks @loveDstyle, @stianjensen and @pathmapper for your first PRs!
This release fixes compatibility with Node.js 17
This release fixes compatibility with Node.js 17
Thanks @Reptarsrage!
Nothing published for this version
Move @ava/babel to devDependencies #881 (@jvasseur)
@ava/babel to devDependencies #881 (@jvasseur)Replace mkdirp with make-dir 47958ca3857e489e450b27c6f3266375015cba82 (@JLHwung)
mkdirp with make-dir 47958ca3857e489e450b27c6f3266375015cba82 (@JLHwung)docs(readme): fix typo #818 (@frederickfogerty)
- Migrate to pify (#785) - Reduced memory usage
- Update find-cache-dir to 2.0
find-cache-dir to 2.0Nothing published for this version
Some dev dependency updates and CI tweaks.
customize optionSome dev dependency updates and CI tweaks.
* #541 - A bunch of great README fixes * #574 - Add cacheCompression: false to disable GZip compression of the disk cache * #670 - Handle both 'source
cacheCompression: false to disable GZip compression of the disk cachesourceMaps: 'inline' to work properly with babel-loaderdevtoolModuleFilenameTemplate placeholders* #662 - docs: update README.md * #667 - docs: Remove babelrc from loader-specific options * #668 - Add a warning if you forget to install @babel/core
@babel/core or install babel-core.This is the first stable release of babel-loader for Babel 7.x.
This is the first stable release of babel-loader for Babel 7.x.
NOTE: For those looking for v8.0.0-beta.5, it was a mis-publish of the wrong branch and included only #660 and missed the other 3 PRs.
NOTE: For those looking for v8.0.0-beta.5, it was a mis-publish of the wrong branch and included only #660 and missed the other 3 PRs.
Nothing published for this version
* #629 Include additional result values from Babel's output for custom loaders
* #590 Handle cache directory fallback better * #599 Drop logic for reading the .babelrc and rely on @babel/core * #618 Refactor to use async function
.babelrc and rely on @babel/corebabel-loaderRemove forceEnv in favor of the core envName option. (#586) (@loganfsmyth)
Remove forceEnv in favor of the core envName option. (#586) (@loganfsmyth)
The forceEnv option has been removed. You can simple replace it with the new option envName from babel-core. (see https://github.com/babel/babel/tree/master/packages/babel-core#options)
{
loader: 'babel-loader',
options: {
- forceEnv: 'staging',
+ envName: 'staging',
},
}
The babelrc option was changed. It now only accepts true or false as valid option (similar to other babel packages) and does not allow setting a strin
The babelrc option was changed. It now only accepts true or false as valid option (similar to other babel packages) and does not allow setting a string. If you previously had a filename specified you need to change to extends
{
loader: 'babel-loader',
options: {
- babelrc: 'path/to/.babelrc',
+ babelrc: false,
+ extends: 'path/to/.babelrc',
},
}
Change peerDep to @babel/core instead of babel-core since we have moved to scoped packages: https://github.com/babel/babel-loader/pull/522
@babel/core instead of babel-core since we have moved to scoped packages: https://github.com/babel/babel-loader/pull/522Perf: Use md4 instead of sha1 for filename hashes
### 🐛 Bug Fix * Update code to read filename
### 🐛 Bug Fix * Support webpack 4
Add the message in BabelLoaderError's stack trace on node 8 (#499) (Stephen Jennings)
Do not read .babelrc for cache identifier when babelrc=false (#483) (Russ Tyndall)
Update to support webpack 3 (#471) (Joe Lencioni)
support babel-core@7 (#403) (Henry Zhu)
> Includes all changes from 6.4.1
Includes all changes from 6.4.1
> Includes all changes from 6.4.0
Includes all changes from 6.4.0
> Includes all changes from 6.4.0
Includes all changes from 6.4.0
> Includes all changes from 6.3.2
Includes all changes from 6.3.2
Fixed reset of BABEL_ENV when options.forceEnv is used (#420) @nikopavlica
added metadata passing from babel to webpack, which is currently used by react-intl (#398) @Ognian
forceEnv was interfering with regular environment handling
forceEnv was interfering with regular environment handlingThe new forceEnv options wasn't working as expected (#379) @chrisvasz
forceEnv options wasn't working as expected (#379) @chrisvaszAdd new config option forceEnv (#368) @moimael
forceEnv (#368) @moimaelAllow to override BABEL_ENV/NODE_ENV at loader-level. Useful for isomorphic applications which have separate babel config for client and server.
Support for webpack 2.2-rc has been added in this release
Support for webpack 2.2-rc has been added in this release
Source maps on windows did not work correctly with v6.2.8. Thanks @josephst
Source maps on windows did not work correctly with v6.2.8. Thanks @josephst
gzipped files should have .gz as the extension, not .gzip (#326) @bjornstar
.gz as the extension, not .gzip (#326) @bjornstarFallback to os.tmpdir() if no cachedir found (#318) (fixes #317) @danez
Fallback to os.tmpdir() if no cachedir found (#318) (fixes #317) @danez
Fixes an issue with v6.2.6 when using babel-loader as a global package.
Use standard cache dir as default cacheDirectory @fson
cacheDirectory @fsonUse the common cache directory, ./node_modules/.cache/babel-loader, as the default cache directory (when the cacheDirectory setting is enabled).
query: {
cacheDirectory: true
}
Don't show the call stack for a Babel error (such as when you have a syntax error) (@andreypopp)
<img width="415" alt="screenshot 2016-08-15 15 24 37" src="https://cloud.githubusercontent.com/assets/30594/17664401/727ba098-62fc-11e6-9f12-42da0cf47f14.png">
change allowed peer deps (all webpack 2 beta versions)
change allowed peer deps (2.0.7-beta)
Update peerDependencies to accept webpack 2 #208
Your coding agent can read these notes before it upgrades. Set up the MCP server →