P0d: Webpack Chunk Routing — tolerantProxy in echten Array #79
Labels
No labels
bug
docs
feature
housekeeping
html-spec
performance
react-compat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
glow-all/true-headless-browser#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P0d: Webpack Chunk Routing — tolerantProxy blockiert webpackChunk*
Priority: HIGH
Betrifft: x.com (twitter), discord.com/app, alle SPA-Seiten mit webpack
Impact: 906 Discord-Chunks verschwinden lautlos → App bootstrapped nie
Problembeschreibung
Webpack initialisiert
window.webpackChunk_app_name = window.webpackChunk_app_name || [].Unser tolerantProxy fängt
webpackChunk_*als "unknown API" → returned einen Proxy..push(),.done()auf diesem Proxy gehen ins Nirvana.Aktuelles Verhalten:
Option A: webpackChunk* Pattern in allowedGlobals (EMPFEHLUNG)
Option B: Real Array als default
Akzeptanzkriterien
window.webpackChunkDiscordAppist ein echter Array (nicht Proxy).push(chunk)fügt Chunks zum Array hinzuBetroffene Dateien
src/tolerant-proxy.tssrc/runtime-isolation.tstests/unit/sprint17-webpack-chunks.test.ts✅ Bereits gelöst — Webpack Chunks via dynamicStorage
Nach Analyse:
window.webpackChunkDiscordApp = window.webpackChunkDiscordApp || []funktioniert bereits:specProxyGet: not in target → not in KNOWN_MISSING_APIS →return undefinedundefined || []→[]dynamicStorage.set('webpackChunkDiscordApp', [])dynamicStorage.has('webpackChunkDiscordApp')→return []Der Discord-Error (
|this| is not a function) ist ein Symptom von Chunk-Fetch-Fehlern (#76),nicht von webpackChunk-Array-Routing.
Status: Geschlossen