Skip to content

Commit 2022f1e

Browse files
author
mumiao
committed
build: depracate react-router package and related plugins scripts
1 parent cc54b02 commit 2022f1e

File tree

5 files changed

+930
-900
lines changed

5 files changed

+930
-900
lines changed

.fatherrc.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ export default defineConfig({
44
// more father config: https://github.com/umijs/father/blob/master/docs/config.md
55
esm: { output: 'esm', ignores: ['**/demos/**'], transformer: 'babel' },
66
cjs: { output: 'lib', ignores: ['**/demos/**'], transformer: 'babel' },
7-
extraBabelPlugins: ['./plugins/replaceRouter'],
87
});

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"lint:css": "stylelint \"src/**/*.{css,less,scss}\"",
2020
"lint:es": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
2121
"prepublishOnly": "father doctor && npm run build",
22-
"preinstall": "node scripts/preinstall.js",
2322
"deploy": "gh-pages -d docs-dist"
2423
},
2524
"authors": [
@@ -63,8 +62,7 @@
6362
},
6463
"peerDependencies": {
6564
"react": ">=16.9.0",
66-
"react-dom": ">=16.9.0",
67-
"react-router": "3.0.4"
65+
"react-dom": ">=16.9.0"
6866
},
6967
"devDependencies": {
7068
"@commitlint/cli": "^17.1.2",
@@ -77,7 +75,6 @@
7775
"@types/jest": "^29.2.3",
7876
"@types/lodash": "^4.14.191",
7977
"@types/react": "^18.0.0",
80-
"@types/react-router": "^3.0.4",
8178
"@types/showdown": "^1.9.0",
8279
"@types/testing-library__jest-dom": "^5.14.5",
8380
"@umijs/lint": "^4.0.0",
@@ -98,7 +95,6 @@
9895
"prettier-plugin-packagejson": "^2.2.18",
9996
"react": "^18.0.0",
10097
"react-dom": "^18.0.0",
101-
"react-router-3": "npm:[email protected]",
10298
"stylelint": "^14.9.1",
10399
"ts-jest": "^29.0.3",
104100
"typescript": "~4.5.2"

plugins/replaceRouter.js

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

0 commit comments

Comments
 (0)