Skip to content

Commit

Permalink
fix(bridge-react): prevent react-dom/client being bundled into dist/i…
Browse files Browse the repository at this point in the history
…ndex.*.js

this otherwise causes the package to be incompatible with a react 19

BREAKING CHANGE: react-dom/client code will not be bundled into the bridge-react module anymore
  • Loading branch information
Francis Duvivier committed Feb 4, 2025
1 parent f141396 commit f29b319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-zoos-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/bridge-react': patch
---

change rollup config to prevent react-dom/client code being bundled into the bridge-react package
1 change: 1 addition & 0 deletions packages/bridge/bridge-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default defineConfig({
external: [
...perDepsKeys,
'@remix-run/router',
/react-dom\/.*/,
'react-router',
'react-router-dom/',
'react-router-dom/index.js',
Expand Down

0 comments on commit f29b319

Please sign in to comment.