From 4cf4c57e6e36aa91725c0e748919d10861e352a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 22 Sep 2026 11:17:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=AD=A6=E5=91=8A=20=E8=A7=84=E8=8C=83=E5=86=99?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pnpm-lock.yaml | 8 -------- vite.config.ts | 2 +- vite/plugins/index.ts | 14 +++++++------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12260e0..ad926f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -87,9 +87,6 @@ importers: specifier: 4.21.9 version: 4.21.9 devDependencies: - '@types/crypto-js': - specifier: 4.2.2 - version: 4.2.2 '@types/node': specifier: ^26.1.1 version: 26.1.1 @@ -921,9 +918,6 @@ packages: '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} - '@types/crypto-js@4.2.2': - resolution: {integrity: sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==} - '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} @@ -3077,8 +3071,6 @@ snapshots: '@types/deep-eql': 4.0.2 assertion-error: 2.0.1 - '@types/crypto-js@4.2.2': {} - '@types/deep-eql@4.0.2': {} '@types/estree@1.0.9': {} diff --git a/vite.config.ts b/vite.config.ts index fe142c7..4c167e6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,5 @@ import { defineConfig, loadEnv } from 'vite'; -import createPlugins from './vite/plugins'; +import createPlugins from './vite/plugins/index.js'; import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 export default defineConfig(({ mode, command }) => { diff --git a/vite/plugins/index.ts b/vite/plugins/index.ts index fd60679..c080b07 100644 --- a/vite/plugins/index.ts +++ b/vite/plugins/index.ts @@ -1,12 +1,12 @@ import vue from '@vitejs/plugin-vue'; -import createUnoCss from './unocss'; -import createAutoImport from './auto-import'; -import createComponents from './components'; -import createSvgIconsPlugin from './svg-icon'; -import createCompression from './compression'; -import createSetupExtend from './setup-extend'; -import { viteCheckTransitionPlugin } from './check-transition'; +import createUnoCss from './unocss.js'; +import createAutoImport from './auto-import.js'; +import createComponents from './components.js'; +import createSvgIconsPlugin from './svg-icon.js'; +import createCompression from './compression.js'; +import createSetupExtend from './setup-extend.js'; +import { viteCheckTransitionPlugin } from './check-transition.js'; export default (viteEnv: any, isBuild = false): [] => { const vitePlugins: any = [];