This commit is contained in:
张成
2025-09-30 17:56:24 +08:00
parent 5f13effcd4
commit dd26282540
4 changed files with 26 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ module.exports = {
compiler: 'webpack5',
}]
],
plugins: [
[
"import",
@@ -46,7 +47,12 @@ module.exports = {
// 自动加载 css 样式文件
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jrkf/css`
},
'nutui-react',
],
['transform-remove-console', { exclude: ['error', 'warn'] }],
['@babel/plugin-transform-runtime', { corejs: false }]
],
}

View File

@@ -36,6 +36,7 @@
],
"author": "",
"dependencies": {
"@babel/plugin-transform-runtime": "^7.28.3",
"@babel/runtime": "^7.21.5",
"@nutui/nutui-react-taro": "^2.6.14",
"@tarojs/components": "4.1.5",
@@ -53,6 +54,7 @@
"@tarojs/runtime": "4.1.5",
"@tarojs/shared": "4.1.5",
"@tarojs/taro": "4.1.5",
"babel-plugin-transform-remove-console": "^6.9.4",
"dayjs": "^1.11.13",
"qweather-icons": "^1.8.0",
"react": "^18.0.0",

View File

@@ -84,4 +84,5 @@ export default defineAppConfig({
provider: "wx76a9a06e5b4e693e",
},
},
"lazyCodeLoading": "requiredComponents"
});

View File

@@ -720,6 +720,18 @@
babel-plugin-polyfill-regenerator "^0.6.5"
semver "^6.3.1"
"@babel/plugin-transform-runtime@^7.28.3":
version "7.28.3"
resolved "https://registry.npmmirror.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.28.3.tgz#f5990a1b2d2bde950ed493915e0719841c8d0eaa"
integrity sha512-Y6ab1kGqZ0u42Zv/4a7l0l72n9DKP/MKoKWaUSBylrhNZO2prYuqFOLbn5aW5SIFXwSH93yfjbgllL8lxuGKLg==
dependencies:
"@babel/helper-module-imports" "^7.27.1"
"@babel/helper-plugin-utils" "^7.27.1"
babel-plugin-polyfill-corejs2 "^0.4.14"
babel-plugin-polyfill-corejs3 "^0.13.0"
babel-plugin-polyfill-regenerator "^0.6.5"
semver "^6.3.1"
"@babel/plugin-transform-shorthand-properties@^7.27.1":
version "7.27.1"
resolved "https://registry.npmmirror.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz#532abdacdec87bfee1e0ef8e2fcdee543fe32b90"
@@ -3203,6 +3215,11 @@ babel-plugin-transform-imports-api@1.0.0:
dependencies:
is-invalid-path "^1.0.2"
babel-plugin-transform-remove-console@^6.9.4:
version "6.9.4"
resolved "https://registry.npmmirror.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz#b980360c067384e24b357a588d807d3c83527780"
integrity sha512-88blrUrMX3SPiGkT1GnvVY8E/7A+k6oj3MNvUtTIxJflFzXTw1bHkuJ/y039ouhFMp2prRn5cQGzokViYi1dsg==
babel-plugin-transform-solid-jsx@4.1.5:
version "4.1.5"
resolved "https://registry.npmmirror.com/babel-plugin-transform-solid-jsx/-/babel-plugin-transform-solid-jsx-4.1.5.tgz#203d07a15f32e65e09f266b6ad2080f346eb453a"