weapp-vite 6.7.7 → 6.9.0

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.
Files changed (55) hide show
  1. package/dist/auto-import-components/resolvers.d.mts +2 -0
  2. package/dist/auto-import-components/resolvers.mjs +309 -350
  3. package/dist/auto-routes.d.mts +17 -0
  4. package/dist/auto-routes.mjs +48 -78
  5. package/dist/cli.d.mts +1 -0
  6. package/dist/cli.mjs +2171 -2398
  7. package/dist/config-IEj3IfSy.d.mts +3128 -0
  8. package/dist/config.d.mts +2 -0
  9. package/dist/config.mjs +8 -31
  10. package/dist/createContext-CDgRHY26.mjs +19 -0
  11. package/dist/file-UprqcX9e.mjs +356 -0
  12. package/dist/getInstance-jl4yXdc0.mjs +31841 -0
  13. package/dist/index-B5wBsuYI.d.mts +56 -0
  14. package/dist/index.d.mts +13 -0
  15. package/dist/index.mjs +9 -51
  16. package/dist/json.d.mts +2 -0
  17. package/dist/json.mjs +32 -14
  18. package/dist/logger-gutcwWKE.mjs +2 -0
  19. package/dist/mcp-pzGAH7ob.mjs +6415 -0
  20. package/dist/mcp.d.mts +30 -0
  21. package/dist/mcp.mjs +3 -18
  22. package/dist/pluginHost-SJdl15d3.mjs +24 -0
  23. package/dist/routes-o20IHwXa.d.mts +13 -0
  24. package/dist/{runtime.d.ts → runtime.d.mts} +12 -11
  25. package/dist/runtime.mjs +32 -11
  26. package/dist/types.d.mts +4 -0
  27. package/dist/types.mjs +1 -25
  28. package/dist/volar.d.mts +2 -0
  29. package/dist/volar.mjs +3 -9
  30. package/package.json +29 -34
  31. package/dist/auto-import-components/resolvers.d.ts +0 -10
  32. package/dist/auto-routes.d.ts +0 -16
  33. package/dist/chunk-6YAZCQOZ.mjs +0 -9911
  34. package/dist/chunk-BGBLJUWD.mjs +0 -41
  35. package/dist/chunk-CWD4PR26.mjs +0 -39065
  36. package/dist/chunk-KTCETRUS.mjs +0 -426
  37. package/dist/chunk-KV5GZOAZ.mjs +0 -29
  38. package/dist/chunk-O2IN5LBB.mjs +0 -6
  39. package/dist/chunk-QD76G22N.mjs +0 -48
  40. package/dist/chunk-TXDI3ZWL.mjs +0 -33
  41. package/dist/chunk-W3UG2WZQ.mjs +0 -34
  42. package/dist/chunk-XIEFUUA5.mjs +0 -14
  43. package/dist/chunk-XQYQD5CM.mjs +0 -13
  44. package/dist/cli.d.ts +0 -2
  45. package/dist/config-CBlfQKJ-.d.ts +0 -1488
  46. package/dist/config.d.ts +0 -18
  47. package/dist/file-7NLX4QGQ.mjs +0 -29
  48. package/dist/getInstance-EKVIAYM4.mjs +0 -18
  49. package/dist/index.d.ts +0 -29
  50. package/dist/json.d.ts +0 -18
  51. package/dist/mcp.d.ts +0 -47
  52. package/dist/routes-74eLuiqj.d.ts +0 -12
  53. package/dist/types-B6irZnLM.d.ts +0 -46
  54. package/dist/types.d.ts +0 -29
  55. package/dist/volar.d.ts +0 -2
