Skip to content

Commit 960e2b3

Browse files
chore: add changeset for runtime safety checks
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3191a4f commit 960e2b3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.changeset/runtime-safety-checks.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@module-federation/enhanced": patch
3+
---
4+
5+
fix(enhanced): add runtime safety checks to prevent errors
6+
7+
- Add typeof check for oldStartup function in EmbedFederationRuntimeModule to prevent calling undefined function
8+
- Add typeof check for __webpack_require__.x in StartupHelpers to prevent calling undefined function
9+
- Add warning logs when these functions are missing to help developers debug issues
10+
11+
These defensive checks improve stability and prevent edge case failures in certain build configurations.

0 commit comments

Comments
 (0)