Commit b5304e9
Drop dead PURE_INTERNAL_PACKAGES entries
Of the three entries previously in PURE_INTERNAL_PACKAGES, only
`@glimmer/debug` actually contributes to the hello-world bundle
size:
| array contents | hello-world raw | gzip |
| - | - | - |
| `[]` (no callback) | 181.12 KB | 57.82 KB |
| `['@glimmer/debug-util']` | 181.12 KB | 57.82 KB |
| `['@glimmer/local-debug-flags']` | 181.12 KB | 57.82 KB |
| `['@glimmer/debug']` | 172.99 KB | 55.35 KB |
| all three | 172.99 KB | 55.31 KB |
`@glimmer/debug-util` and `@glimmer/local-debug-flags` are
already inferred pure by rolldown's static analysis (their content
either has no top-level statements that look like side effects, or
gets fully stripped by the LOCAL_DEBUG macro in prod builds).
Re-asserting them adds nothing.
Inlined the array since the callback now checks a single path
prefix. Added a note explaining the measurement so the next
person adding to the list does so with data, not pattern-matching.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0333cb commit b5304e9
1 file changed
Lines changed: 8 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 129 | | |
139 | 130 | | |
140 | 131 | | |
| |||
0 commit comments