package/dist/mcp.d.mts ADDED
@@ -0,0 +1,30 @@
1
+ import { pt as WeappMcpConfig } from "./config-IEj3IfSy.mjs";
2
+ import { CreateServerOptions, createWeappViteMcpServer } from "@weapp-vite/mcp";
3
+
4
+ //#region src/mcp.d.ts
5
+ declare const DEFAULT_MCP_HOST = "127.0.0.1";
6
+ declare const DEFAULT_MCP_PORT = 3088;
7
+ declare const DEFAULT_MCP_ENDPOINT = "/mcp";
8
+ interface ResolvedWeappMcpConfig {
9
+ enabled: boolean;
10
+ autoStart: boolean;
11
+ host: string;
12
+ port: number;
13
+ endpoint: string;
14
+ }
15
+ interface WeappViteMcpServerOptions extends CreateServerOptions {
16
+ transport?: 'stdio' | 'streamable-http';
17
+ host?: string;
18
+ port?: number;
19
+ endpoint?: string;
20
+ unref?: boolean;
21
+ quiet?: boolean;
22
+ }
23
+ interface WeappViteMcpServerHandle {
24
+ transport: 'stdio' | 'streamable-http';
25
+ close?: () => Promise<void>;
26
+ }
27
+ declare function resolveWeappMcpConfig(config?: boolean | WeappMcpConfig): ResolvedWeappMcpConfig;
28
+ declare function startWeappViteMcpServer(options?: WeappViteMcpServerOptions): Promise<WeappViteMcpServerHandle>;
29
+ //#endregion
30
+ export { type CreateServerOptions, DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, ResolvedWeappMcpConfig, WeappViteMcpServerHandle, WeappViteMcpServerOptions, createWeappViteMcpServer, resolveWeappMcpConfig, startWeappViteMcpServer };
package/dist/mcp.mjs CHANGED
@@ -1,18 +1,3 @@
1
- import {
2
- DEFAULT_MCP_ENDPOINT,
3
- DEFAULT_MCP_HOST,
4
- DEFAULT_MCP_PORT,
5
- createWeappViteMcpServer,
6
- resolveWeappMcpConfig,
7
- startWeappViteMcpServer
8
- } from "./chunk-6YAZCQOZ.mjs";
9
- import "./chunk-XIEFUUA5.mjs";
10
- import "./chunk-QD76G22N.mjs";
11
- export {
12
- DEFAULT_MCP_ENDPOINT,
13
- DEFAULT_MCP_HOST,
14
- DEFAULT_MCP_PORT,
15
- createWeappViteMcpServer,
16
- resolveWeappMcpConfig,
17
- startWeappViteMcpServer
18
- };
1
+ import "./logger-gutcwWKE.mjs";
2
+ import { a as resolveWeappMcpConfig, i as createWeappViteMcpServer, n as DEFAULT_MCP_HOST, o as startWeappViteMcpServer, r as DEFAULT_MCP_PORT, t as DEFAULT_MCP_ENDPOINT } from "./mcp-pzGAH7ob.mjs";
3
+ export { DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, createWeappViteMcpServer, resolveWeappMcpConfig, startWeappViteMcpServer };
@@ -0,0 +1,24 @@
1
+ //#region src/pluginHost.ts
2
+ const WEAPP_VITE_HOST_NAME = "weapp-vite";
3
+ function createWeappViteHostMeta(runtime) {
4
+ return {
5
+ name: WEAPP_VITE_HOST_NAME,
6
+ runtime
7
+ };
8
+ }
9
+ function applyWeappViteHostMeta(config, runtime) {
10
+ config.weappVite = createWeappViteHostMeta(runtime);
11
+ return config;
12
+ }
13
+ function resolveWeappViteHostMeta(config) {
14
+ const meta = config?.weappVite;
15
+ if (!meta || typeof meta !== "object") return;
16
+ if (meta.name !== "weapp-vite") return;
17
+ if (meta.runtime !== "miniprogram" && meta.runtime !== "web") return;
18
+ return meta;
19
+ }
20
+ function isWeappViteHost(config) {
21
+ return resolveWeappViteHostMeta(config) !== void 0;
22
+ }
23
+ //#endregion
24
+ export { resolveWeappViteHostMeta as a, isWeappViteHost as i, applyWeappViteHostMeta as n, createWeappViteHostMeta as r, WEAPP_VITE_HOST_NAME as t };
@@ -0,0 +1,13 @@
1
+ //#region src/types/routes.d.ts
2
+ interface AutoRoutesSubPackage {
3
+ root: string;
4
+ pages: string[];
5
+ [k: string]: unknown;
6
+ }
7
+ interface AutoRoutes {
8
+ pages: string[];
9
+ entries: string[];
10
+ subPackages: AutoRoutesSubPackage[];
11
+ }
12
+ //#endregion
13
+ export { AutoRoutesSubPackage as n, AutoRoutes as t };
@@ -1,14 +1,15 @@
1
- import { ComputedDefinitions, MethodDefinitions } from 'wevu';
1
+ import { ComputedDefinitions, MethodDefinitions } from "wevu";
2
2
 
