🔥 React 模版版本升级 React19.0.0 ->19.1.0

commit链接: github.com/guokaigdg/r...

json 复制代码
{
    "name": "react-template",
    "version": "1.1.0",
    "description": "react-template",
    "main": "index.js",
    "license": "MIT",
    "author": {
        "name": "guokaigdg"
    },
    "contributors": [
        {
            "name": "guokaigdg",
            "email": "guokaigdg@gmail.com",
            "url": "https://github.com/guokaigdg"
        }
    ],
    "keywords": [
        "React",
        "JSX",
        "TSX",
        "Webpack",
        "React Router",
        "ESLint",
        "template"
    ],
    "homepage": "./react-enterprise-template",
    "scripts": {
        "dev": "npm run start",
        "start": "env-cmd -r .env.json -e development node webpack/server",
        "build:qa": "env-cmd -r .env.json -e qa webpack --config ./webpack/config/webpack.prod.js",
        "build:prod": "env-cmd -r .env.json -e production webpack --config ./webpack/config/webpack.prod.js",
        "clean": "rm -rf node_modules",
        "deploy": "npm run build:prod && gh-pages -d build"
    },
    "engines": {
        "node": ">= 18.0.0",
        "npm": ">= 7.0.0",
        "yarn": ">= 1.22.4"
    },
    "browserslist": [
        ">0.2%",
        "not dead",
        "ie >= 9",
        "not op_mini all"
    ],
    "husky": {
        "hooks": {
            "pre-commit": "lint-staged",
            "commit-msg": "commitlint --config .commitlintrc.js -E HUSKY_GIT_PARAMS"
        }
    },
    "lint-staged": {
        "*.{ts,tsx,js}": [
            "eslint --config .eslintrc.js"
        ],
        "*.{css,less,scss}": [
            "stylelint --config .stylelintrc.js"
        ],
        "*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
            "prettier --write"
        ]
    },
    "devDependencies": {
        "@babel/cli": "^7.27.2",
        "@babel/core": "^7.27.3",
        "@babel/eslint-parser": "^7.27.1",
        "@babel/plugin-transform-runtime": "^7.27.3",
        "@babel/preset-env": "^7.27.2",
        "@babel/preset-react": "^7.27.1",
        "@babel/preset-typescript": "^7.27.1",
        "@babel/runtime-corejs3": "^7.27.3",
        "@types/react": "^19.1.6",
        "@types/react-dom": "^19.1.5",
        "@types/webpack-env": "^1.18.3",
        "@typescript-eslint/eslint-plugin": "^8.33.0",
        "@typescript-eslint/parser": "^8.33.0",
        "autoprefixer": "^10.4.21",
        "babel-loader": "^9.1.3",
        "chalk": "4.1.2",
        "classnames": "^2.5.1",
        "compression-webpack-plugin": "^10.0.0",
        "copy-webpack-plugin": "^11.0.0",
        "core-js": "^3.42.0",
        "css-loader": "^7.1.2",
        "css-minimizer-webpack-plugin": "^5.0.1",
        "detect-port-alt": "^1.1.6",
        "env-cmd": "^10.1.0",
        "eslint": "^9.27.0",
        "eslint-config-prettier": "^9.1.0",
        "eslint-plugin-prettier": "^5.4.0",
        "eslint-plugin-react": "^7.37.5",
        "eslint-plugin-react-hooks": "^5.2.0",
        "fork-ts-checker-webpack-plugin": "^9.1.0",
        "gh-pages": "^5.0.0",
        "globals": "^15.15.0",
        "html-webpack-plugin": "^5.5.3",
        "husky": "^9.1.7",
        "ip": "^1.1.8",
        "less": "^4.3.0",
        "less-loader": "^12.3.0",
        "lint-staged": "^13.3.0",
        "mini-css-extract-plugin": "^2.7.6",
        "postcss": "^8.5.3",
        "postcss-flexbugs-fixes": "^5.0.2",
        "postcss-less": "^6.0.0",
        "postcss-loader": "^8.1.1",
        "postcss-normalize": "^13.0.1",
        "postcss-preset-env": "^10.2.0",
        "prettier": "^3.5.3",
        "style-loader": "^3.3.2",
        "stylelint": "^16.19.1",
        "stylelint-config-rational-order": "^0.1.2",
        "stylelint-config-standard": "^36.0.1",
        "stylelint-less": "^3.0.1",
        "svg-sprite-loader": "^6.0.11",
        "terser-webpack-plugin": "^5.3.14",
        "typescript": "^5.8.3",
        "webpack": "^5.99.9",
        "webpack-bundle-analyzer": "^4.10.2",
        "webpack-cli": "^5.1.4",
        "webpack-dev-server": "^3.11.2",
        "webpack-merge": "^6.0.1",
        "webpackbar": "^7.0.0"
    },
    "dependencies": {
        "@phosphor-icons/react": "^2.1.10",
        "axios": "^1.9.0",
        "axios-retry": "^4.5.0",
        "mobx": "^6.13.7",
        "mobx-react-lite": "^4.1.0",
        "react": "^19.1.0",
        "react-dom": "^19.1.0",
        "react-router": "^7.6.1"
    },
    "volta": {
        "node": "22.12.0",
        "npm": "9.6.6",
        "yarn": "1.22.19"
    }
}
相关推荐
文刀竹肃17 小时前
DVWA -XSS(DOM)-通关教程-完结
前端·安全·网络安全·xss
lifejump17 小时前
Pikachu | XSS
前端·xss
进击的野人17 小时前
Vue 组件与原型链:VueComponent 与 Vue 的关系解析
前端·vue.js·面试
馬致远17 小时前
Vue todoList案例 优化之本地存储
前端·javascript·vue.js
请叫我聪明鸭17 小时前
CSS实现单行、多行文本超长显示 / 不超长隐藏、悬浮窗超长展示/不超长隐藏、悬浮窗手动控制样式
前端·javascript·css
blackorbird17 小时前
苹果修复了两个在定向攻击中被利用的Webkit漏洞,其中一个与谷歌ANGLE漏洞同源
前端·webkit
席之郎小果冻17 小时前
【04】【创建型】【聊一聊,建造者模式】
java·前端·建造者模式
风无雨17 小时前
在 React 中实现数学公式显示:使用 KaTeX 和 react-katex
前端·react.js·前端框架
zfj32117 小时前
vscode是js开发的,为什么能支持golang java等各种语言开发
javascript·vscode·golang
GDAL17 小时前
Mapbox GL JS 核心表达式:`==` 相等判断完全教程
javascript·mapbox