weapp-vite 7.4.0 → 7.5.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 (92) hide show
  1. package/README.md +51 -1
  2. package/bin/bootstrap.js +14 -1
  3. package/dist/adapters-CcHrsYaj.mjs +1 -0
  4. package/dist/analyze-ZJUvEdaY.mjs +248 -0
  5. package/dist/auto-import-components/resolvers.mjs +1 -2
  6. package/dist/auto-import-presets/wevu-router.mjs +1 -2
  7. package/dist/auto-import-presets/wevu.mjs +1 -2
  8. package/dist/auto-routes.mjs +2 -1
  9. package/dist/budget-BD7VqLCl.d.mts +178 -0
  10. package/dist/chunkStrategy-DRA5WpB-.mjs +1436 -0
  11. package/dist/cli-acceptance.d.mts +1 -0
  12. package/dist/cli-acceptance.mjs +21 -0
  13. package/dist/cli.mjs +1420 -1554
  14. package/dist/compatibility.mjs +1 -2
  15. package/dist/{config-Dbvj5yK7.d.mts → config-V0L-IAJf.d.mts} +87 -30
  16. package/dist/config.d.mts +2 -2
  17. package/dist/config.mjs +1 -1
  18. package/dist/{constants-WOsG3Eqd.mjs → constants-DEZdcsMn.mjs} +1 -1
  19. package/dist/{createContext-UOEgeYnA.mjs → createCompilerContextInstance-DJH_P_nZ.mjs} +31278 -32148
  20. package/dist/createContext-BqYzHhY9.mjs +12 -0
  21. package/dist/dashboard/analyze.d.mts +48 -0
  22. package/dist/dashboard/analyze.mjs +1 -0
  23. package/dist/dashboard/vite.d.mts +1 -1
  24. package/dist/dashboard-DvqF3Key.mjs +1842 -0
  25. package/dist/dashboard.d.mts +3 -2
  26. package/dist/dashboard.mjs +1 -2
  27. package/dist/dashboardViteBridge-Dy3nAD4m.mjs +299 -0
  28. package/dist/dev-fR5GiJRO.mjs +63 -0
  29. package/dist/devProvider-BGBkw28J.mjs +1050 -0
  30. package/dist/docs/README.md +51 -1
  31. package/dist/docs/ai-workflows.md +4 -0
  32. package/dist/docs/doctor.md +38 -0
  33. package/dist/docs/getting-started.md +3 -1
  34. package/dist/docs/index.md +3 -1
  35. package/dist/docs/mcp.md +94 -1
  36. package/dist/docs/testing.md +29 -2
  37. package/dist/docs/troubleshooting.md +8 -0
  38. package/dist/docs/uni-app-component-libraries.md +8 -7
  39. package/dist/docs/upload.md +40 -3
  40. package/dist/docs/vite-plugin.md +171 -0
  41. package/dist/docs/vue-sfc.md +19 -0
  42. package/dist/docs/weapp-config.md +54 -0
  43. package/dist/docs/wevu-authoring.md +10 -0
  44. package/dist/doctor-worker.d.mts +1 -0
  45. package/dist/doctor-worker.mjs +59 -0
  46. package/dist/doctor.d.mts +144 -0
  47. package/dist/doctor.mjs +848 -0
  48. package/dist/eslint.mjs +1 -2
  49. package/dist/file-DRb4eWqw.mjs +1 -0
  50. package/dist/{file-giE9UMZa.mjs → file-sC3jD7Fh.mjs} +15 -9
  51. package/dist/files-BqxFIPRp.mjs +45 -0
  52. package/dist/getInstance-DiGSzBNI.mjs +28 -0
  53. package/dist/getInstance-SiE6WZRh.mjs +1 -0
  54. package/dist/index-C9HjUX5c.d.mts +741 -0
  55. package/dist/index.d.mts +10 -8
  56. package/dist/index.mjs +3 -2
  57. package/dist/json.d.mts +1 -1
  58. package/dist/json.mjs +1 -2
  59. package/dist/lifecycle-BROTlwSL.mjs +320 -0
  60. package/dist/loadConfig-C3BQhz7F.mjs +59 -0
  61. package/dist/loadConfig-VGtBF4qm.mjs +1 -0
  62. package/dist/logger-DGn5iEVN.mjs +1 -0
  63. package/dist/{mcp-BG6TliEg.mjs → mcp-Cj8Maqo6.mjs} +16 -7
  64. package/dist/mcp-D3Yh24Cj.mjs +529 -0
  65. package/dist/mcp.d.mts +6 -3
  66. package/dist/mcp.mjs +1 -2
  67. package/dist/package-7swhyLmf.mjs +91 -0
  68. package/dist/path-doV773b7.mjs +103 -0
  69. package/dist/{platform-DTWs5QRi.mjs → platform-CnkySBKz.mjs} +1 -1
  70. package/dist/processCleanup-B6KA30Zc.mjs +77 -0
  71. package/dist/protocol-vg8HGJ4n.mjs +138 -0
  72. package/dist/{resolvers-icNxkpcy.mjs → resolvers-Dod-euqX.mjs} +4 -1
  73. package/dist/resolvers.mjs +1 -2
  74. package/dist/runtime.mjs +1 -2
  75. package/dist/session-PskhD-nZ.mjs +390 -0
  76. package/dist/test.d.mts +1 -0
  77. package/dist/test.mjs +201 -44
  78. package/dist/types.d.mts +2 -2
  79. package/dist/{upload-D0RcEWrq.mjs → upload-D4msblBf.mjs} +174 -15
  80. package/dist/upload-worker.mjs +136 -3
  81. package/dist/utils-CJSCgEj6.mjs +1094 -0
  82. package/dist/vite.d.mts +9 -0
  83. package/dist/vite.mjs +270 -0
  84. package/dist/volar.d.mts +2 -2
  85. package/dist/web-apis.mjs +1 -2
  86. package/package.json +67 -41
  87. package/dist/adapters-BwnMMIZR.mjs +0 -2
  88. package/dist/dashboard-BzaVesmQ.mjs +0 -558
  89. package/dist/file-D19nbDoN.mjs +0 -2
  90. package/dist/getInstance-CYF1vl5l.mjs +0 -2
  91. package/dist/index-DbqVupg0.d.mts +0 -246
  92. package/dist/logger-mt4mSTqV.mjs +0 -2
