Skip to content

Commit

Permalink
fix: upgrade react-router to the latest version & log in debug mode o…
Browse files Browse the repository at this point in the history
…nly (#6388)
  • Loading branch information
yimingjfe authored Oct 15, 2024
1 parent 983e802 commit c87813e
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .changeset/tidy-ducks-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@modern-js/plugin-garfish': patch
'@modern-js/runtime-utils': patch
'@modern-js/app-tools': patch
'@modern-js/plugin-ssg': patch
---

fix: upgrade react-router & log in debug mode only
fix: 更新 react-router 到最新版 & 只在 debug 模式下打印日志
2 changes: 1 addition & 1 deletion packages/cli/plugin-ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"jest": "^29",
"react": "^18",
"react-dom": "^18",
"react-router-dom": "6.22.0",
"react-router-dom": "6.27.0",
"typescript": "^5"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/plugin-garfish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"jest-location-mock": "2.0.0",
"react": "^18",
"react-dom": "^18",
"react-router-dom": "6.22.0",
"react-router-dom": "6.27.0",
"typescript": "^5"
},
"sideEffects": false,
Expand Down
4 changes: 3 additions & 1 deletion packages/solutions/app-tools/src/utils/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export const registerCompiler = async (
...tsNodeOptions,
});
} catch (error) {
logger.error(error);
if (process.env.DEBUG) {
logger.error(error);
}
await registerEsbuild({
isTsProject,
tsConfig,
Expand Down
4 changes: 2 additions & 2 deletions packages/toolkit/runtime-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@
},
"dependencies": {
"@modern-js/utils": "workspace:*",
"@remix-run/router": "1.15.0",
"@remix-run/router": "1.20.0",
"@swc/helpers": "0.5.13",
"lru-cache": "^6.0.0",
"react-router-dom": "6.22.0",
"react-router-dom": "6.27.0",
"serialize-javascript": "^6.0.0"
},
"peerDependencies": {
Expand Down
60 changes: 44 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c87813e

Please sign in to comment.