修复 Taro 在 Node 24 下的开发/构建兼容性

This commit is contained in:
ChengCan
2026-03-26 14:32:15 +08:00
parent cff7ddf220
commit a353c8aa47
2 changed files with 70 additions and 33 deletions

View File

@@ -4,8 +4,8 @@
"private": true,
"description": "伴伴微信小程序",
"scripts": {
"build:weapp": "taro build --type weapp",
"dev:weapp": "taro build --type weapp --watch"
"build:weapp": "cross-env NODE_OPTIONS=--openssl-legacy-provider taro build --type weapp",
"dev:weapp": "cross-env NODE_OPTIONS=--openssl-legacy-provider taro build --type weapp --watch"
},
"dependencies": {
"@tarojs/components": "^3.6.38",
@@ -13,8 +13,8 @@
"@tarojs/react": "^3.6.38",
"@tarojs/runtime": "^3.6.38",
"@tarojs/taro": "^3.6.38",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"webpack": "^4.47.0"
},
"devDependencies": {
@@ -25,6 +25,7 @@
"@types/react": "^18.0.0",
"@types/webpack-env": "^1.13.9",
"babel-preset-taro": "^3.6.38",
"cross-env": "^10.1.0",
"typescript": "^4.1.0"
}
}