You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,32 @@
2
2
3
3
## Unreleased
4
4
5
+
* Fix a bug with the CSS nesting transform ([#3648](https://github.com/evanw/esbuild/issues/3648))
6
+
7
+
This release fixes a bug with the CSS nesting transform for older browsers where the generated CSS could be incorrect if a selector list contained a pseudo element followed by another selector. The bug was caused by incorrectly mutating the parent rule's selector list when filtering out pseudo elements for the child rules:
8
+
9
+
```css
10
+
/* Original code */
11
+
.foo {
12
+
&:after,
13
+
& .bar {
14
+
color: red;
15
+
}
16
+
}
17
+
18
+
/* Old output (with --supported:nesting=false) */
19
+
.foo.bar,
20
+
.foo.bar {
21
+
color: red;
22
+
}
23
+
24
+
/* New output (with --supported:nesting=false) */
25
+
.foo:after,
26
+
.foo.bar {
27
+
color: red;
28
+
}
29
+
```
30
+
5
31
* Fix a crash when resolving apath from a directory that doesn't exist ([#3634](https://github.com/evanw/esbuild/issues/3634))
6
32
7
33
This release fixes a regression where esbuild could crash when resolving an absolute path if the source directory for the path resolution operation doesn't exist. While this situation doesn't normally come up, it could come up when running esbuild concurrently with another operation that mutates the file system as esbuild is doing a build (such as using `git` to switch branches). The underlying problem was a regression that was introduced in version 0.18.0.
0 commit comments