Replace webpack with only esbuild, replace react with preact

reduce node_modules size to only 18M

reduce js file bundle to 20%
This commit is contained in:
2022-12-04 17:08:06 +08:00
parent d278e4009d
commit aa2377df7f
35 changed files with 582 additions and 27515 deletions

View File

@@ -3,42 +3,12 @@
"version": "1.2.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router": "^6.4.4",
"@preact/compat": "^17.1.2",
"esbuild": "^0.15.17",
"react-router-dom": "^6.4.4",
"react-scripts": "^5.0.1",
"water.css": "^2.1.1",
"web-vitals": "^3.1.0"
"water.css": "^2.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/react": "^18.0.25"
"build": "node build.js"
}
}