vitarx-router 4.0.6 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,6 +63,12 @@ export default function vitarxRouter(options = {}) {
63
63
  */
64
64
  config(_config, env) {
65
65
  state.isPreview = !!env.isPreview;
66
+ return {
67
+ optimizeDeps: {
68
+ // 排除自动路由生成模块,兼容 esbuild,修复 vite < 8.0.0 版本兼容性问题
69
+ exclude: ['vitarx-router/auto-routes']
70
+ }
71
+ };
66
72
  },
67
73
  /**
68
74
  * 配置解析完成钩子
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitarx-router",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Official routing solution for Vitarx framework with declarative routing, navigation guards, dynamic routes, file-based routing with HMR, and full TypeScript support.",
5
5
  "author": "ZhuChonglin <8210856@qq.com>",
6
6
  "license": "MIT",