Update dependency esbuild to v0.18.18 #999
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.18.17
->0.18.18
Release Notes
evanw/esbuild (esbuild)
v0.18.18
Compare Source
Fix asset references with the
--line-limit
flag (#3286)The recently-released
--line-limit
flag tells esbuild to terminate long lines after they pass this length limit. This includes automatically wrapping long strings across multiple lines using escaped newline syntax. However, using this could cause esbuild to generate incorrect code for references from generated output files to assets in the bundle (i.e. files loaded with thefile
orcopy
loaders). This is because esbuild implements asset references internally using find-and-replace with a randomly-generated string, but the find operation fails if the string is split by an escaped newline due to line wrapping. This release fixes the problem by not wrapping these strings. This issue affected asset references in both JS and CSS files.Support local names in CSS for
@keyframe
,@counter-style
, and@container
(#20)This release extends support for local names in CSS files loaded with the
local-css
loader to cover the@keyframe
,@counter-style
, and@container
rules (and alsoanimation
,list-style
, andcontainer
declarations). Here's an example:With the
local-css
loader enabled, that CSS will be turned into something like this (with the local name mapping exposed to JS):If you want to use a global name within a file loaded with the
local-css
loader, you can use a:global
selector to do that:If you want to use
@keyframes
,@counter-style
, or@container
with a global name, make sure it's in a file that uses thecss
orglobal-css
loader instead of thelocal-css
loader. For example, you can configure--loader:.module.css=local-css
so that thelocal-css
loader only applies to*.module.css
files.Support strings as keyframe animation names in CSS (#2555)
With this release, esbuild will now parse animation names that are specified as strings and will convert them to identifiers. The CSS specification allows animation names to be specified using either identifiers or strings but Chrome only understands identifiers, so esbuild will now always convert string names to identifier names for Chrome compatibility:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.