esbuild
0.28.2 · 8 Aug 2026MIT439.7M / weekRepositoryHomepagenpmAtom feed
0.28.2 is the newest release of 0.14.x.
In short
2 changed
Security
1 advisory affects 0.14.23
- Moderateesbuild enables any website to send any requests to the development server and read the responseGHSA-67mh-4wv8-2f99 · 10 Feb 2025No fix yet
Release note
Update feature database to indicate that node 16.14+ supports import assertions
Node versions 16.14 and above now support import assertions according to these release notes. This release updates esbuild's internal feature compatibility database with this information, so esbuild no longer strips import assertions with
--target=node16.14:// Original code import data from './package.json' assert { type: 'json' } console.log(data) // Old output (with --target=node16.14) import data from "./package.json"; console.log(data); // New output (with --target=node16.14) import data from "./package.json" assert { type: "json" }; console.log(data);Basic support for CSS
@layerrulesThis adds basic parsing support for a new CSS feature called
@layerthat changes how the CSS cascade works. Adding parsing support for this rule to esbuild means esbuild can now minify the contents of@layerrules:/* Original code */ @layer a { @layer b { div { color: yellow; margin: 0.0px; } } } /* Old output (with --minify) */ @layer a{@layer b {div {color: yellow; margin: 0px;}}} /* New output (with --minify) */ @layer a.b{div{color:#ff0;margin:0}}You can read more about
@layerhere:Documentation: developer.mozilla.org/en-US/docs/Web/CSS/@layer
Motivation: developer.chrome.com/blog/cascade-layers/
Note that the support added in this release is only for parsing and printing
@layerrules. The bundler does not yet know about these rules and bundling with@layermay result in behavior changes since these new rules have unusual ordering constraints that behave differently than all other CSS rules. Specifically the order is derived from the first instance while with every other CSS rule, the order is derived from the last instance.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.