weapp-vite 6.17.4 → 6.17.6
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.
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{config-CaM_ZvH7.d.mts → config-DwMzkHsB.d.mts} +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-NJm1STBE.mjs → createContext-BfOAQZMj.mjs} +119 -35
- package/dist/{file-CACV6Tje.mjs → file-BOLzLiXg.mjs} +1 -1
- package/dist/file-XBQU6P82.mjs +2 -0
- package/dist/getInstance-BQwQvqtl.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +4 -4
- package/dist/file-D2wi4SbQ.mjs +0 -2
- package/dist/getInstance-DXiqgBgg.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getRouteRuntimeGlobalKeys, n as getCompilerContext } from "./createContext-
|
|
1
|
+
import { g as getRouteRuntimeGlobalKeys, n as getCompilerContext } from "./createContext-BfOAQZMj.mjs";
|
|
2
2
|
//#region src/auto-routes.ts
|
|
3
3
|
const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
|
|
4
4
|
function createGetter(resolver) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, a as formatBytes, b as getProjectConfigFileName, d as syncProjectSupportFiles, f as syncManagedTsconfigBootstrapFiles, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, p as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappViteTarget, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-
|
|
1
|
+
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, a as formatBytes, b as getProjectConfigFileName, d as syncProjectSupportFiles, f as syncManagedTsconfigBootstrapFiles, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, p as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappViteTarget, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-BfOAQZMj.mjs";
|
|
2
2
|
import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { h as VERSION } from "./file-
|
|
3
|
+
import { h as VERSION } from "./file-BOLzLiXg.mjs";
|
|
4
4
|
import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path, { posix } from "pathe";
|
|
@@ -4122,7 +4122,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
4122
4122
|
}
|
|
4123
4123
|
//#endregion
|
|
4124
4124
|
//#region package.json
|
|
4125
|
-
var version = "6.17.
|
|
4125
|
+
var version = "6.17.6";
|
|
4126
4126
|
//#endregion
|
|
4127
4127
|
//#region src/cli/devHotkeys/format.ts
|
|
4128
4128
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1546,6 +1546,7 @@ interface RuntimeState {
|
|
|
1546
1546
|
lastHmrEntryIds: Set<string>;
|
|
1547
1547
|
lastEmittedEntryIds: Set<string>;
|
|
1548
1548
|
lastEmittedChunkFileNames: Set<string>;
|
|
1549
|
+
sharedChunkSourceModuleIds: Set<string>;
|
|
1549
1550
|
recentProfiles: Array<{
|
|
1550
1551
|
timestamp?: string;
|
|
1551
1552
|
totalMs: number;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as WeappViteHostMeta, Hn as createWeappViteHostMeta, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Yn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as WEAPP_VITE_HOST_NAME } from "./config-
|
|
1
|
+
import { Bn as WeappViteHostMeta, Hn as createWeappViteHostMeta, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Yn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as WEAPP_VITE_HOST_NAME } from "./config-DwMzkHsB.mjs";
|
|
2
2
|
export { type App, type Component, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
2
|
import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-
|
|
3
|
+
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-BOLzLiXg.mjs";
|
|
4
4
|
import { createRequire, isBuiltin } from "node:module";
|
|
5
5
|
import path, { posix } from "pathe";
|
|
6
6
|
import path$1, { normalize, relative, win32 } from "node:path";
|
|
@@ -9354,6 +9354,7 @@ function createRuntimeState() {
|
|
|
9354
9354
|
lastHmrEntryIds: /* @__PURE__ */ new Set(),
|
|
9355
9355
|
lastEmittedEntryIds: /* @__PURE__ */ new Set(),
|
|
9356
9356
|
lastEmittedChunkFileNames: /* @__PURE__ */ new Set(),
|
|
9357
|
+
sharedChunkSourceModuleIds: /* @__PURE__ */ new Set(),
|
|
9357
9358
|
recentProfiles: [],
|
|
9358
9359
|
profile: {}
|
|
9359
9360
|
}
|
|
@@ -12647,11 +12648,22 @@ function resolveSnapshotSidecarDirtySummary(filePath) {
|
|
|
12647
12648
|
if (ext && watchedTemplateExts.has(ext)) return "sidecar-direct:1";
|
|
12648
12649
|
return "sidecar-direct:1";
|
|
12649
12650
|
}
|
|
12650
|
-
|
|
12651
|
+
const watchedSnapshotScriptExts = /* @__PURE__ */ new Set([
|
|
12652
|
+
".ts",
|
|
12653
|
+
".tsx",
|
|
12654
|
+
".js",
|
|
12655
|
+
".jsx",
|
|
12656
|
+
".mts",
|
|
12657
|
+
".cts",
|
|
12658
|
+
".mjs",
|
|
12659
|
+
".cjs"
|
|
12660
|
+
]);
|
|
12661
|
+
function shouldHandleSnapshotSidecarFile(filePath, ctx) {
|
|
12662
|
+
const configService = ctx.configService;
|
|
12651
12663
|
if (isSidecarFile(filePath)) return true;
|
|
12652
12664
|
const normalizedFile = normalizeFsResolvedId(filePath);
|
|
12653
12665
|
const normalizedSrcRoot = normalizeFsResolvedId(configService.absoluteSrcRoot);
|
|
12654
|
-
if (normalizedFile === normalizedSrcRoot || normalizedFile.startsWith(`${normalizedSrcRoot}/`)) return
|
|
12666
|
+
if (normalizedFile === normalizedSrcRoot || normalizedFile.startsWith(`${normalizedSrcRoot}/`)) return ctx.runtimeState.build.hmr.sharedChunkSourceModuleIds.has(normalizedFile);
|
|
12655
12667
|
return path.extname(filePath) !== "";
|
|
12656
12668
|
}
|
|
12657
12669
|
function isGeneratedMiniprogramWatchInclude(pattern, configService) {
|
|
@@ -12679,7 +12691,8 @@ function createSnapshotSidecarWatchPatterns(configService, inlineConfig) {
|
|
|
12679
12691
|
...configSuffixes$1.map((suffix) => path.join(root, `**/*${suffix}`)),
|
|
12680
12692
|
...Array.from(watchedCssExts).map((ext) => path.join(root, `**/*${ext}`)),
|
|
12681
12693
|
...Array.from(watchedTemplateExts).map((ext) => path.join(root, `**/*${ext}`)),
|
|
12682
|
-
...Array.from(watchedScriptModuleExts).map((ext) => path.join(root, `**/*${ext}`))
|
|
12694
|
+
...Array.from(watchedScriptModuleExts).map((ext) => path.join(root, `**/*${ext}`)),
|
|
12695
|
+
...Array.from(watchedSnapshotScriptExts).map((ext) => path.join(root, `**/*${ext}`))
|
|
12683
12696
|
];
|
|
12684
12697
|
for (const include of resolveUserBuildWatchInclude(configService, inlineConfig)) patterns.push(include);
|
|
12685
12698
|
return patterns;
|
|
@@ -13165,7 +13178,7 @@ function createBuildService(ctx) {
|
|
|
13165
13178
|
snapshotWatcher.on("all", (event, id) => {
|
|
13166
13179
|
if (!id) return;
|
|
13167
13180
|
if (isDevOutputFile(id)) return;
|
|
13168
|
-
if (!shouldHandleSnapshotSidecarFile(id,
|
|
13181
|
+
if (!shouldHandleSnapshotSidecarFile(id, ctx)) return;
|
|
13169
13182
|
const sidecarStartedAt = performance.now();
|
|
13170
13183
|
runSnapshotBuild({
|
|
13171
13184
|
event: event.startsWith("unlink") ? "delete" : event.startsWith("add") ? "create" : "update",
|
|
@@ -17888,12 +17901,35 @@ const WEVU_SRC_CHUNK_RE = /(?:^|\/)wevu-src\.js$/;
|
|
|
17888
17901
|
const WEVU_EXPORT_ALIASES = [["defineComponent", "__wevuDefineComponent"], ["createWevuComponent", "__wevuCreateWevuComponent"]];
|
|
17889
17902
|
const WEVU_INTERNAL_RUNTIME_EXPORTS = ["createApp", "setWevuDefaults"];
|
|
17890
17903
|
const WEVU_INTERNAL_RUNTIME_EXPORT_SET = new Set(WEVU_INTERNAL_RUNTIME_EXPORTS);
|
|
17891
|
-
const
|
|
17892
|
-
"wevu
|
|
17893
|
-
"wevu/
|
|
17894
|
-
"wevu/
|
|
17904
|
+
const WEVU_RUNTIME_MODULE_IDS = [
|
|
17905
|
+
"wevu",
|
|
17906
|
+
"wevu/router",
|
|
17907
|
+
"wevu/store",
|
|
17908
|
+
"wevu/api",
|
|
17909
|
+
"wevu/fetch",
|
|
17910
|
+
"wevu/web-apis",
|
|
17911
|
+
...[
|
|
17912
|
+
"wevu/internal-runtime",
|
|
17913
|
+
"wevu/internal-reactivity",
|
|
17914
|
+
"wevu/internal-template"
|
|
17915
|
+
]
|
|
17895
17916
|
];
|
|
17896
|
-
const
|
|
17917
|
+
const WEVU_RUNTIME_MODULE_EXPORT_MARKERS = {
|
|
17918
|
+
"wevu": WEVU_INTERNAL_RUNTIME_EXPORTS,
|
|
17919
|
+
"wevu/router": [
|
|
17920
|
+
"createRouter",
|
|
17921
|
+
"useRouter",
|
|
17922
|
+
"useRoute",
|
|
17923
|
+
"NavigationFailureType"
|
|
17924
|
+
],
|
|
17925
|
+
"wevu/store": [
|
|
17926
|
+
"defineStore",
|
|
17927
|
+
"createPinia",
|
|
17928
|
+
"storeToRefs"
|
|
17929
|
+
],
|
|
17930
|
+
"wevu/api": ["createApi", "defineApi"],
|
|
17931
|
+
"wevu/fetch": ["createFetch", "useFetch"],
|
|
17932
|
+
"wevu/web-apis": ["installWebApis", "createWebApis"],
|
|
17897
17933
|
"wevu/internal-runtime": WEVU_INTERNAL_RUNTIME_EXPORTS,
|
|
17898
17934
|
"wevu/internal-reactivity": [
|
|
17899
17935
|
"ref",
|
|
@@ -18041,8 +18077,8 @@ function collectExistingExportNames(code) {
|
|
|
18041
18077
|
function collectChunkExportNames(chunk) {
|
|
18042
18078
|
return collectExistingExportNames(chunk.code);
|
|
18043
18079
|
}
|
|
18044
|
-
function
|
|
18045
|
-
return
|
|
18080
|
+
function isWevuRuntimeModuleId(value) {
|
|
18081
|
+
return WEVU_RUNTIME_MODULE_IDS.includes(value);
|
|
18046
18082
|
}
|
|
18047
18083
|
function resolveWevuInternalChunk(bundle, importNames) {
|
|
18048
18084
|
const requiredNames = new Set(importNames);
|
|
@@ -18053,6 +18089,15 @@ function resolveWevuInternalChunk(bundle, importNames) {
|
|
|
18053
18089
|
return [...requiredNames].every((name) => exports.has(name));
|
|
18054
18090
|
});
|
|
18055
18091
|
}
|
|
18092
|
+
function resolveWevuRuntimeChunkByModuleId(bundle, moduleId) {
|
|
18093
|
+
const chunkFileName = moduleId.replace(/\//g, "-");
|
|
18094
|
+
return Object.values(bundle).find((output) => {
|
|
18095
|
+
if (!output || output.type !== "chunk" || typeof output.code !== "string" || !output.fileName.startsWith("weapp-vendors/")) return false;
|
|
18096
|
+
const normalizedFileName = output.fileName.replace(/\\/g, "/");
|
|
18097
|
+
if (moduleId === "wevu") return normalizedFileName.endsWith(`${chunkFileName}.js`);
|
|
18098
|
+
return normalizedFileName.endsWith(`${chunkFileName}.js`) || normalizedFileName.includes(`/${chunkFileName}-`);
|
|
18099
|
+
});
|
|
18100
|
+
}
|
|
18056
18101
|
function resolveWevuInternalChunkByExportMarkers(bundle, markers, excludedFileNames) {
|
|
18057
18102
|
const markerSet = new Set(markers);
|
|
18058
18103
|
if (!markerSet.size) return;
|
|
@@ -18062,16 +18107,16 @@ function resolveWevuInternalChunkByExportMarkers(bundle, markers, excludedFileNa
|
|
|
18062
18107
|
return [...markerSet].some((name) => exports.has(name));
|
|
18063
18108
|
});
|
|
18064
18109
|
}
|
|
18065
|
-
function
|
|
18110
|
+
function rememberWevuRuntimeChunk(moduleId, chunk, options) {
|
|
18066
18111
|
if (!chunk?.fileName) return;
|
|
18067
18112
|
if (moduleId === "wevu/internal-runtime") options.onRuntimeFileName?.(chunk.fileName);
|
|
18068
18113
|
options.onRuntimeModuleFileName?.(moduleId, chunk.fileName);
|
|
18069
18114
|
}
|
|
18070
|
-
function
|
|
18115
|
+
function rememberCurrentWevuRuntimeChunks(bundle, options) {
|
|
18071
18116
|
const rememberedFileNames = /* @__PURE__ */ new Set();
|
|
18072
|
-
for (const moduleId of
|
|
18073
|
-
const chunk = resolveWevuInternalChunkByExportMarkers(bundle,
|
|
18074
|
-
|
|
18117
|
+
for (const moduleId of WEVU_RUNTIME_MODULE_IDS) {
|
|
18118
|
+
const chunk = resolveWevuRuntimeChunkByModuleId(bundle, moduleId) ?? resolveWevuInternalChunkByExportMarkers(bundle, WEVU_RUNTIME_MODULE_EXPORT_MARKERS[moduleId], rememberedFileNames);
|
|
18119
|
+
rememberWevuRuntimeChunk(moduleId, chunk, options);
|
|
18075
18120
|
if (chunk?.fileName) rememberedFileNames.add(chunk.fileName);
|
|
18076
18121
|
}
|
|
18077
18122
|
}
|
|
@@ -18094,11 +18139,11 @@ function formatNamedRequireBindings(bindings) {
|
|
|
18094
18139
|
}).join(", ");
|
|
18095
18140
|
}
|
|
18096
18141
|
function rewriteWevuInternalRuntimeImports(bundle, options = {}) {
|
|
18097
|
-
const importRe = /\bimport\s*\{([^}]*)\}\s*from\s*["'](wevu(?:\/internal-(?:runtime|reactivity|template))?)["'];?/g;
|
|
18098
|
-
const requireRe = /\brequire\(\s*(`wevu(?:\/internal-(?:runtime|reactivity|template))?`|'wevu(?:\/internal-(?:runtime|reactivity|template))?'|"wevu(?:\/internal-(?:runtime|reactivity|template))?")\s*\)/g;
|
|
18142
|
+
const importRe = /\bimport\s*\{([^}]*)\}\s*from\s*["'](wevu(?:\/(?:router|store|api|fetch|web-apis|internal-(?:runtime|reactivity|template)))?)["'];?/g;
|
|
18143
|
+
const requireRe = /\brequire\(\s*(`wevu(?:\/(?:router|store|api|fetch|web-apis|internal-(?:runtime|reactivity|template)))?`|'wevu(?:\/(?:router|store|api|fetch|web-apis|internal-(?:runtime|reactivity|template)))?'|"wevu(?:\/(?:router|store|api|fetch|web-apis|internal-(?:runtime|reactivity|template)))?")\s*\)/g;
|
|
18099
18144
|
const currentRuntimeChunk = resolveWevuInternalChunk(bundle, WEVU_INTERNAL_RUNTIME_EXPORTS);
|
|
18100
|
-
if (currentRuntimeChunk)
|
|
18101
|
-
|
|
18145
|
+
if (currentRuntimeChunk) rememberWevuRuntimeChunk("wevu/internal-runtime", currentRuntimeChunk, options);
|
|
18146
|
+
rememberCurrentWevuRuntimeChunks(bundle, options);
|
|
18102
18147
|
for (const output of Object.values(bundle)) {
|
|
18103
18148
|
if (!output || output.type !== "chunk" && output.type !== "asset") continue;
|
|
18104
18149
|
const code = resolveOutputCode(output);
|
|
@@ -18111,13 +18156,13 @@ function rewriteWevuInternalRuntimeImports(bundle, options = {}) {
|
|
|
18111
18156
|
rewritten = rewritten.replace(importRe, (full, importClause, source) => {
|
|
18112
18157
|
const bindings = parseNamedImportBindings(importClause);
|
|
18113
18158
|
const importedNames = bindings.map((binding) => binding.importedName);
|
|
18114
|
-
const runtimeChunk = resolveWevuInternalChunk(bundle, importedNames);
|
|
18115
|
-
const resolvedInternalModuleId =
|
|
18159
|
+
const runtimeChunk = isWevuRuntimeModuleId(source) ? resolveWevuRuntimeChunkByModuleId(bundle, source) ?? resolveWevuInternalChunk(bundle, importedNames) : resolveWevuInternalChunk(bundle, importedNames);
|
|
18160
|
+
const resolvedInternalModuleId = isWevuRuntimeModuleId(source) ? source : "wevu/internal-runtime";
|
|
18116
18161
|
const canUseRememberedRuntime = resolvedInternalModuleId === "wevu/internal-runtime" && importedNames.every((importedName) => WEVU_INTERNAL_RUNTIME_EXPORT_SET.has(importedName));
|
|
18117
18162
|
const rememberedRuntimeFileName = options.runtimeFileNames?.get(resolvedInternalModuleId) ?? (canUseRememberedRuntime ? options.runtimeFileName : void 0);
|
|
18118
18163
|
const runtimeFileName = runtimeChunk?.fileName ?? rememberedRuntimeFileName;
|
|
18119
18164
|
if (!runtimeFileName) return full;
|
|
18120
|
-
|
|
18165
|
+
rememberWevuRuntimeChunk(resolvedInternalModuleId, runtimeChunk, options);
|
|
18121
18166
|
changed = true;
|
|
18122
18167
|
requiredRuntimeFileNames.add(runtimeFileName);
|
|
18123
18168
|
const specifier = normalizeRelativeRequireSpecifier(fileName, runtimeFileName);
|
|
@@ -18126,8 +18171,8 @@ function rewriteWevuInternalRuntimeImports(bundle, options = {}) {
|
|
|
18126
18171
|
rewritten = rewritten.replace(requireRe, (full, rawSpecifier) => {
|
|
18127
18172
|
const specifierValue = stripQuotes(rawSpecifier);
|
|
18128
18173
|
const canUseRememberedRuntime = specifierValue === "wevu/internal-runtime" || specifierValue === "wevu" && WEVU_INTERNAL_RUNTIME_EXPORTS.some((exportName) => new RegExp(`\\b${exportName}\\b`).test(code));
|
|
18129
|
-
const rememberedRuntimeFileName =
|
|
18130
|
-
const runtimeFileName = canUseRememberedRuntime ? currentRuntimeChunk?.fileName ?? rememberedRuntimeFileName ?? options.runtimeFileName :
|
|
18174
|
+
const rememberedRuntimeFileName = isWevuRuntimeModuleId(specifierValue) ? options.runtimeFileNames?.get(specifierValue) : void 0;
|
|
18175
|
+
const runtimeFileName = canUseRememberedRuntime ? currentRuntimeChunk?.fileName ?? rememberedRuntimeFileName ?? options.runtimeFileName : rememberedRuntimeFileName;
|
|
18131
18176
|
if (!runtimeFileName) return full;
|
|
18132
18177
|
changed = true;
|
|
18133
18178
|
requiredRuntimeFileNames.add(runtimeFileName);
|
|
@@ -18150,7 +18195,7 @@ function rewriteWevuInternalRuntimeImports(bundle, options = {}) {
|
|
|
18150
18195
|
}
|
|
18151
18196
|
function rewriteWevuInternalRuntimeImportCode(fileName, code, runtimeFileNameOrOptions) {
|
|
18152
18197
|
const options = typeof runtimeFileNameOrOptions === "string" ? { runtimeFileName: runtimeFileNameOrOptions } : runtimeFileNameOrOptions ?? {};
|
|
18153
|
-
if (!options.runtimeFileName && !options.runtimeFileNames?.size || !code.includes("wevu/internal-runtime") && !code.includes("wevu/internal-reactivity") && !code.includes("wevu/internal-template") && !code.includes("from 'wevu'") && !code.includes("from \"wevu\"") && !code.includes("require('wevu") && !code.includes("require(\"wevu") && !code.includes("require(`wevu")) return code;
|
|
18198
|
+
if (!options.runtimeFileName && !options.runtimeFileNames?.size || !code.includes("wevu/internal-runtime") && !code.includes("wevu/internal-reactivity") && !code.includes("wevu/internal-template") && !code.includes("wevu/router") && !code.includes("wevu/store") && !code.includes("wevu/api") && !code.includes("wevu/fetch") && !code.includes("wevu/web-apis") && !code.includes("from 'wevu'") && !code.includes("from \"wevu\"") && !code.includes("require('wevu") && !code.includes("require(\"wevu") && !code.includes("require(`wevu")) return code;
|
|
18154
18199
|
const output = {
|
|
18155
18200
|
type: "asset",
|
|
18156
18201
|
fileName,
|
|
@@ -18322,6 +18367,13 @@ function collectAffectedEntriesFromSharedChunks(state, startId) {
|
|
|
18322
18367
|
}
|
|
18323
18368
|
return affected;
|
|
18324
18369
|
}
|
|
18370
|
+
function collectAffectedSharedChunks(state, startId) {
|
|
18371
|
+
const affected = /* @__PURE__ */ new Set();
|
|
18372
|
+
const chunkIds = state.hmrSharedChunksByModule.get(normalizeFsResolvedId(startId));
|
|
18373
|
+
if (!chunkIds?.size) return affected;
|
|
18374
|
+
for (const chunkId of chunkIds) affected.add(chunkId);
|
|
18375
|
+
return affected;
|
|
18376
|
+
}
|
|
18325
18377
|
function refreshModuleGraph(pluginCtx, state) {
|
|
18326
18378
|
state.moduleImporters.clear();
|
|
18327
18379
|
state.entryModuleIds.clear();
|
|
@@ -18388,6 +18440,7 @@ function appendSharedChunkImporters(bundle, state, onlyEntryIds, previousImporte
|
|
|
18388
18440
|
return moduleIds;
|
|
18389
18441
|
};
|
|
18390
18442
|
const addSharedChunkModule = (moduleId, chunkId) => {
|
|
18443
|
+
state.ctx.runtimeState?.build?.hmr?.sharedChunkSourceModuleIds?.add(moduleId);
|
|
18391
18444
|
const current = state.hmrSharedChunksByModule.get(moduleId);
|
|
18392
18445
|
if (current) current.add(chunkId);
|
|
18393
18446
|
else state.hmrSharedChunksByModule.set(moduleId, /* @__PURE__ */ new Set([chunkId]));
|
|
@@ -20704,6 +20757,14 @@ function prunePartialHmrStableSharedChunks(bundle, state) {
|
|
|
20704
20757
|
delete bundle[fileName];
|
|
20705
20758
|
continue;
|
|
20706
20759
|
}
|
|
20760
|
+
if (state.hmrState.affectedSharedChunkIds?.has(fileName) === true || (output.fileName ? state.hmrState.affectedSharedChunkIds?.has(output.fileName) === true : false)) {
|
|
20761
|
+
const emittedChunkFileNames = state.ctx.runtimeState?.build?.hmr?.lastEmittedChunkFileNames;
|
|
20762
|
+
if (emittedChunkFileNames) {
|
|
20763
|
+
emittedChunkFileNames.add(fileName);
|
|
20764
|
+
if (output.fileName) emittedChunkFileNames.add(output.fileName);
|
|
20765
|
+
}
|
|
20766
|
+
continue;
|
|
20767
|
+
}
|
|
20707
20768
|
const activeEntryIds = state.hmrState.lastHmrEntryIds?.size ? state.hmrState.lastHmrEntryIds : state.hmrState.lastEmittedEntryIds;
|
|
20708
20769
|
if (isRuntimeVendorSharedChunk(fileName) && isImportedByActiveHmrChunk(fileName, bundle, activeEntryIds)) {
|
|
20709
20770
|
const emittedChunkFileNames = state.ctx.runtimeState?.build?.hmr?.lastEmittedChunkFileNames;
|
|
@@ -20768,9 +20829,9 @@ function createGenerateBundleHook(state, isPluginBuild) {
|
|
|
20768
20829
|
const duplicateWarningBytes = Number(configService.weappViteConfig?.chunks?.duplicateWarningBytes ?? 0);
|
|
20769
20830
|
const shouldWarnOnDuplicate = Number.isFinite(duplicateWarningBytes) && duplicateWarningBytes > 0;
|
|
20770
20831
|
let redundantBytesTotal = 0;
|
|
20771
|
-
if (configService.isDev && state.hmrSharedChunksMode === "auto") {
|
|
20832
|
+
if (configService.isDev && (state.hmrSharedChunksMode === "auto" || state.hmrSharedChunksMode === "full")) {
|
|
20772
20833
|
const forceFullSharedChunkRefresh = process.env.WEAPP_VITE_FORCE_FULL_HMR_SHARED_CHUNKS === "1";
|
|
20773
|
-
if (assetOnlyDevHmrBundle && !forceFullSharedChunkRefresh) {} else if (state.hmrState.didEmitAllEntries || !state.hmrState.hasBuiltOnce) refreshSharedChunkImporters(rolldownBundle, state);
|
|
20834
|
+
if (assetOnlyDevHmrBundle && !forceFullSharedChunkRefresh) {} else if (state.hmrSharedChunksMode === "full" || state.hmrState.didEmitAllEntries || !state.hmrState.hasBuiltOnce) refreshSharedChunkImporters(rolldownBundle, state);
|
|
20774
20835
|
else if (forceFullSharedChunkRefresh) refreshSharedChunkImporters(rolldownBundle, state);
|
|
20775
20836
|
else if (state.hmrState.lastHmrEntryIds?.size) refreshPartialSharedChunkImporters(rolldownBundle, state, state.hmrState.lastHmrEntryIds);
|
|
20776
20837
|
else if (state.hmrState.lastEmittedEntryIds?.size) refreshPartialSharedChunkImporters(rolldownBundle, state, state.hmrState.lastEmittedEntryIds);
|
|
@@ -20779,6 +20840,7 @@ function createGenerateBundleHook(state, isPluginBuild) {
|
|
|
20779
20840
|
prunePartialHmrStableSharedChunks(rolldownBundle, state);
|
|
20780
20841
|
retainFullEntryHmrChunks(rolldownBundle, state);
|
|
20781
20842
|
pruneUneventedDevHmrChunks(ctx, rolldownBundle);
|
|
20843
|
+
state.hmrState.affectedSharedChunkIds?.clear();
|
|
20782
20844
|
if (assetOnlyDevHmrBundle) {
|
|
20783
20845
|
normalizePreprocessorStyleAssets(rolldownBundle, state.ctx.configService.outputExtensions?.wxss, (asset) => this.emitFile(asset));
|
|
20784
20846
|
refreshModuleGraph(this, state);
|
|
@@ -22140,9 +22202,13 @@ async function processChangedFile(state, id, event) {
|
|
|
22140
22202
|
}
|
|
22141
22203
|
}
|
|
22142
22204
|
const sharedChunkAffected = !dirtyReasonStats.has("sidecar-direct") && !dirtyReasonStats.has("json-sidecar") && !dirtyReasonStats.has("style-sidecar") && !dirtyReasonStats.has("css-importer") ? collectAffectedEntriesFromSharedChunks(state, normalizedId) : /* @__PURE__ */ new Set();
|
|
22143
|
-
if (sharedChunkAffected.size)
|
|
22144
|
-
|
|
22145
|
-
|
|
22205
|
+
if (sharedChunkAffected.size) {
|
|
22206
|
+
state.hmrState.affectedSharedChunkIds ??= /* @__PURE__ */ new Set();
|
|
22207
|
+
for (const chunkId of collectAffectedSharedChunks(state, normalizedId)) state.hmrState.affectedSharedChunkIds.add(chunkId);
|
|
22208
|
+
for (const entryId of sharedChunkAffected) {
|
|
22209
|
+
if (importerGraphAffectedEntryIds.has(entryId)) continue;
|
|
22210
|
+
markEntryDirtyWithCause(entryId, "dependency", "shared-chunk-source");
|
|
22211
|
+
}
|
|
22146
22212
|
}
|
|
22147
22213
|
const relativeCwd = configService.relativeCwd(normalizedId);
|
|
22148
22214
|
let handledByIndependentWatcher = false;
|
|
@@ -22314,6 +22380,7 @@ function weappVite(ctx, subPackageMeta) {
|
|
|
22314
22380
|
const hmrState = {
|
|
22315
22381
|
didEmitAllEntries: false,
|
|
22316
22382
|
hasBuiltOnce: false,
|
|
22383
|
+
affectedSharedChunkIds: /* @__PURE__ */ new Set(),
|
|
22317
22384
|
lastHmrEntryIds: /* @__PURE__ */ new Set(),
|
|
22318
22385
|
lastEmittedEntryIds: /* @__PURE__ */ new Set(),
|
|
22319
22386
|
skipSharedChunkRefresh: false
|
|
@@ -24204,6 +24271,21 @@ function shouldReplaceAppScriptBundleEntry(options) {
|
|
|
24204
24271
|
if (!isAppVueFile(options.filename) || !options.isDev || !options.hasDevHmrEvent) return false;
|
|
24205
24272
|
return true;
|
|
24206
24273
|
}
|
|
24274
|
+
function hasModuleImportDeclaration(script) {
|
|
24275
|
+
if (!script?.includes("import")) return false;
|
|
24276
|
+
try {
|
|
24277
|
+
let hasUnresolvedImport = false;
|
|
24278
|
+
traverse(parseJsLike(script), { ImportDeclaration(path) {
|
|
24279
|
+
if (typeof path.node.source.value === "string") {
|
|
24280
|
+
hasUnresolvedImport = true;
|
|
24281
|
+
path.stop();
|
|
24282
|
+
}
|
|
24283
|
+
} });
|
|
24284
|
+
return hasUnresolvedImport;
|
|
24285
|
+
} catch {
|
|
24286
|
+
return true;
|
|
24287
|
+
}
|
|
24288
|
+
}
|
|
24207
24289
|
function retainReplacedDevHmrScriptChunk(state, fileName) {
|
|
24208
24290
|
const hmrState = state.ctx.runtimeState?.build?.hmr;
|
|
24209
24291
|
if (!state.ctx.configService?.isDev || hmrState?.profile?.event === void 0) return;
|
|
@@ -24278,10 +24360,12 @@ async function emitResolvedCompiledVueEntryAssets(options) {
|
|
|
24278
24360
|
});
|
|
24279
24361
|
if (shouldReplaceAppScript && result.script?.trim()) {
|
|
24280
24362
|
const scriptFileName = `${relativeBase}.${options.scriptExtension}`;
|
|
24281
|
-
|
|
24363
|
+
const script = rewriteWevuInternalRuntimeImportCode(scriptFileName, result.script, {
|
|
24282
24364
|
runtimeFileName: ctx.runtimeState?.build?.output?.wevuInternalRuntimeFileName,
|
|
24283
24365
|
runtimeFileNames: ctx.runtimeState?.build?.output?.wevuInternalRuntimeFileNames
|
|
24284
|
-
})
|
|
24366
|
+
});
|
|
24367
|
+
if (hasModuleImportDeclaration(script)) return;
|
|
24368
|
+
emitSfcScriptAssetReplacingBundleEntry(pluginCtx, bundle, relativeBase, script, options.scriptExtension);
|
|
24285
24369
|
retainReplacedDevHmrScriptChunk(state, scriptFileName);
|
|
24286
24370
|
}
|
|
24287
24371
|
if (shouldEmitComponentJson && !result.script?.trim()) emitScriptlessComponentJsFallbackIfMissing({
|
|
@@ -26067,7 +26151,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
26067
26151
|
const vueAppPath = await findVueEntry(appBasename);
|
|
26068
26152
|
let configFromVue;
|
|
26069
26153
|
if (!appConfigFile && vueAppPath) {
|
|
26070
|
-
const { extractConfigFromVue } = await import("./file-
|
|
26154
|
+
const { extractConfigFromVue } = await import("./file-XBQU6P82.mjs");
|
|
26071
26155
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
26072
26156
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
26073
26157
|
}
|
|
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
84
84
|
}
|
|
85
85
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
86
86
|
try {
|
|
87
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
87
|
+
const { getCompilerContext } = await import("./getInstance-BQwQvqtl.mjs");
|
|
88
88
|
const compilerContext = getCompilerContext();
|
|
89
89
|
const service = compilerContext.autoRoutesService;
|
|
90
90
|
const reference = service?.getReference?.();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as WebPlatform, A as Ref, Bn as WeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as ResolveWeappViteTargetOptions, Hn as createWeappViteHostMeta, I as RolldownPluginOption, Jn as WeappVitePlatform, Kn as ResolvedWeappViteTarget, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetKind, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Xn as WeappViteTargetDescriptor, Yn as WeappViteRuntime, Zn as WeappViteTargetInput, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as getSupportedWeappVitePlatforms, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as isWebPlatform, o as UserConfigFnObject, p as Sitemap, qn as WEB_PLATFORM_ALIASES, r as UserConfigFn, rr as resolveWeappViteTarget, s as UserConfigFnObjectPlain, t as UserConfig, tr as getSupportedWeappViteTargetDescriptors, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as WEAPP_VITE_HOST_NAME } from "./config-
|
|
1
|
+
import { $n as WebPlatform, A as Ref, Bn as WeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as ResolveWeappViteTargetOptions, Hn as createWeappViteHostMeta, I as RolldownPluginOption, Jn as WeappVitePlatform, Kn as ResolvedWeappViteTarget, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetKind, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Xn as WeappViteTargetDescriptor, Yn as WeappViteRuntime, Zn as WeappViteTargetInput, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as getSupportedWeappVitePlatforms, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as isWebPlatform, o as UserConfigFnObject, p as Sitemap, qn as WEB_PLATFORM_ALIASES, r as UserConfigFn, rr as resolveWeappViteTarget, s as UserConfigFnObjectPlain, t as UserConfig, tr as getSupportedWeappViteTargetDescriptors, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as WEAPP_VITE_HOST_NAME } from "./config-DwMzkHsB.mjs";
|
|
2
2
|
import { a as LayoutHostContext, c as LayoutHostResolver, d as unregisterLayoutHosts, f as waitForLayoutHost, i as LayoutHostBridge, l as registerLayoutHosts, m as createWevuComponent, n as defineProps, o as LayoutHostEntry, p as WevuComponentOptions, r as setPageLayout, s as LayoutHostResolveOptions, t as defineEmits, u as resolveLayoutHost } from "./runtime-xQwLUxkz.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/createContext.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
2
2
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DRGcCi3h.mjs";
|
|
4
|
-
import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-
|
|
4
|
+
import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-BfOAQZMj.mjs";
|
|
5
5
|
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-CRoKWQZn.mjs";
|
|
6
6
|
export { WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
package/dist/json.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as definePageJson, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, m as Theme, p as Sitemap, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-
|
|
1
|
+
import { _ as definePageJson, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, m as Theme, p as Sitemap, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-DwMzkHsB.mjs";
|
|
2
2
|
export { type App, type Component, type Page, type Sitemap, type Theme, defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson };
|
package/dist/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as WeappMcpConfig } from "./config-
|
|
1
|
+
import { Et as WeappMcpConfig } from "./config-DwMzkHsB.mjs";
|
|
2
2
|
import { CreateServerOptions, DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, DEFAULT_RUNTIME_REST_ENDPOINT, McpServerHandle, StartMcpServerOptions, createWeappViteMcpServer } from "@weapp-vite/mcp";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as Resolver } from "./index-Bmclyjw8.mjs";
|
|
2
2
|
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-C7fCmf92.mjs";
|
|
3
|
-
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateFileSource, A as Ref, An as WeappLibFileName, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappViteHostMeta, Bt as BuildNpmPackageMeta, Cn as SubPackageStyleConfigObject, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as WeappLibConfig, Dt as WeappNpmConfig, E as InlineConfig, En as WeappLibComponentJson, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedServerTsconfigConfig, Ft as WeappWevuConfig, G as EntryJsonFragment, Gt as GenerateExtensionsOptions, H as BaseEntry, Ht as CopyGlobs, I as RolldownPluginOption, In as WeappManagedSharedTsconfigConfig, It as WeappWorkerConfig, J as ScanComponentItem, Jt as GenerateOptions, K as PageEntry, Kt as GenerateFileType, L as RolldownWatchOptions, Ln as WeappManagedTypeScriptConfig, Lt as Alias, M as RolldownBuild, Mn as WeappLibVueTscOptions, Mt as WeappVueConfig, N as RolldownOptions, Nn as WeappManagedAppTsconfigConfig, Nt as WeappVueTemplateConfig, O as Plugin, On as WeappLibDtsOptions, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappManagedNodeTsconfigConfig, Pt as WeappWebRuntimeConfig, Q as UserConfig, Qt as GenerateTemplateFactory, R as RolldownWatcher, Rn as WeappWebConfig, Rt as AliasOptions, Sn as SubPackageStyleConfigEntry, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleScope, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyOptions, V as AppEntry, Vt as ChunksConfig, W as Entry, Wt as GenerateDirsOptions, X as ProjectConfig, Xt as GenerateTemplateContext, Y as WxmlDep, Yn as WeappViteRuntime, Yt as GenerateTemplate, Z as SubPackageMetaValue, Zt as GenerateTemplateEntry, _n as SharedChunkDynamicImports, _t as WeappAutoRoutesIncludePattern, an as JsonMergeContext, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkStrategy, bt as WeappHmrConfig, cn as JsonMergeStrategy, ct as EnhanceOptions, dn as NpmDependencyPattern, dt as MultiPlatformConfig, en as GenerateTemplateInlineSource, et as WeappAnalyzeConfig, fn as NpmMainPackageConfig, ft as ScanWxmlOptions, gn as ResolvedAlias, gt as WeappAutoRoutesInclude, hn as NpmSubPackageConfig, ht as WeappAutoRoutesConfig, in as JsonConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibInternalDtsOptions, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibEntryContext, kt as WeappRouteRule, ln as MpPlatform, lt as EnhanceWxmlOptions, mn as NpmStrategy, mt as WeappAppPreludeMode, nn as GenerateTemplatesConfig, nt as WeappDebugConfig, on as JsonMergeFunction, ot as AutoImportComponents, pn as NpmPluginPackageConfig, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateFilenamesOptions, rn as JsFormat, rt as WeappForwardConsoleConfig, sn as JsonMergeStage, st as AutoImportComponentsOption, tn as GenerateTemplateScope, tt as WeappAnalyzeHistoryConfig, un as NpmBuildOptions, ut as HandleWxmlOptions, vn as SharedChunkMode, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SubPackage, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkOverride, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zt as AlipayNpmMode } from "./config-
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateFileSource, A as Ref, An as WeappLibFileName, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappViteHostMeta, Bt as BuildNpmPackageMeta, Cn as SubPackageStyleConfigObject, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as WeappLibConfig, Dt as WeappNpmConfig, E as InlineConfig, En as WeappLibComponentJson, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedServerTsconfigConfig, Ft as WeappWevuConfig, G as EntryJsonFragment, Gt as GenerateExtensionsOptions, H as BaseEntry, Ht as CopyGlobs, I as RolldownPluginOption, In as WeappManagedSharedTsconfigConfig, It as WeappWorkerConfig, J as ScanComponentItem, Jt as GenerateOptions, K as PageEntry, Kt as GenerateFileType, L as RolldownWatchOptions, Ln as WeappManagedTypeScriptConfig, Lt as Alias, M as RolldownBuild, Mn as WeappLibVueTscOptions, Mt as WeappVueConfig, N as RolldownOptions, Nn as WeappManagedAppTsconfigConfig, Nt as WeappVueTemplateConfig, O as Plugin, On as WeappLibDtsOptions, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappManagedNodeTsconfigConfig, Pt as WeappWebRuntimeConfig, Q as UserConfig, Qt as GenerateTemplateFactory, R as RolldownWatcher, Rn as WeappWebConfig, Rt as AliasOptions, Sn as SubPackageStyleConfigEntry, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleScope, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyOptions, V as AppEntry, Vt as ChunksConfig, W as Entry, Wt as GenerateDirsOptions, X as ProjectConfig, Xt as GenerateTemplateContext, Y as WxmlDep, Yn as WeappViteRuntime, Yt as GenerateTemplate, Z as SubPackageMetaValue, Zt as GenerateTemplateEntry, _n as SharedChunkDynamicImports, _t as WeappAutoRoutesIncludePattern, an as JsonMergeContext, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkStrategy, bt as WeappHmrConfig, cn as JsonMergeStrategy, ct as EnhanceOptions, dn as NpmDependencyPattern, dt as MultiPlatformConfig, en as GenerateTemplateInlineSource, et as WeappAnalyzeConfig, fn as NpmMainPackageConfig, ft as ScanWxmlOptions, gn as ResolvedAlias, gt as WeappAutoRoutesInclude, hn as NpmSubPackageConfig, ht as WeappAutoRoutesConfig, in as JsonConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibInternalDtsOptions, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibEntryContext, kt as WeappRouteRule, ln as MpPlatform, lt as EnhanceWxmlOptions, mn as NpmStrategy, mt as WeappAppPreludeMode, nn as GenerateTemplatesConfig, nt as WeappDebugConfig, on as JsonMergeFunction, ot as AutoImportComponents, pn as NpmPluginPackageConfig, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateFilenamesOptions, rn as JsFormat, rt as WeappForwardConsoleConfig, sn as JsonMergeStage, st as AutoImportComponentsOption, tn as GenerateTemplateScope, tt as WeappAnalyzeHistoryConfig, un as NpmBuildOptions, ut as HandleWxmlOptions, vn as SharedChunkMode, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SubPackage, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkOverride, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zt as AlipayNpmMode } from "./config-DwMzkHsB.mjs";
|
|
4
4
|
export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, type ComputedDefinitions, type ConfigEnv, CopyGlobs, CopyOptions, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, type InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, type MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, type Plugin, type PluginOption, ProjectConfig, type Ref, ResolvedAlias, type ResolvedConfig, type Resolver, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatchOptions, type RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, type ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappBuildScopeConfig, WeappBuildScopeObjectConfig, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappViteConfig, type WeappViteHostMeta, WeappVitePluginApi, type WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.17.
|
|
4
|
+
"version": "6.17.6",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"typescript": "^6.0.3",
|
|
118
118
|
"vite": "8.1.0",
|
|
119
119
|
"vite-tsconfig-paths": "^6.1.1",
|
|
120
|
-
"vue": "^3.5.
|
|
120
|
+
"vue": "^3.5.39",
|
|
121
121
|
"vue-tsc": "^3.3.5",
|
|
122
122
|
"@weapp-core/constants": "0.1.12",
|
|
123
123
|
"@weapp-core/init": "6.0.11",
|
|
124
124
|
"@weapp-core/logger": "3.1.1",
|
|
125
125
|
"@weapp-core/schematics": "6.0.4",
|
|
126
126
|
"@weapp-core/shared": "3.0.5",
|
|
127
|
-
"@weapp-vite/ast": "6.17.
|
|
127
|
+
"@weapp-vite/ast": "6.17.6",
|
|
128
128
|
"@weapp-vite/mcp": "1.4.6",
|
|
129
129
|
"@weapp-vite/miniprogram-automator": "1.2.5",
|
|
130
130
|
"@weapp-vite/volar": "2.1.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"rolldown-require": "2.0.19",
|
|
135
135
|
"vite-plugin-performance": "2.0.1",
|
|
136
136
|
"weapp-ide-cli": "5.4.10",
|
|
137
|
-
"wevu": "6.17.
|
|
137
|
+
"wevu": "6.17.6"
|
|
138
138
|
},
|
|
139
139
|
"publishConfig": {
|
|
140
140
|
"access": "public",
|
package/dist/file-D2wi4SbQ.mjs
DELETED