feat: 更新配置和依赖项,启用 oxc 插件,移除 cdnImport 插件
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -23,5 +23,6 @@
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"],
|
||||
"i18n-ally.localesPaths": ["src/locales"],
|
||||
"i18n-ally.keystyle": "nested"
|
||||
"i18n-ally.keystyle": "nested",
|
||||
"oxc.enable": true
|
||||
}
|
||||
|
10
package.json
10
package.json
@ -58,7 +58,7 @@
|
||||
"dayjs": "^1.11.13",
|
||||
"deep-freeze-es6": "^4.0.0",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"lucide-vue-next": "^0.483.0",
|
||||
"lucide-vue-next": "^0.485.0",
|
||||
"mitt": "^3.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"orbpro": "^1.126.0",
|
||||
@ -96,7 +96,7 @@
|
||||
"@types/node": "^22.13.14",
|
||||
"@types/nprogress": "^0.2.3",
|
||||
"@types/three": "^0.175.0",
|
||||
"@unocss/preset-rem-to-px": "^66.0.0",
|
||||
"@unocss/preset-rem-to-px": "66.1.0-beta.7",
|
||||
"@vant/auto-import-resolver": "^1.3.0",
|
||||
"@vitejs/plugin-vue": "^5.2.3",
|
||||
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
||||
@ -105,8 +105,6 @@
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"archiver": "^7.0.1",
|
||||
"commitizen": "^4.3.1",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"depcheck": "^1.4.7",
|
||||
"eruda": "^3.4.1",
|
||||
"eslint": "^9.23.0",
|
||||
@ -123,10 +121,9 @@
|
||||
"oxlint": "^0.16.3",
|
||||
"prettier": "3.5.3",
|
||||
"sass-embedded": "^1.86.0",
|
||||
"surge": "^0.24.6",
|
||||
"terser": "^5.39.0",
|
||||
"typescript": "~5.8.2",
|
||||
"unocss": "^66.0.0",
|
||||
"unocss": "66.1.0-beta.7",
|
||||
"unocss-preset-animations": "^1.1.1",
|
||||
"unocss-preset-chinese": "^0.3.3",
|
||||
"unocss-preset-shadcn": "^0.5.0",
|
||||
@ -137,7 +134,6 @@
|
||||
"unplugin-vue-markdown": "^28.3.1",
|
||||
"unplugin-vue-router": "^0.12.0",
|
||||
"vite": "^6.2.3",
|
||||
"vite-plugin-cdn-import": "^1.0.1",
|
||||
"vite-plugin-fake-server": "^2.2.0",
|
||||
"vite-plugin-purgecss-updated-v5": "^1.2.4",
|
||||
"vite-plugin-singlefile": "^2.2.0",
|
||||
|
1531
pnpm-lock.yaml
generated
1531
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,6 @@ import { getPascalCaseRouteName, VueRouterAutoImports } from 'unplugin-vue-route
|
||||
import VueRouter from 'unplugin-vue-router/vite';
|
||||
import { createUtils4uAutoImports } from 'utils4u/auto-imports';
|
||||
import { PluginOption } from 'vite';
|
||||
import cdnImport from 'vite-plugin-cdn-import';
|
||||
import { vitePluginFakeServer } from 'vite-plugin-fake-server';
|
||||
import pluginPurgeCss from 'vite-plugin-purgecss-updated-v5';
|
||||
import { viteSingleFile } from 'vite-plugin-singlefile';
|
||||
@ -201,11 +200,11 @@ export function Plugins() {
|
||||
// https://github.com/VaJoy/vite-plugin-cdn-import-async$0
|
||||
// https://github.com/mmf-fe/vite-plugin-cdn-import/blob/HEAD/README.zh-CN.md
|
||||
// 会对 Components 插件的自动导入产生影响。
|
||||
cdnImport({
|
||||
enableInDevMode: true,
|
||||
modules: ['vue'],
|
||||
prodUrl: '//fastly.jsdelivr.net/npm/{name}@{version}/{path}',
|
||||
}),
|
||||
// cdnImport({
|
||||
// enableInDevMode: true,
|
||||
// modules: ['vue'],
|
||||
// prodUrl: '//fastly.jsdelivr.net/npm/{name}@{version}/{path}',
|
||||
// }),
|
||||
|
||||
viteSingleFile(),
|
||||
|
||||
|
Reference in New Issue
Block a user