Skip to content

Commit cd13051

Browse files
fix(modernjs): stop sharing react/* subpaths to fix dispatcher issues
1 parent 92f4411 commit cd13051

File tree

4 files changed

+1
-90
lines changed

4 files changed

+1
-90
lines changed

.ci-logs/build-manifest-host-dev.log

Lines changed: 0 additions & 82 deletions
This file was deleted.

.ci-logs/e2e-modern.log

Whitespace-only changes.

.ci-logs/e2e-next-dev.log

Whitespace-only changes.

apps/modernjs/modern.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ export default defineConfig({
4747
},
4848
filename: 'remoteEntry.js',
4949
shared: {
50-
'react/': {
51-
singleton: true,
52-
requiredVersion: '^18.3.1',
53-
},
50+
// Share only top-level React packages for proper subpath resolution
5451
react: {
5552
singleton: true,
5653
requiredVersion: '^18.3.1',
@@ -59,10 +56,6 @@ export default defineConfig({
5956
singleton: true,
6057
requiredVersion: '^18.3.1',
6158
},
62-
'react-dom/': {
63-
singleton: true,
64-
requiredVersion: '^18.3.1',
65-
},
6659
},
6760
dataPrefetch: true,
6861
}) as any,

0 commit comments

Comments
 (0)