@@ -0,0 +1,103 @@
1
+ import path from "pathe";
2
+ import { fileURLToPath } from "node:url";
3
+ import { normalize } from "node:path";
4
+ //#region src/utils/viteId.ts
5
+ const VUE_VIRTUAL_MODULE_PREFIX = "\0vue:";
6
+ const BACKSLASH_RE$1 = /\\/g;
7
+ const WINDOWS_VITE_AT_FS_DRIVE_RE = /^\/[A-Z]:\//i;
8
+ function stripViteAtFsPrefix(id) {
9
+ if (!id.startsWith("/@fs/")) return id;
10
+ let clean = id.slice(4);
11
+ if (WINDOWS_VITE_AT_FS_DRIVE_RE.test(clean)) clean = clean.slice(1);
12
+ return clean;
13
+ }
14
+ function normalizeViteId(id, options) {
15
+ const stripQuery = options?.stripQuery !== false;
16
+ const fileProtocolToPathEnabled = options?.fileProtocolToPath !== false;
17
+ const stripAtFsPrefix = options?.stripAtFsPrefix !== false;
18
+ const stripVueVirtualPrefix = options?.stripVueVirtualPrefix === true;
19
+ const stripLeadingNullByte = options?.stripLeadingNullByte === true;
20
+ let clean = id;
21
+ if (stripVueVirtualPrefix && clean.startsWith(VUE_VIRTUAL_MODULE_PREFIX)) clean = clean.slice(5);
22
+ if (stripQuery) clean = clean.split("?", 1)[0];
23
+ if (fileProtocolToPathEnabled && clean.startsWith("file://")) try {
24
+ clean = fileURLToPath(clean);
25
+ } catch {
26
+ try {
27
+ clean = decodeURIComponent(new URL(clean).pathname);
28
+ } catch {}
29
+ }
30
+ if (stripAtFsPrefix) clean = stripViteAtFsPrefix(clean);
31
+ if (stripLeadingNullByte && clean.startsWith("\0")) clean = clean.slice(1);
32
+ if (clean.includes("\\")) clean = clean.replace(BACKSLASH_RE$1, "/");
33
+ return clean;
34
+ }
35
+ //#endregion
36
+ //#region src/utils/resolvedId.ts
37
+ function isSkippableResolvedId(id) {
38
+ if (!id) return true;
39
+ return id.startsWith("\0") || id.startsWith("node:");
40
+ }
41
+ function resolveFsResolvedIdNormalizeOptions(options) {
42
+ const normalizeOptions = { stripVueVirtualPrefix: true };
43
+ if (options?.normalize) Object.assign(normalizeOptions, options.normalize);
44
+ if (options?.stripLeadingNullByte) normalizeOptions.stripLeadingNullByte = true;
45
+ return normalizeOptions;
46
+ }
47
+ /**
48
+ * 将 Vite/Rolldown resolve 出来的 id 归一化为可用于 fs 读取/判断的路径形式。
49
+ *
50
+ * 默认会:
51
+ * - 去掉 query(?xxx)
52
+ * - 处理 `file://` URL
53
+ * - 处理 `/@fs/` 前缀
54
+ * - 可选剥离 `\0vue:` 前缀(默认开启)
55
+ *
56
+ * 注意:默认不剥离 `\0`,因为 `\0` 常用作虚拟模块标记,通常应当直接跳过。
57
+ */
58
+ function normalizeFsResolvedId(id, options) {
59
+ return normalizeViteId(id, resolveFsResolvedIdNormalizeOptions(options));
60
+ }
61
+ //#endregion
62
+ //#region src/utils/path.ts
63
+ const BACKSLASH_RE = /\\/g;
64
+ const LEADING_SLASH_RE = /^[\\/]+/;
65
+ const DUPLICATE_SLASH_RE = /\/{2,}/g;
66
+ const TRIM_SLASH_RE = /^\/+|\/+$/g;
67
+ const WINDOWS_DEVICE_RE = /^\\\\\?\\/;
68
+ const WINDOWS_UNC_PREFIX = /^\\\\\?\\UNC\\/;
69
+ function stripWindowsDevicePath(value) {
70
+ if (WINDOWS_UNC_PREFIX.test(value)) return `\\\\${value.slice(8)}`;
71
+ if (WINDOWS_DEVICE_RE.test(value)) return value.slice(4);
72
+ return value;
73
+ }
74
+ function toPosixPath(value) {
75
+ return value.replace(BACKSLASH_RE, "/");
76
+ }
77
+ function normalizePath(value) {
78
+ if (!value) return value;
79
+ const cleaned = stripWindowsDevicePath(value);
80
+ return toPosixPath(path.normalize(cleaned));
81
+ }
82
+ function normalizeRelativePath(value) {
83
+ if (value === "") return value;
84
+ return normalizePath(value);
85
+ }
86
+ function normalizeWatchPath(value) {
87
+ if (!value) return value;
88
+ const posix = toPosixPath(stripWindowsDevicePath(value));
89
+ return toPosixPath(normalize(posix));
90
+ }
91
+ function stripLeadingSlashes(value) {
92
+ return value.replace(LEADING_SLASH_RE, "");
93
+ }
94
+ function normalizeRoot(root) {
95
+ return toPosixPath(root).replace(DUPLICATE_SLASH_RE, "/").replace(TRIM_SLASH_RE, "");
96
+ }
97
+ function isPathInside(parent, target) {
98
+ if (!parent) return false;
99
+ const relative = path.relative(parent, target);
100
+ return relative === "" || !relative.startsWith("..") && !path.isAbsolute(relative);
101
+ }
102
+ //#endregion
103
+ export { normalizeWatchPath as a, isSkippableResolvedId as c, normalizeRoot as i, normalizeFsResolvedId as l, normalizePath as n, stripLeadingSlashes as o, normalizeRelativePath as r, toPosixPath as s, isPathInside as t, normalizeViteId as u };
@@ -1,4 +1,4 @@
1
- import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-BwnMMIZR.mjs";
1
+ import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-CcHrsYaj.mjs";
2
2
  import { MINI_PROGRAM_PLATFORM_ALIASES, getDefaultMiniProgramPlatform, getMiniProgramAppTypesPackage, getMiniProgramDirectivePrefix, getSupportedMiniProgramPlatforms, normalizeMiniProgramPlatform, resolveMiniProgramPlatform } from "@weapp-core/shared";
