From 6c6c3e71c557ed42aeac43d3b873271aca757a45 Mon Sep 17 00:00:00 2001 From: h_cg <596417202@qq.com> Date: Sat, 9 Nov 2024 16:08:19 +0800 Subject: [PATCH] =?UTF-8?q?build(dependencies):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 @dcloudio/uni-* 包版本至 3.0.0-alpha-4030220241101001 - 移除 @rollup/plugin-node-resolve 依赖- 将 App.vue 中的样式语言从 scss 改为 css --- build/vitePlugins.ts | 2 -- package.json | 69 ++++++++++++++++++++++---------------------- src/App.vue | 2 +- 3 files changed, 36 insertions(+), 37 deletions(-) diff --git a/build/vitePlugins.ts b/build/vitePlugins.ts index cbab818..8da09c1 100644 --- a/build/vitePlugins.ts +++ b/build/vitePlugins.ts @@ -1,6 +1,5 @@ import type { PluginOption } from 'vite'; import uni from '@dcloudio/vite-plugin-uni'; -import { nodeResolve } from '@rollup/plugin-node-resolve'; import { visualizer } from 'rollup-plugin-visualizer'; import autoImport from 'unplugin-auto-import/vite'; import viteRestart from 'vite-plugin-restart'; @@ -15,7 +14,6 @@ export function createVitePlugins({ isProd }: VitePluginConfig): PluginOption[] return [ // @ts-expect-error TODO uni() 会报错:uni is not a function,暂时使用此方式解决 uni?.default(), - nodeResolve(), uvtw({ rem2rpx: true, disabled: WeappTailwindcssDisabled, diff --git a/package.json b/package.json index 67520c9..f9a5a50 100644 --- a/package.json +++ b/package.json @@ -43,64 +43,65 @@ "version:major": "commit-and-tag-version --release-as major" }, "dependencies": { - "@alova/adapter-uniapp": "^2.0.7", - "@alova/mock": "^2.0.7", - "@dcloudio/uni-app": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-app-plus": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-components": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-h5": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120241009001", + "@alova/adapter-uniapp": "^2.0.9", + "@alova/mock": "^2.0.9", + "@alova/shared": "^1.1.0", + "@dcloudio/uni-app": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-app-plus": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-components": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-h5": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-lark": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-qq": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030220241101001", "@multiavatar/multiavatar": "^1.0.7", - "alova": "^3.1.0", + "alova": "^3.2.2", "crypto-js": "^4.2.0", "lodash-es": "^4.17.21", - "pinia": "^2.2.4", + "pinia": "^2.2.6", "vue": "^3.5.12" }, "devDependencies": { - "@antfu/eslint-config": "^3.7.3", - "@dcloudio/types": "^3.4.12", - "@dcloudio/uni-automator": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120241009001", - "@dcloudio/uni-uts-v1": "3.0.0-alpha-4030120241009001", - "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120241009001", + "@antfu/eslint-config": "^3.8.0", + "@dcloudio/types": "^3.4.14", + "@dcloudio/uni-automator": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-stacktracey": "3.0.0-alpha-4030220241101001", + "@dcloudio/uni-uts-v1": "3.0.0-alpha-4030220241101001", + "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030220241101001", "@egoist/tailwindcss-icons": "^1.8.1", - "@iconify/json": "^2.2.259", + "@iconify/json": "^2.2.270", "@rollup/plugin-node-resolve": "^15.3.0", "@types/crypto-js": "^4.2.2", "@types/lodash-es": "^4.17.12", - "@types/node": "^20.16.11", + "@types/node": "^20.17.6", "@vitejs/plugin-vue": "^5.1.4", "@vue/runtime-core": "^3.5.12", "autoprefixer": "^10.4.20", "commit-and-tag-version": "^12.5.0", - "eslint": "^9.12.0", + "eslint": "^9.14.0", "eslint-plugin-format": "^0.1.2", - "globals": "^15.11.0", + "globals": "^15.12.0", "lint-staged": "^15.2.10", - "picocolors": "^1.1.0", + "picocolors": "^1.1.1", "postcss": "^8.4.47", "rollup-plugin-visualizer": "^5.12.0", - "sass": "^1.79.5", + "sass": "^1.80.6", "simple-git-hooks": "^2.11.1", - "tailwindcss": "^3.4.13", - "tsx": "^4.19.1", + "tailwindcss": "^3.4.14", + "tsx": "^4.19.2", "typescript": "^5.6.3", "uni-mini-router": "^0.1.6", "uni-read-pages-vite": "^0.0.6", "unplugin-auto-import": "^0.18.3", - "vite": "^5.4.8", + "vite": "^5.4.10", "vite-plugin-restart": "^0.4.1", - "weapp-tailwindcss": "^3.5.3" + "weapp-tailwindcss": "^3.7.0" }, "simple-git-hooks": { "pre-commit": "npx lint-staged", diff --git a/src/App.vue b/src/App.vue index e7e649e..6ee2ae9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,7 @@ onHide(() => { }); -