3
+ //#region src/plugins/vue/runtime.d.ts
3
4
  interface WevuComponentOptions<D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions> {
4
- data?: () => D;
5
- computed?: C;
6
- methods?: M;
7
- watch?: any;
8
- setup?: (...args: any[]) => any;
9
- setupLifecycle?: 'created' | 'attached';
10
- properties?: Record<string, any>;
11
- [key: string]: any;
5
+ data?: () => D;
6
+ computed?: C;
7
+ methods?: M;
8
+ watch?: any;
9
+ setup?: (...args: any[]) => any;
10
+ setupLifecycle?: 'created' | 'attached';
11
+ properties?: Record<string, any>;
12
+ [key: string]: any;
12
13
  }
13
14
  /**
14
15
  * 从 Vue SFC 的 options 创建 wevu 组件
@@ -26,5 +27,5 @@ declare function defineProps<T extends Record<string, any>>(props: T): T;
26
27
  * 说明:Vue 3 风格的 emits 声明(用于类型提示)
27
28
  */
28
29
  declare function defineEmits<T extends Record<string, any> | string[]>(emits: T): T;
29
-
30
- export { type WevuComponentOptions, createWevuComponent, defineEmits, defineProps };
30
+ //#endregion
31
+ export { WevuComponentOptions, createWevuComponent, defineEmits, defineProps };
package/dist/runtime.mjs CHANGED
@@ -1,11 +1,32 @@
1
- import {
2
- createWevuComponent,
3
- defineEmits,
4
- defineProps
5
- } from "./chunk-W3UG2WZQ.mjs";
6
- import "./chunk-QD76G22N.mjs";
7
- export {
8
- createWevuComponent,
9
- defineEmits,
10
- defineProps
11
- };
1
+ import { defineComponent } from "wevu";
2
+ //#region src/plugins/vue/runtime.ts
3
+ /**
4
+ * 从 Vue SFC 的 options 创建 wevu 组件
5
+ * 同时支持 Vue 2 风格(Options API)与 Vue 3 风格(Composition API)
6
+ *
7
+ * 始终使用 defineComponent(其内部会调用小程序的 Component())。
8
+ * 在微信小程序中,Component() 可以同时定义页面与组件。
9
+ */
10
+ function createWevuComponent(options) {
11
+ const { properties, ...restOptions } = options;
12
+ const mpOptions = {};
13
+ if (properties) mpOptions.properties = properties;
14
+ defineComponent({
15
+ ...restOptions,
16
+ ...mpOptions
17
+ });
18
+ }
19
+ /**
20
+ * 说明:Vue 3 风格的 props 声明(用于类型提示)
21
+ */
22
+ function defineProps(props) {
23
+ return props;
24
+ }
25
+ /**
26
+ * 说明:Vue 3 风格的 emits 声明(用于类型提示)
27
+ */
28
+ function defineEmits(emits) {
29
+ return emits;
30
+ }
31
+ //#endregion
32
+ export { createWevuComponent, defineEmits, defineProps };
@@ -0,0 +1,4 @@
1
+ import { c as Resolver } from "./index-B5wBsuYI.mjs";
2
+ import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-o20IHwXa.mjs";
3
+ import { $ as WeappDebugConfig, $t as SharedChunkOverride, A as Ref, At as GenerateFilenamesOptions, B as BindingErrorLike, Bt as JsFormat, Ct as BuildNpmPackageMeta, D as MethodDefinitions, Dt as GenerateDirsOptions, E as InlineConfig, Et as CopyOptions, F as RolldownPlugin, Ft as GenerateTemplateFactory, G as EntryJsonFragment, Gt as JsonMergeStrategy, H as BaseEntry, Ht as JsonMergeContext, I as RolldownPluginOption, It as GenerateTemplateFileSource, J as ScanComponentItem, Jt as NpmMainPackageConfig, K as PageEntry, Kt as MpPlatform, L as RolldownWatchOptions, Lt as GenerateTemplateInlineSource, M as RolldownBuild, Mt as GenerateTemplate, N as RolldownOptions, Nt as GenerateTemplateContext, O as Plugin, Ot as GenerateExtensionsOptions, P as RolldownOutput, Pt as GenerateTemplateEntry, Q as UserConfig, Qt as SharedChunkMode, R as RolldownWatcher, Rt as GenerateTemplateScope, St as AlipayNpmMode, T as ConfigEnv, Tt as CopyGlobs, U as ComponentEntry, Ut as JsonMergeFunction, V as AppEntry, Vt as JsonConfig, W as Entry, Wt as JsonMergeStage, X as ProjectConfig, Xt as ResolvedAlias, Y as WxmlDep, Yt as NpmSubPackageConfig, Z as SubPackageMetaValue, Zt as SharedChunkDynamicImports, _t as WeappVueTemplateConfig, an as SubPackageStyleScope, at as HandleWxmlOptions, b as ChangeEvent, bt as Alias, cn as WeappLibDtsOptions, ct as WeappAutoRoutesConfig, dn as WeappLibInternalDtsOptions, dt as WeappHmrConfig, en as SharedChunkStrategy, et as WeappViteConfig, fn as WeappLibVueTscOptions, ft as WeappInjectWeapiConfig, gn as WeappViteRuntime, gt as WeappVueConfig, hn as WeappViteHostMeta, ht as WeappSubPackageConfig, in as SubPackageStyleEntry, it as EnhanceWxmlOptions, j as ResolvedConfig, jt as GenerateOptions, k as PluginOption, kt as GenerateFileType, ln as WeappLibEntryContext, lt as WeappAutoRoutesInclude, mt as WeappNpmConfig, nn as SubPackageStyleConfigEntry, nt as AutoImportComponentsOption, on as WeappLibComponentJson, ot as MultiPlatformConfig, pn as WeappWebConfig, pt as WeappMcpConfig, q as ComponentsMap, qt as NpmBuildOptions, rn as SubPackageStyleConfigObject, rt as EnhanceOptions, sn as WeappLibConfig, st as ScanWxmlOptions, tn as SubPackage, tt as AutoImportComponents, un as WeappLibFileName, ut as WeappAutoRoutesIncludePattern, vt as WeappWevuConfig, w as ComputedDefinitions, wt as ChunksConfig, x as WeappVitePluginApi, xt as AliasOptions, yt as WeappWorkerConfig, z as ViteDevServer, zt as GenerateTemplatesConfig } from "./config-IEj3IfSy.mjs";
4
+ export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, ComputedDefinitions, ConfigEnv, CopyGlobs, CopyOptions, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmMainPackageConfig, NpmSubPackageConfig, PageEntry, Plugin, PluginOption, ProjectConfig, Ref, ResolvedAlias, ResolvedConfig, Resolver, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatchOptions, RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, ViteDevServer, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappDebugConfig, WeappHmrConfig, WeappInjectWeapiConfig, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappMcpConfig, WeappNpmConfig, WeappSubPackageConfig, WeappViteConfig, WeappViteHostMeta, WeappVitePluginApi, WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
package/dist/types.mjs CHANGED
@@ -1,25 +1 @@
1
- import "./chunk-O2IN5LBB.mjs";
2
- import {
3
- init_esm_shims
4
- } from "./chunk-QD76G22N.mjs";
5
-
6
- // src/types/index.ts
7
- init_esm_shims();
8
-
9
- // src/types/config.ts
10
- init_esm_shims();
11
-
12
- // src/types/context.ts
13
- init_esm_shims();
14
-
15
- // src/types/entry.ts
16
- init_esm_shims();
17
-
18
- // src/types/errors.ts
19
- init_esm_shims();
20
-
21
- // src/types/plugin.ts
22
- init_esm_shims();
23
-
24
- // src/types/routes.ts
25
- init_esm_shims();
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import plugin from "@weapp-vite/volar";
2
+ export { plugin as default };
package/dist/volar.mjs CHANGED
@@ -1,11 +1,5 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-QD76G22N.mjs";
4
-
5
- // src/volar.ts
6
- init_esm_shims();
7
1
  import plugin from "@weapp-vite/volar";
