Fix list-style-type with the local-css loader (#3325)
The local-css loader incorrectly treated all identifiers provided to list-style-type as a custom local identifier. That included identifiers such as none which have special meaning in CSS, and which should not be treated as custom local identifiers. This release fixes this bug:
/* Original code */
ul { list-style-type: none }
/* Old output (with --loader=local-css) */
ul {
list-style-type: stdin_none;
}
/* New output (with --loader=local-css) */
ul {
list-style-type: none;
}
Note that this bug only affected code using the local-css loader. It did not affect code using the css loader.
Avoid inserting temporary variables before use strict (#3322)
This release fixes a bug where esbuild could incorrectly insert automatically-generated temporary variables before use strict directives:
// Original code
function foo() {
'use strict'
a.b?.c()
}
// Old output (with --target=es6)
function foo() {
var _a;
"use strict";
(_a = a.b) == null ? void 0 : _a.c();
}
// New output (with --target=es6)
function foo() {
"use strict";
var _a;
(_a = a.b) == null ? void 0 : _a.c();
}
Adjust TypeScript enum output to better approximate tsc (#3329)
Fix list-style-type with the local-css loader (#3325)
The local-css loader incorrectly treated all identifiers provided to list-style-type as a custom local identifier. That included identifiers such as none which have special meaning in CSS, and which should not be treated as custom local identifiers. This release fixes this bug:
/* Original code */
ul { list-style-type: none }
/* Old output (with --loader=local-css) */
ul {
list-style-type: stdin_none;
}
/* New output (with --loader=local-css) */
ul {
list-style-type: none;
}
Note that this bug only affected code using the local-css loader. It did not affect code using the css loader.
Avoid inserting temporary variables before use strict (#3322)
This release fixes a bug where esbuild could incorrectly insert automatically-generated temporary variables before use strict directives:
// Original code
function foo() {
'use strict'
a.b?.c()
}
// Old output (with --target=es6)
function foo() {
var _a;
"use strict";
(_a = a.b) == null ? void 0 : _a.c();
}
// New output (with --target=es6)
function foo() {
"use strict";
var _a;
(_a = a.b) == null ? void 0 : _a.c();
}
Adjust TypeScript enum output to better approximate tsc (#3329)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps esbuild from 0.17.18 to 0.19.3.
Release notes
Sourced from esbuild's releases.
... (truncated)
Changelog
Sourced from esbuild's changelog.
... (truncated)
Commits
673ad10
publish 0.19.3 to npm6402f11
basic support for parsing import attributes7ece556
fix #3322: avoid temporaries before"use strict"
900a90d
transform: banner/footer with local-css/global-cssbbd82b2
runmake update-compat-table
f702f6b
remove an unused methoda111cc4
fix #3318: ignore invalid commands for old builds4c5db58
fix #3329: treat more enum values as strings5ecf535
fix #3377: improve resolution error due tonull
79ac17a
resolver: adjust some error messagesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show