Repository navigation
Commit 7ee8afc
committed
feat(javascript): drop unused reads and calls of built-ins in the minifier
The `improve` phase drops an expression nobody reads that only reads a
built-in global or its own or prototype property, calls or constructs one
on literal arguments without throwing at build time, or reads a global a
`typeof` before it proved declared. `tooling/generate-js-data.js` lists
the built-ins from @mdn/browser-compat-data, each in every Node webpack
builds on, less those that run code, reject promises, block agents or
read the locale.
Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD1 parent 0064fd9 commit 7ee8afc
8 files changed
Lines changed: 1129 additions & 822 deletions
File tree
- .changeset
- docs
- lib/javascript
- test
- helpers
- unitCases
- tooling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments