Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If `targets` is not specified, SWC uses `browserslist` to get target information
- Possible values: `usage`, `entry`, `undefined` (this matches [`useBuiltIns`](https://babeljs.io/docs/en/babel-preset-env#usebuiltins) from Babel)

<Callout emoji="⚠️">
The <code>usage</code> mode is currently not as efficient as Babel, iff you have a usage like `"foo"["a" + "t"]()`.
The <code>usage</code> mode is currently not as efficient as Babel, if you have a usage like `"foo"["a" + "t"]()`.
SWC does not evaluate the expression <code>"a" + "t"</code> and will not include the <code>String.prototype.at</code> polyfill.
</Callout>

Expand Down