3
3
  //#region src/platform.ts
4
4
  const DEFAULT_MP_PLATFORM = getDefaultMiniProgramPlatform();
@@ -0,0 +1,77 @@
1
+ import process from "node:process";
2
+ import path from "pathe";
3
+ //#region src/analyze/subpackages/metadata.ts
4
+ const defaultTotalBudgetBytes = 20971520;
5
+ const defaultPackageBudgetBytes = 2097152;
6
+ const defaultWarningRatio = .85;
7
+ const defaultHistoryDir = ".weapp-vite/analyze-history";
8
+ const defaultHistoryLimit = 20;
9
+ function resolveBudgetValue(value, fallback) {
10
+ return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : fallback;
11
+ }
12
+ function resolveHistoryLimit(value) {
13
+ return typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : defaultHistoryLimit;
14
+ }
15
+ function resolveAnalyzeBudgets(configService) {
16
+ const budgets = configService.weappViteConfig.analyze?.budgets;
17
+ const legacyPackageBudget = configService.weappViteConfig.packageSizeWarningBytes;
18
+ const packageFallback = resolveBudgetValue(legacyPackageBudget, defaultPackageBudgetBytes);
19
+ const optionalBudget = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : void 0;
20
+ return {
21
+ totalBytes: resolveBudgetValue(budgets?.totalBytes, defaultTotalBudgetBytes),
22
+ mainBytes: resolveBudgetValue(budgets?.mainBytes, packageFallback),
23
+ subPackageBytes: resolveBudgetValue(budgets?.subPackageBytes, packageFallback),
24
+ independentBytes: resolveBudgetValue(budgets?.independentBytes, packageFallback),
25
+ runtimeBytes: optionalBudget(budgets?.runtimeBytes),
26
+ packageBytes: budgets?.packageBytes ? Object.fromEntries(Object.entries(budgets.packageBytes).filter(([, value]) => optionalBudget(value) !== void 0)) : void 0,
27
+ warningRatio: resolveBudgetValue(budgets?.warningRatio, defaultWarningRatio),
28
+ source: budgets ? "config" : "default"
29
+ };
30
+ }
31
+ function resolveAnalyzeHistoryMetadata(configService) {
32
+ const history = configService.weappViteConfig.analyze?.history;
33
+ if (history === false) return {
34
+ enabled: false,
35
+ dir: path.resolve(configService.cwd, defaultHistoryDir),
36
+ limit: defaultHistoryLimit
37
+ };
38
+ const historyConfig = typeof history === "object" && history ? history : {};
39
+ const rawDir = typeof historyConfig.dir === "string" && historyConfig.dir.trim() ? historyConfig.dir.trim() : defaultHistoryDir;
40
+ return {
41
+ enabled: historyConfig.enabled !== false,
42
+ dir: path.isAbsolute(rawDir) ? rawDir : path.resolve(configService.cwd, rawDir),
43
+ limit: resolveHistoryLimit(historyConfig.limit)
44
+ };
45
+ }
46
+ function createAnalyzeMetadata(configService, now = /* @__PURE__ */ new Date()) {
47
+ const history = resolveAnalyzeHistoryMetadata(configService);
48
+ const packageName = configService.packageJson?.name;
49
+ return {
50
+ projectName: typeof packageName === "string" && packageName.trim() ? packageName.trim() : path.basename(configService.cwd),
51
+ generatedAt: now.toISOString(),
52
+ budgets: resolveAnalyzeBudgets(configService),
53
+ history: {
54
+ ...history,
55
+ dir: configService.relativeCwd(history.dir)
56
+ }
57
+ };
58
+ }
59
+ //#endregion
60
+ //#region src/cli/processCleanup.ts
61
+ function isSassEmbeddedChild(handle) {
62
+ if (!handle || typeof handle !== "object") return false;
63
+ const child = handle;
64
+ const spawnfile = typeof child.spawnfile === "string" ? child.spawnfile : "";
65
+ const spawnargs = Array.isArray(child.spawnargs) ? child.spawnargs : [];
66
+ return Boolean("kill" in handle && "spawnfile" in handle && (spawnfile.includes("sass-embedded") || spawnfile.includes("dart-sass") && spawnargs.includes("--embedded")));
67
+ }
68
+ function terminateStaleSassEmbeddedProcess() {
69
+ const getHandles = process._getActiveHandles;
70
+ const handles = typeof getHandles === "function" ? getHandles() : void 0;
71
+ if (!Array.isArray(handles)) return;
72
+ for (const handle of handles) if (isSassEmbeddedChild(handle)) try {
73
+ handle.kill();
74
+ } catch {}
75
+ }
76
+ //#endregion
77
+ export { resolveAnalyzeHistoryMetadata as i, createAnalyzeMetadata as n, resolveAnalyzeBudgets as r, terminateStaleSassEmbeddedProcess as t };
@@ -0,0 +1,138 @@
1
+ import path from "pathe";
2
+ import { realpathSync } from "node:fs";
3
+ import { WEAPP_VITE_LOGICAL_ENTRY_RESOLVED_PREFIX, WEAPP_VITE_LOGICAL_ENTRY_VIRTUAL_PREFIX, WEAPP_VITE_SIDECAR_OWNER_QUERY_MARKER, WEAPP_VITE_SIDECAR_QUERY_MARKER, WEAPP_VITE_SIDECAR_RESOLVED_PREFIX, WEAPP_VITE_SIDECAR_VIRTUAL_PREFIX } from "@weapp-core/constants";
4
+ //#region src/utils/realpathScope.ts
5
+ let activePaths;
6
+ /** 仅在同步图遍历中复用成功的真实路径解析;不跨事件、构建或异步边界保留。 */
7
+ function withRealpathScope(read) {
8
+ const previous = activePaths;
9
+ activePaths ??= /* @__PURE__ */ new Map();
10
+ try {
11
+ return read();
12
+ } finally {
13
+ activePaths = previous;
14
+ }
15
+ }
16
+ /** 失败保持原始异常语义,避免缺失文件在随后创建后仍命中失败缓存。 */
17
+ function resolveRealpath(file) {
18
+ const cached = activePaths?.get(file);
19
+ if (cached !== void 0) return cached;
20
+ const resolved = realpathSync.native(file);
21
+ activePaths?.set(file, resolved);
22
+ return resolved;
23
+ }
24
+ //#endregion
25
+ //#region src/moduleGraph/protocol.ts
26
+ const VIRTUAL_MODULE_SUFFIX = ":module.js";
27
+ const SIDECAR_SOURCE_JS_SUFFIX = "&lang.js";
28
+ const SIDECAR_SOURCE_STYLE_SUFFIX = "&lang.css";
29
+ function normalizeProtocolPath(id) {
30
+ const normalized = path.normalize(id.replaceAll("\\", "/"));
31
+ if (!path.isAbsolute(normalized)) return normalized;
32
+ try {
33
+ return path.normalize(resolveRealpath(normalized));
34
+ } catch {
35
+ return normalized;
36
+ }
37
+ }
38
+ function encodePath(id) {
39
+ return encodeURIComponent(normalizeProtocolPath(id));
40
+ }
41
+ function decodePath(id) {
42
+ return normalizeProtocolPath(decodeURIComponent(id));
43
+ }
44
+ function resolveProtocolPrefix(id, virtualPrefix, resolvedPrefix) {
45
+ if (id.startsWith(resolvedPrefix)) return id.slice(resolvedPrefix.length);
46
+ if (id.startsWith(virtualPrefix)) return id.slice(virtualPrefix.length);
47
+ }
48
+ function createLogicalEntryId(sourceId, type) {
49
+ return `${WEAPP_VITE_LOGICAL_ENTRY_RESOLVED_PREFIX}${type}:${encodePath(sourceId)}${VIRTUAL_MODULE_SUFFIX}`;
50
+ }
51
+ function parseLogicalEntryId(id) {
52
+ const request = resolveProtocolPrefix(id, WEAPP_VITE_LOGICAL_ENTRY_VIRTUAL_PREFIX, WEAPP_VITE_LOGICAL_ENTRY_RESOLVED_PREFIX);
53
+ if (!request) return;
54
+ if (!request.endsWith(VIRTUAL_MODULE_SUFFIX)) return;
55
+ const normalizedRequest = request.slice(0, -10);
56
+ const separator = normalizedRequest.indexOf(":");
57
+ if (separator < 0) return;
58
+ const type = normalizedRequest.slice(0, separator);
59
+ if (![
60
+ "app",
61
+ "page",
62
+ "component",
63
+ "layout"
64
+ ].includes(type)) return;
65
+ return {
66
+ sourceId: decodePath(normalizedRequest.slice(separator + 1)),
67
+ type
68
+ };
69
+ }
70
+ function createSidecarModuleId(ownerId, sourceId, kind) {
71
+ return `${WEAPP_VITE_SIDECAR_RESOLVED_PREFIX}${kind}:${encodePath(ownerId)}:${encodePath(sourceId)}${VIRTUAL_MODULE_SUFFIX}`;
72
+ }
73
+ function parseSidecarModuleId(id) {
74
+ const request = resolveProtocolPrefix(id, WEAPP_VITE_SIDECAR_VIRTUAL_PREFIX, WEAPP_VITE_SIDECAR_RESOLVED_PREFIX);
75
+ if (!request) return;
76
+ if (!request.endsWith(VIRTUAL_MODULE_SUFFIX)) return;
77
+ const [kind, ownerId, sourceId, ...rest] = request.slice(0, -10).split(":");
78
+ if (rest.length || !kind || !ownerId || !sourceId || ![
79
+ "json",
80
+ "jsx",
81
+ "layout",
82
+ "script",
83
+ "style",
84
+ "template",
85
+ "using-component",
86
+ "wxs"
87
+ ].includes(kind)) return;
88
+ return {
89
+ kind,
90
+ ownerId: decodePath(ownerId),
91
+ sourceId: decodePath(sourceId)
92
+ };
93
+ }
94
+ function createSidecarSourceSpecifier(ownerId, sourceId, kind, dependencyOnly = false) {
95
+ const emitsStyle = kind === "style" && !dependencyOnly;
96
+ const queryPrefix = emitsStyle ? "?" : "?raw&";
97
+ const suffix = emitsStyle ? SIDECAR_SOURCE_STYLE_SUFFIX : SIDECAR_SOURCE_JS_SUFFIX;
98
+ return `${normalizeProtocolPath(sourceId)}${queryPrefix}${WEAPP_VITE_SIDECAR_OWNER_QUERY_MARKER}=${encodePath(ownerId)}&${WEAPP_VITE_SIDECAR_QUERY_MARKER}=${kind}${suffix}`;
99
+ }
100
+ function parseSidecarSourceRequest(id) {
101
+ const queryIndex = id.indexOf("?");
102
+ if (queryIndex < 0) return;
103
+ const query = new URLSearchParams(id.slice(queryIndex + 1));
104
+ const kind = query.get(WEAPP_VITE_SIDECAR_QUERY_MARKER);
105
+ const ownerId = query.get(WEAPP_VITE_SIDECAR_OWNER_QUERY_MARKER);
106
+ if (!kind || ![
107
+ "json",
108
+ "jsx",
109
+ "layout",
110
+ "script",
111
+ "style",
112
+ "template",
113
+ "using-component",
114
+ "wxs"
115
+ ].includes(kind)) return;
116
+ if (!ownerId) return;
117
+ const isStyle = kind === "style";
118
+ const dependencyOnly = isStyle && query.has("raw");
119
+ const emitsStyle = isStyle && !dependencyOnly;
120
+ const hasExpectedLang = query.has(emitsStyle ? "lang.css" : "lang.js");
121
+ const hasUnexpectedLang = query.has(emitsStyle ? "lang.js" : "lang.css");
122
+ const hasExpectedRawMode = query.has("raw") !== emitsStyle;
123
+ if (!hasExpectedLang || hasUnexpectedLang || !hasExpectedRawMode) return;
124
+ return {
125
+ kind,
126
+ ownerId: normalizeProtocolPath(ownerId),
127
+ sourceId: normalizeProtocolPath(id.slice(0, queryIndex)),
128
+ ...dependencyOnly ? { dependencyOnly: true } : {}
129
+ };
130
+ }
131
+ function resolveVirtualModuleId(id) {
132
+ const logicalEntry = parseLogicalEntryId(id);
133
+ if (logicalEntry) return createLogicalEntryId(logicalEntry.sourceId, logicalEntry.type);
134
+ const sidecar = parseSidecarModuleId(id);
135
+ if (sidecar) return createSidecarModuleId(sidecar.ownerId, sidecar.sourceId, sidecar.kind);
136
+ }
137
+ //#endregion
138
+ export { parseSidecarModuleId as a, resolveRealpath as c, parseLogicalEntryId as i, withRealpathScope as l, createSidecarModuleId as n, parseSidecarSourceRequest as o, createSidecarSourceSpecifier as r, resolveVirtualModuleId as s, createLogicalEntryId as t };
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
+ import process from "node:process";
2
3
  import path from "pathe";
