Skip to content

Commit 0fc15ca

Browse files
authored
fix: fix @modern-js/utils subpath exports (#3733)
* fix: fix `@modern-js/utils` subpath exports * chore: changeset
1 parent 904085f commit 0fc15ca

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.changeset/tiny-spies-mix.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@modern-js/runtime': patch
3+
'@modern-js/utils': patch
4+
---
5+
6+
fix: fix `@modern-js/utils` subpath exports
7+
fix: 修复 `@modern-js/utils` 子路径导出

packages/runtime/plugin-runtime/src/ssr/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default (): CliPlugin<AppTools> => ({
9797
source: {
9898
alias: {
9999
// ensure that all packages use the same storage in @modern-js/utils/runtime-node
100-
'@modern-js/utils/runtime-node': require.resolve(
100+
'@modern-js/utils/runtime-node$': require.resolve(
101101
'@modern-js/utils/runtime-node',
102102
),
103103
'@modern-js/runtime/plugins': pluginsExportsUtils.getPath(),

packages/toolkit/utils/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,11 @@
302302
},
303303
"react-dom": {
304304
"optional": true
305-
},
306-
"react-router-dom": {
307-
"optional": true
308305
}
309306
},
310307
"devDependencies": {
311308
"react": ">=17.0.0",
312309
"react-dom": ">=17.0.0",
313-
"react-router-dom": "^6.8.1",
314310
"@modern-js/types": "workspace:*",
315311
"@scripts/build": "workspace:*",
316312
"@scripts/jest-config": "workspace:*",

0 commit comments

Comments
 (0)