2
+ //#region src/volar.ts
8
3
  var volar_default = plugin;
9
- export {
10
- volar_default as default
11
- };
4
+ //#endregion
5
+ export { volar_default as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.7.7",
4
+ "version": "6.9.0",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -26,40 +26,40 @@
26
26
  ],
27
27
  "exports": {
28
28
  ".": {
29
- "types": "./dist/index.d.ts",
29
+ "types": "./dist/index.d.mts",
30
30
  "import": "./dist/index.mjs"
31
31
  },
32
32
  "./config": {
33
- "types": "./dist/config.d.ts",
33
+ "types": "./dist/config.d.mts",
34
34
  "import": "./dist/config.mjs"
35
35
  },
36
36
  "./json": {
37
- "types": "./dist/json.d.ts",
37
+ "types": "./dist/json.d.mts",
38
38
  "import": "./dist/json.mjs"
39
39
  },
40
40
  "./volar": {
41
- "types": "./dist/volar.d.ts",
41
+ "types": "./dist/volar.d.mts",
42
42
  "import": "./dist/volar.mjs",
43
43
  "require": "./volar.cjs"
44
44
  },
45
45
  "./runtime": {
46
- "types": "./dist/runtime.d.ts",
46
+ "types": "./dist/runtime.d.mts",
47
47
  "import": "./dist/runtime.mjs"
48
48
  },
49
49
  "./mcp": {
50
- "types": "./dist/mcp.d.ts",
50
+ "types": "./dist/mcp.d.mts",
51
51
  "import": "./dist/mcp.mjs"
52
52
  },
53
53
  "./types": {
54
- "types": "./dist/types.d.ts",
54
+ "types": "./dist/types.d.mts",
55
55
  "import": "./dist/types.mjs"
56
56
  },
57
57
  "./auto-import-components/resolvers": {
58
- "types": "./dist/auto-import-components/resolvers.d.ts",
58
+ "types": "./dist/auto-import-components/resolvers.d.mts",
59
59
  "import": "./dist/auto-import-components/resolvers.mjs"
60
60
  },
61
61
  "./auto-routes": {
62
- "types": "./dist/auto-routes.d.ts",
62
+ "types": "./dist/auto-routes.d.mts",
63
63
  "import": "./dist/auto-routes.mjs"
64
64
  },
65
65
  "./client": {
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "main": "./dist/index.mjs",
72
72
  "module": "./dist/index.mjs",
73
- "types": "./dist/index.d.ts",
73
+ "types": "./dist/index.d.mts",
74
74
  "bin": {
75
75
  "weapp-vite": "bin/weapp-vite.js",
76
76
  "wv": "bin/weapp-vite.js"
@@ -86,11 +86,6 @@
86
86
  "node": "^20.19.0 || >=22.12.0"
87
87
  },
88
88
  "dependencies": {
89
- "@babel/core": "^7.29.0",
90
- "@babel/generator": "^7.29.1",
91
- "@babel/parser": "^7.29.0",
92
- "@babel/traverse": "^7.29.0",
93
- "@babel/types": "^7.29.0",
94
89
  "@volar/typescript": "^2.4.28",
95
90
  "@vue/compiler-core": "^3.5.30",
96
91
  "@vue/language-core": "^3.2.5",
@@ -99,8 +94,6 @@
99
94
  "fdir": "^6.5.0",
100
95
  "fs-extra": "^11.3.4",
101
96
  "magic-string": "^0.30.21",
102
- "oxc-parser": "^0.118.0",
103
- "oxc-walker": "^0.7.0",
104
97
  "pathe": "^2.0.3",
105
98
  "picomatch": "^4.0.3",
106
99
  "postcss": "^8.5.8",
@@ -111,39 +104,41 @@
111
104
  "vite-tsconfig-paths": "^6.1.1",
112
105
  "vue": "^3.5.30",
113
106
  "vue-tsc": "^3.2.5",
114
- "@weapp-core/init": "6.0.1",
115
- "@weapp-core/logger": "3.1.0",
116
- "@weapp-core/schematics": "6.0.2",
117
- "@weapp-core/shared": "3.0.1",
107
+ "@weapp-core/init": "6.0.2",
108
+ "@weapp-core/logger": "3.1.1",
109
+ "@weapp-core/schematics": "6.0.3",
110
+ "@weapp-core/shared": "3.0.2",
111
+ "@weapp-vite/ast": "6.9.0",
118
112
  "@weapp-vite/mcp": "1.1.0",
119
- "@weapp-vite/volar": "2.0.5",
120
- "@weapp-vite/web": "1.3.2",
121
- "@wevu/api": "0.2.0",
122
- "rolldown-require": "2.0.7",
113
+ "@weapp-vite/volar": "2.0.6",
114
+ "@weapp-vite/web": "1.3.4",
115
+ "@wevu/api": "0.2.1",
116
+ "rolldown-require": "2.0.8",
123
117
  "vite-plugin-performance": "2.0.1",
124
- "weapp-ide-cli": "5.1.0",
125
- "wevu": "6.7.7"
118
+ "weapp-ide-cli": "5.1.1",
119
+ "wevu": "6.9.0"
126
120
  },
127
121
  "publishConfig": {
128
122
  "access": "public",
129
123
  "registry": "https://registry.npmjs.org"
130
124
  },
131
125
  "devDependencies": {
132
- "@oxc-project/types": "^0.118.0",
133
126
  "@tailwindcss/vite": "^4.2.1",
134
127
  "@types/semver": "^7.7.1",
135
- "@vitejs/plugin-vue": "^6.0.4",
128
+ "@vitejs/plugin-vue": "^6.0.5",
136
129
  "bundle-require": "^5.1.0",
137
130
  "cac": "^7.0.0",
138
131
  "chokidar": "^5.0.0",
139
132
  "del": "^8.0.1",
140
133
  "echarts": "^6.0.0",
141
- "esbuild": "^0.27.3",
134
+ "esbuild": "^0.27.4",
142
135
  "estree-walker": "^3.0.3",
143
136
  "htmlparser2": "^10.1.0",
144
137
  "local-pkg": "^1.1.2",
145
- "lru-cache": "^11.2.6",
138
+ "lru-cache": "^11.2.7",
146
139
  "magic-string": "^0.30.21",
140
+ "oxc-parser": "^0.120.0",
141
+ "oxc-walker": "^0.7.0",
147
142
  "p-queue": "^9.1.0",
148
143
  "package-manager-detector": "^1.6.0",
149
144
  "resolve.exports": "^2.0.3",
@@ -155,8 +150,8 @@
155
150
  },
156
151
  "scripts": {
157
152
  "stub": "unbuild --stub",
158
- "dev": "tsup --watch --sourcemap",
159
- "build": "pnpm run build:dashboard && tsup",
153
+ "dev": "tsdown -w --sourcemap",
154
+ "build": "pnpm run build:dashboard && tsdown",
160
155
  "build:dashboard": "node scripts/build-analyze-dashboard.mjs",
161
156
  "dev:dashboard": "vite --config analyze-dashboard/vite.config.ts",
162
157
  "preview:dashboard": "vite preview --config analyze-dashboard/vite.config.ts",
@@ -1,10 +0,0 @@
1
- import { C as CreateResolver } from '../types-B6irZnLM.js';
2
- export { E as ExternalMetadataFileCandidates, O as Options, a as ResolvedValue, R as Resolver, b as ResolverFn, c as ResolverMeta, d as ResolverObject } from '../types-B6irZnLM.js';
3
-
4
- declare const TDesignResolver: CreateResolver;
5
-
6
- declare const VantResolver: CreateResolver;
7
-
8
- declare const WeuiResolver: CreateResolver;
9
-
10
- export { CreateResolver, TDesignResolver, VantResolver, WeuiResolver };
@@ -1,16 +0,0 @@
1
- import { A as AutoRoutes, a as AutoRoutesSubPackage } from './routes-74eLuiqj.js';
2
-
3
- declare const routes: AutoRoutes;
4
- declare const pages: string[];
5
- declare const entries: string[];
6
- declare const subPackages: AutoRoutesSubPackage[];
7
- interface AutoRoutesWxRouter {
8
- switchTab: (option: Record<string, any>) => unknown;
9
- reLaunch: (option: Record<string, any>) => unknown;
10
- redirectTo: (option: Record<string, any>) => unknown;
11
- navigateTo: (option: Record<string, any>) => unknown;
12
- navigateBack: (option?: Record<string, any>) => unknown;
13
- }
14
- declare const wxRouter: AutoRoutesWxRouter;
15
-
16
- export { AutoRoutes, AutoRoutesSubPackage, type AutoRoutesWxRouter, routes as default, entries, pages, routes, subPackages, wxRouter };