3
4
  import { defu } from "@weapp-core/shared";
4
- import process from "node:process";
5
5
  //#region src/auto-import-components/resolvers/json/tdesign.json
6
6
  var tdesign_default = [
7
7
  "action-sheet",
@@ -200,6 +200,7 @@ var uviewPlus_default = [
200
200
  "u-dropdown",
201
201
  "u-dropdown-item",
202
202
  "u-empty",
203
+ "u-flex",
203
204
  "u-float-button",
204
205
  "u-form",
205
206
  "u-form-item",
@@ -292,6 +293,7 @@ var uviewPlus_default = [
292
293
  "u-transition",
293
294
  "u-tree",
294
295
  "u-upload",
296
+ "u-video",
295
297
  "u-view",
296
298
  "u-virtual-list",
297
299
  "u-waterfall"
@@ -595,6 +597,7 @@ var wotUi_default = [
595
597
  "wd-popover",
596
598
  "wd-popup",
597
599
  "wd-progress",
600
+ "wd-qr-code",
598
601
  "wd-radio",
599
602
  "wd-radio-group",
600
603
  "wd-rate",
@@ -1,2 +1 @@
1
- import { a as TDesignResolver, i as UviewPlusResolver, n as WeuiResolver, r as VantResolver, t as WotUiResolver } from "./resolvers-icNxkpcy.mjs";
2
- export { TDesignResolver, UviewPlusResolver, VantResolver, WeuiResolver, WotUiResolver };
1
+ export { a as TDesignResolver, i as UviewPlusResolver, r as VantResolver, n as WeuiResolver, t as WotUiResolver } from "./resolvers-Dod-euqX.mjs";
package/dist/runtime.mjs CHANGED
@@ -1,2 +1 @@
1
- import { a as resolveLayoutHost, c as createWevuComponent, i as registerLayoutHosts, n as defineProps, o as unregisterLayoutHosts, r as setPageLayout, s as waitForLayoutHost, t as defineEmits } from "./runtime-D6VCNhNY.mjs";
2
- export { createWevuComponent, defineEmits, defineProps, registerLayoutHosts, resolveLayoutHost, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
1
+ export { c as createWevuComponent, t as defineEmits, n as defineProps, i as registerLayoutHosts, a as resolveLayoutHost, r as setPageLayout, o as unregisterLayoutHosts, s as waitForLayoutHost } from "./runtime-D6VCNhNY.mjs";