🔧 build(升级react18): 升级依赖支持react18

This commit is contained in:
xuan 2022-08-26 14:35:19 +08:00
parent 0d97c056cc
commit 2a28ba0416
4 changed files with 27089 additions and 22639 deletions

View File

@ -19,7 +19,7 @@ const CURRENT_VERSION = `Version: ${JSON.stringify(process.env.CODE_BRANCH || ve
)
const config = {
projectName: 'EShop',
projectName: 'SpiderSteward',
date: '2022-4-6',
designWidth: 750,
deviceRatio: {
@ -77,6 +77,18 @@ const config = {
},
},
},
compiler: {
type: 'webpack5',
// 依赖预编译配置
prebundle: {
enable: true,
},
},
// 持久化缓存配置
cache: {
enable: true,
},
plugins: [['@tarojs/plugin-framework-react', { reactMode: 'concurrent' }]],
}
module.exports = function (merge) {

39367
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -38,16 +38,16 @@
"author": "",
"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.3.10",
"@tarojs/components": "3.5.4",
"@tarojs/plugin-framework-react": "^3.4.12",
"@tarojs/react": "3.3.10",
"@tarojs/runtime": "3.3.10",
"@tarojs/taro": "3.3.10",
"@tarojs/react": "3.5.4",
"@tarojs/runtime": "3.5.4",
"@tarojs/taro": "3.5.4",
"big.js": "^6.1.1",
"dayjs": "^1.11.3",
"qs": "^6.10.3",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.1",
"redux": "^4.2.0",
"redux-logger": "^3.0.6",
@ -56,23 +56,25 @@
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@tarojs/mini-runner": "3.3.10",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
"@tarojs/plugin-mini-ci": "^3.5.1",
"@tarojs/plugin-react-devtools": "^3.4.13",
"@tarojs/webpack-runner": "3.3.10",
"@tarojs/webpack5-runner": "^3.5.4",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.2",
"@types/react": "^18.0.17",
"@types/webpack-env": "^1.13.6",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"babel-preset-taro": "3.3.10",
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"eslint-config-taro": "3.3.10",
"eslint-config-taro": "3.5.4",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^4.2.0",
"react-refresh": "0.11.0",
"stylelint": "9.3.0",
"typescript": "^4.1.0"
"typescript": "^4.1.0",
"webpack": "^5.74.0"
}
}

10295
yarn.lock

File diff suppressed because it is too large Load Diff