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
Copy file name to clipboardExpand all lines: .github/dependabot.yml
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,6 @@ updates:
25
25
- dependency-name: "wpcom"
26
26
- dependency-name: "wpcom-*"
27
27
28
-
# WordPress Playground & PHP WASM
29
-
- dependency-name: "@wp-playground/*"
30
-
- dependency-name: "@php-wasm/*"
31
-
32
28
# TypeScript ecosystem
33
29
- dependency-name: "typescript"
34
30
- dependency-name: "typescript-*"
@@ -165,11 +161,6 @@ updates:
165
161
- "electron-playwright-helpers"
166
162
- "electron-devtools-installer"
167
163
168
-
wp-playground-php-wasm:
169
-
patterns:
170
-
- "@wp-playground/*"
171
-
- "@php-wasm/*"
172
-
173
164
wordpress:
174
165
patterns:
175
166
- "@wordpress/*"
@@ -279,6 +270,8 @@ updates:
279
270
- dependency-name: "eslint-plugin-studio"
280
271
- dependency-name: "winreg"# v1.2.5 has a known issue: https://github.com/fresc81/node-winreg/issues/65
281
272
- dependency-name: "@types/glob"# glob@7 (transitive) has no bundled types; @types/glob@9 is a stub for glob@9+ only
273
+
- dependency-name: "@wp-playground/*"# must be pinned exactly and bumped manually in lockstep — version mismatches cause runtime failures and ~450 MB bundle bloat
274
+
- dependency-name: "@php-wasm/*"# must be pinned exactly and bumped manually in lockstep — version mismatches cause runtime failures and ~450 MB bundle bloat
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,8 @@ If you've built a substantial new feature — especially one generated with AI a
109
109
110
110
**Port Conflicts**: Site servers dynamically allocate ports. Don't hardcode port numbers; use the port-finder utility.
111
111
112
+
**CRITICAL - Playground/PHP-WASM Package Versions**: Always pin `@wp-playground/*` and `@php-wasm/*` packages to **exact versions** (no `^` or `~` ranges) in all `package.json` files. A caret range causes `install:bundle` to resolve a newer version when one publishes, creating a version conflict. npm then installs duplicate copies of all PHP WASM packages nested under the conflicting package's `node_modules/`. The `prune-php-wasm` vite plugin only removes top-level asyncify directories and misses nested copies, resulting in ~450 MB of bloat in the app bundle. More critically, different parts of Studio end up running mismatched Playground/PHP-WASM versions, which can cause subtle and hard-to-diagnose runtime failures in core site operations.
0 commit comments