Commit Graph

22 Commits (08abd54ca0a5a223cffbf38193bdebeffbc9e1df)

Author SHA1 Message Date
YunaiV 2ea2d9b18f perf(build): 继续优化构建和 lint 执行效率
- 关闭构建 gzip size 统计并调整 chunk 警告阈值
- 移除 Vite dev/build 链路中的 ESLint 和 progress 插件
- 删除未使用的 legacy、terser、ejs、eslint、progress 构建依赖
- 为 ESLint、Stylelint、Prettier 增加缓存脚本
- 新增 lint-staged 配置,仅处理变更文件

perf(lint): 将 ESLint 热缓存耗时从约 16.3s 降到约 1.3s
2026-06-20 04:57:48 -07:00
YunaiV 3d37515cfc perf(build): 将生产构建从约 41.6s 优化到约 21.6s
- 使用 oxc 替换 terser 作为生产压缩器
- 生产构建跳过 ESLint、progress 和 auto d.ts 生成
- gzip/brotli 产物改为通过 VITE_COMPRESS 按需生成
- 移除无用的 EJS 和 top-level-await 构建插件
- 删除 vite-plugin-top-level-await 依赖
2026-06-20 04:31:53 -07:00
DevDengChao 9552a3cd2e fix: remove @intlify/unplugin-vue-i18n to resolve ReferenceError
The plugin forces vue-i18n to use esm-bundler.js entry via resolve alias,
which contains esbuild/rolldown internal module init function references
(init_runtime_dom_esm_bundler, etc.). When the bundler splits code into
chunks, these cross-chunk references become orphaned, causing ReferenceError.

Removing the plugin lets vue-i18n use its standard .mjs entry, which
does not have these problematic references. Locale messages are then
compiled at runtime instead of build time, but functionality is unchanged.

Fixes #230
See https://github.com/rolldown/rolldown/issues/9515
2026-06-15 23:04:13 +08:00
YunaiV a3f89d686c Merge pull request #215 from yudaocode/upgrade
# Conflicts:
#	build/vite/optimize.ts
#	package-lock.json
#	package.json
#	pnpm-lock.yaml
2026-05-17 13:56:29 +08:00
DevDengChao 2520de56b4 refactor(icon): replace deprecated @iconify/iconify with @iconify/vue
- Remove @iconify/iconify (deprecated), @purge-icons/generated, vite-plugin-purge-icons
- Add @iconify/vue which uses @iconify/utils iconToSVG internally
- Rewrite Icon.vue to use @iconify/vue Icon component instead of manual DOM manipulation
- Pre-load ep/fa/fa-solid icon sets via addCollection for offline support
- Other icon sets (ion, mdi, heroicons, etc.) load from Iconify API on demand
- Remove PurgeIcons() from Vite plugin config
- Verified: all 22 icons on login page render correctly as SVGs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:26:12 +08:00
DevDengChao 6ffcbbc1d2 chore(deps): migrate ESLint 8 → 10 with flat config
- Upgrade eslint 8.57.1 → 10.0.2
- Migrate .eslintrc.js → eslint.config.mjs (flat config)
- Replace vite-plugin-eslint → vite-plugin-eslint2
- Replace @typescript-eslint/eslint-plugin + parser → typescript-eslint
- Upgrade eslint-plugin-vue 9 → 10, vue-eslint-parser 9 → 10
- Remove eslint-define-config, eslint-config-prettier, eslint-plugin-prettier
- Delete .eslintignore (now handled in flat config ignores)
- Remove deprecated rules: vue/script-setup-uses-vars, vue/no-setup-props-destructure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 19:44:40 +08:00
yangxu52 873bb24e68 chore: 替换vite-plugin-svg-icons
替换vite-plugin-svg-icons插件, 以修复安全漏洞、解决依赖冲突和优化性能表现
 - 替换vite-plugin-svg-icons为vite-plugin-svg-icons-ng(完全兼容的API)
 - 调整插件的导入,并修改svgo优化参数配置项,空即启用默认优化
2025-04-05 10:42:25 +08:00
owen 55b477acdb unplugin-auto-import:排除自动导入店铺装修组件 2023-11-09 15:48:20 +08:00
xingyu 4249465b7c wip: use unocss 2023-07-29 14:40:55 +08:00
xingyu 33c460ad55 chore: remove vueSetupExtend 2023-06-21 19:24:09 +08:00
puhui999 b26bba9939 移除vex hooks自动导入,修复打包报错 2023-04-14 22:40:05 +08:00
dhb52 a5cb7a50ab fix: vscode debug 2023-04-10 16:55:02 +08:00
YunaiV bb88e3d77c REVIEW 已完成的任务列表 2023-04-05 00:12:12 +08:00
puhui999 05019837d0 修复在vue3+vite3 模块中使用顶层await打包的时候报错 2023-04-04 22:08:17 +08:00
puhui999 ba5985943b update: 解决点击遮罩层弹窗关闭后,页面就操作不了了会一直转圈的问题 2023-03-30 16:04:46 +08:00
xingyuv e6ccfbddb6 chore: update vite 4.2 2023-03-23 09:42:01 +08:00
YunaiV 4aeee48582 增加 useCrudSchemas、useTable 的 autoimport 实现 2023-03-17 22:58:49 +08:00
YunaiV 7f336bbe92 暂时取消 https 加速方案,主要考虑 server 端没有 https 2023-03-07 19:21:39 +08:00
YunaiV 6cf76691a1 Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into feat/optimize_vite
 Conflicts:
	package.json
	src/types/auto-imports.d.ts
2023-03-07 19:05:26 +08:00
xingyuv 7fea89f5f9 feat: aotu import 2023-03-07 10:05:45 +08:00
answer.huang 000b0059c6 feat: 改用 https,加快首次打开页面 2023-03-05 23:04:20 +08:00
YunaiV 56f3017baa 初始化项目,自 v1.7.1 版本开始 2023-02-11 00:44:00 +08:00