feat: update webpack

This commit is contained in:
2024-12-20 10:59:02 +08:00
parent 977f6328f8
commit 09d092fba5
4 changed files with 11408 additions and 8352 deletions

1
index.js Normal file
View File

@@ -0,0 +1 @@
import '@tarojs/rn-supporter/entry-file.js'

14
metro.config.js Normal file
View File

@@ -0,0 +1,14 @@
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config')
const { getMetroConfig } = require('@tarojs/rn-supporter')
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {}
module.exports = (async function () {
return mergeConfig(getDefaultConfig(__dirname), await getMetroConfig(), config)
})()

View File

@@ -39,7 +39,9 @@
"dependencies": { "dependencies": {
"@babel/runtime": "^7.21.5", "@babel/runtime": "^7.21.5",
"@nutui/nutui-react-taro": "^2.7.3", "@nutui/nutui-react-taro": "^2.7.3",
"@react-native/metro-config": "^0.73.2",
"@tarojs/components": "4.0.8", "@tarojs/components": "4.0.8",
"@tarojs/components-rn": "^4.0.8",
"@tarojs/helper": "4.0.8", "@tarojs/helper": "4.0.8",
"@tarojs/plugin-framework-react": "4.0.8", "@tarojs/plugin-framework-react": "4.0.8",
"@tarojs/plugin-html": "^4.0.8", "@tarojs/plugin-html": "^4.0.8",
@@ -51,12 +53,18 @@
"@tarojs/plugin-platform-tt": "4.0.8", "@tarojs/plugin-platform-tt": "4.0.8",
"@tarojs/plugin-platform-weapp": "4.0.8", "@tarojs/plugin-platform-weapp": "4.0.8",
"@tarojs/react": "4.0.8", "@tarojs/react": "4.0.8",
"@tarojs/rn-runner": "^4.0.8",
"@tarojs/rn-supporter": "^4.0.8",
"@tarojs/runtime": "4.0.8", "@tarojs/runtime": "4.0.8",
"@tarojs/runtime-rn": "^4.0.8",
"@tarojs/shared": "4.0.8", "@tarojs/shared": "4.0.8",
"@tarojs/taro": "4.0.8", "@tarojs/taro": "4.0.8",
"@tarojs/taro-rn": "^4.0.8",
"babel-plugin-import": "^1.13.8", "babel-plugin-import": "^1.13.8",
"react": "^18.0.0", "expo": "~50.0.2",
"react-dom": "^18.0.0", "react": "^18.3.1",
"react-dom": "^18.3.1",
"react-native": "^0.73.1",
"react-redux": "^7.2.0", "react-redux": "^7.2.0",
"redux": "^4.0.0", "redux": "^4.0.0",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
@@ -88,6 +96,6 @@
"thread-loader": "^4.0.4", "thread-loader": "^4.0.4",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"weapp-tailwindcss": "^3.7.0", "weapp-tailwindcss": "^3.7.0",
"webpack": "5.91.0" "webpack": "5.94.0"
} }
} }

19477
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff