Commit 854412a
fix: pin @wp-playground/blueprints to exact version (#3260)
## Related issues
Follow-up to #3254.
## How AI was used in this PR
Fix identified by Claude while investigating a 455 MB app size
regression shown in CodeVitals on trunk.
## Proposed Changes
Pins `@wp-playground/blueprints` to an exact version in all
`package.json` files, consistent with how all other Playground/PHP-WASM
packages are already pinned.
**Root cause of the regression:** `^3.1.20` on blueprints meant that
when 3.1.21 published to npm, `install:bundle` (which runs `npm install
--no-workspaces` inside `apps/cli`) resolved blueprints to 3.1.21. That
version of blueprints depends on `@php-wasm/node@3.1.21`, but
`apps/cli/package.json` pinned `@php-wasm/node@3.1.20` — so npm
installed **both** versions, with the 3.1.21 copies nested under
`blueprints/node_modules/`. The `prune-php-wasm` vite plugin only globs
top-level `@php-wasm/node-*/asyncify/` paths, so the nested copies (8
PHP versions × ~58 MB each) were never pruned, adding ~466 MB to the app
bundle.
## Testing Instructions
- CodeVitals app-size should stay at ~1450 MB, not jump to ~1907 MB
after the next Playground release
## Pre-merge Checklist
- [ ] Have you checked for TypeScript, React or other console errors?
---------
Co-authored-by: Fredrik Rombach Ekelund <fredrik.rombach.ekelund@automattic.com>1 parent 2f95352 commit 854412a
6 files changed
Lines changed: 10 additions & 15 deletions
File tree
- .github
- apps
- cli
- studio
- tools/common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| |||
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 164 | | |
174 | 165 | | |
175 | 166 | | |
| |||
279 | 270 | | |
280 | 271 | | |
281 | 272 | | |
| 273 | + | |
| 274 | + | |
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
0 commit comments