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
The `--target=` setting lets you tell esbuild to target a specific version of one or more JavaScript runtimes such as `chrome80,node14` and esbuild will restrict its output to only those features supported by all targeted JavaScript runtimes. More recently, esbuild introduced the `--supported:` setting that lets you override which features are supported on a per-feature basis. However, this now lets you configure nonsensical things such as `--supported:async-await=false --supported:async-generator=true`. Previously doing this could result in esbuild building successfully but producing invalid output.
8
+
9
+
Starting with this release, esbuild will now attempt to automatically fix nonsensical feature override configurations by introducing more overrides until the configuration makes sense. So now the configuration from previous example will be changed such that `async-await=false` implies `async-generator=false`. The full list of implications that were introduced is below:
10
+
11
+
* `async-await=false` implies:
12
+
* `async-generator=false`
13
+
* `for-await=false`
14
+
* `top-level-await=false`
15
+
16
+
* `generator=false` implies:
17
+
* `async-generator=false`
18
+
* `for-await=false`
19
+
20
+
* `class-field=false` implies:
21
+
* `class-private-field=false`
22
+
23
+
* `class-static-field=false` implies:
24
+
* `class-private-static-field=false`
25
+
26
+
* `class=false` implies:
27
+
* `class-field=false`
28
+
* `class-private-accessor=false`
29
+
* `class-private-brand-check=false`
30
+
* `class-private-field=false`
31
+
* `class-private-method=false`
32
+
* `class-private-static-accessor=false`
33
+
* `class-private-static-field=false`
34
+
* `class-private-static-method=false`
35
+
* `class-static-blocks=false`
36
+
* `class-static-field=false`
37
+
3
38
## 0.15.5
4
39
5
40
* Fix issues with Yarn PnP and Yarn's workspaces feature ([#2476](https://github.com/evanw/esbuild/issues/2476))
0 commit comments