Skip to content

Commit 68c36d0

Browse files
committed
chore: rm redundant react-router-dom
1 parent bb1fd3a commit 68c36d0

File tree

6 files changed

+669
-463
lines changed

6 files changed

+669
-463
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"react-dom": "19.0.0",
3737
"react-error-boundary": "^5.0.0",
3838
"react-router": "^7.1.1",
39-
"react-router-dom": "^7.1.1",
4039
"reflect-metadata": "^0.2.2",
4140
"tiny-invariant": "^1.3.3",
4241
"universal-cookie-express": "^7.2.2",
@@ -80,15 +79,15 @@
8079
"@typescript-eslint/parser": "^8.18.2",
8180
"autoprefixer": "^10.4.20",
8281
"babel-loader": "^9.2.1",
83-
"babel-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
82+
"babel-plugin-react-compiler": "latest",
8483
"copy-webpack-plugin": "^12.0.2",
8584
"cross-env": "^7.0.3",
8685
"css-loader": "7.1.2",
8786
"cssnano": "^7.0.6",
8887
"eslint": "^9.17.0",
8988
"eslint-plugin-prettier": "^5.2.1",
9089
"eslint-plugin-react": "^7.37.3",
91-
"eslint-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
90+
"eslint-plugin-react-compiler": "latest",
9291
"fork-ts-checker-webpack-plugin": "^9.0.2",
9392
"globals": "^15.14.0",
9493
"html-loader": "^5.1.0",

src/client/components/@shared/app/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type FC, lazy, StrictMode } from 'react'
2-
import { Route, Routes } from 'react-router-dom'
2+
import { Route, Routes } from 'react-router'
33
import { CookiesProvider } from 'react-cookie'
44
import { type AppProps, getENV } from 'src/common'
55
import { Layout } from '@shared/layout'

src/client/components/@shared/layout/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Suspense } from 'react'
2-
import { Link } from 'react-router-dom'
3-
import { Outlet } from 'react-router-dom'
2+
import { Link, Outlet } from 'react-router'
43
import { ErrorBoundary } from 'react-error-boundary'
54
import { Fallback } from '@shared/error'
65
import { Loader } from '@shared/loader'

src/client/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BrowserRouter } from 'react-router-dom'
1+
import { BrowserRouter } from 'react-router'
22
import { bootstrap } from 'client/utils'
33
import { basename } from 'src/common'
44
import { App } from '@shared/app'

src/server/middleware/render/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StaticRouter } from 'react-router-dom'
1+
import { StaticRouter } from 'react-router'
22
import { renderToPipeableStream } from 'react-dom/server'
33
import type { NextFunction, Request, Response } from 'express'
44
import { logger, setEnvVars, basename } from 'src/common'

0 commit comments

Comments
 (0)