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
fix(gdu): namespace runtime public path per MFE (#411)
* fix(gdu): namespace runtime public path per MFE to prevent collisions
When multiple Vite-built MFEs load on the same page, they each set
globalThis.__GDU_PUBLIC_PATH__ from their entry chunk. The last MFE
to load wins, so earlier MFEs resolve their lazy-loaded CSS chunks
from the wrong CDN path (e.g. fmo-app-shell CSS fetched from
fmo-booking/, returning 403).
Replace the single global with a per-MFE map:
globalThis.__GDU_PUBLIC_PATHS__[projectName]
Each MFE reads only its own slot, so concurrent MFEs no longer
clobber each other's chunk resolution.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: Applies formatting
* chore(gdu): add changeset for runtime public path collision fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update packages/gdu/config/vite/plugins/runtimePublicPath.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(gdu): use esbuild for CSS minification to support ::view-transition-*
LightningCSS 1.31.1 (latest) cannot parse ::view-transition-* pseudo-
elements, causing build failures for MFEs that use View Transitions CSS.
Switch to esbuild for CSS minification which handles them correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments