weapp-vite 6.18.4 → 6.18.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.d.mts +1 -1
- package/dist/cli.mjs +153 -163
- package/dist/{config-Cii50do1.d.mts → config-DEdY6_Qn.d.mts} +81 -2
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-giYv1R-U.mjs → createContext-C3XuGjnq.mjs} +2019 -1026
- package/dist/file-CWBCL2N8.mjs +2 -0
- package/dist/{file-CWu9BDPF.mjs → file-DjQkG6ce.mjs} +1 -1
- package/dist/getInstance-DrwD5CVt.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +24 -24
- package/dist/file-Dbg8ttkV.mjs +0 -2
- package/dist/getInstance-DDUp2h9o.mjs +0 -2
- package/dist/{runtime-CRoKWQZn.mjs → runtime-kc5RVjrC.mjs} +1 -1
|
@@ -910,6 +910,85 @@ interface BindingErrorLike {
|
|
|
910
910
|
stack?: string;
|
|
911
911
|
}
|
|
912
912
|
//#endregion
|
|
913
|
+
//#region src/moduleGraph/protocol.d.ts
|
|
914
|
+
type SidecarModuleKind = 'json' | 'layout' | 'script' | 'style' | 'template' | 'using-component' | 'wxs';
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/moduleGraph/types.d.ts
|
|
917
|
+
interface BuildModuleInfo {
|
|
918
|
+
dynamicImporters?: readonly string[];
|
|
919
|
+
exports?: readonly string[];
|
|
920
|
+
importers?: readonly string[];
|
|
921
|
+
isEntry?: boolean;
|
|
922
|
+
}
|
|
923
|
+
interface BuildGraphContext {
|
|
924
|
+
getModuleIds?: () => Iterable<string>;
|
|
925
|
+
getModuleInfo?: (id: string) => BuildModuleInfo | null | undefined;
|
|
926
|
+
load?: (options: {
|
|
927
|
+
id: string;
|
|
928
|
+
resolveDependencies?: boolean;
|
|
929
|
+
}) => Promise<BuildModuleInfo>;
|
|
930
|
+
resolve?: (source: string, importer?: string, options?: {
|
|
931
|
+
skipSelf?: boolean;
|
|
932
|
+
}) => Promise<{
|
|
933
|
+
id: string;
|
|
934
|
+
} | null>;
|
|
935
|
+
}
|
|
936
|
+
interface DevModuleNode {
|
|
937
|
+
file?: string | null;
|
|
938
|
+
id?: string | null;
|
|
939
|
+
importedModules?: Set<DevModuleNode>;
|
|
940
|
+
importers?: Set<DevModuleNode>;
|
|
941
|
+
url?: string;
|
|
942
|
+
}
|
|
943
|
+
interface DevModuleGraph {
|
|
944
|
+
getModuleById: (id: string) => DevModuleNode | undefined;
|
|
945
|
+
getModulesByFile: (file: string) => Set<DevModuleNode> | undefined;
|
|
946
|
+
idToModuleMap?: Map<string, DevModuleNode>;
|
|
947
|
+
invalidateModule: (module: DevModuleNode) => void;
|
|
948
|
+
}
|
|
949
|
+
interface DevServerGraphHost {
|
|
950
|
+
moduleGraph: DevModuleGraph;
|
|
951
|
+
transformRequest?: (url: string) => Promise<unknown>;
|
|
952
|
+
}
|
|
953
|
+
interface TopologyRescanRequest {
|
|
954
|
+
files: Set<string>;
|
|
955
|
+
reasons: Set<string>;
|
|
956
|
+
}
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region src/moduleGraph/service.d.ts
|
|
959
|
+
interface ModuleGraphService {
|
|
960
|
+
bindBuildContext: (scope: object, context: BuildGraphContext) => void;
|
|
961
|
+
bindDevServer: (server: DevServerGraphHost | undefined) => void;
|
|
962
|
+
bindPluginContext: (context: BuildGraphContext) => void;
|
|
963
|
+
collectAffectedEntries: (file: string) => Set<string>;
|
|
964
|
+
getPendingChanges: () => Array<{
|
|
965
|
+
event: string;
|
|
966
|
+
file: string;
|
|
967
|
+
}>;
|
|
968
|
+
consumeTopologyRescan: () => TopologyRescanRequest | undefined;
|
|
969
|
+
hasModule: (file: string) => boolean;
|
|
970
|
+
invalidate: (file: string) => Set<string>;
|
|
971
|
+
isLogicalLayoutEntry: (file: string) => boolean;
|
|
972
|
+
load: (options: {
|
|
973
|
+
id: string;
|
|
974
|
+
resolveDependencies?: boolean;
|
|
975
|
+
}) => Promise<BuildModuleInfo>;
|
|
976
|
+
replaceEntryDependencies: (ownerId: string, kind: SidecarModuleKind, sourceIds: Iterable<string>) => void;
|
|
977
|
+
recordChangedFile: (file: string, event: string) => void;
|
|
978
|
+
clearPendingChanges: () => void;
|
|
979
|
+
requestTopologyRescan: (reason: string, file: string) => void;
|
|
980
|
+
resolve: (source: string, importer?: string, options?: {
|
|
981
|
+
skipSelf?: boolean;
|
|
982
|
+
}) => Promise<{
|
|
983
|
+
id: string;
|
|
984
|
+
} | null>;
|
|
985
|
+
syncDevGraph: (context: BuildGraphContext) => Promise<void>;
|
|
986
|
+
getEntryDependencies: (ownerId: string) => Array<{
|
|
987
|
+
kind: SidecarModuleKind;
|
|
988
|
+
sourceId: string;
|
|
989
|
+
}>;
|
|
990
|
+
}
|
|
991
|
+
//#endregion
|
|
913
992
|
//#region src/runtime/buildPlugin/service.d.ts
|
|
914
993
|
interface BuildOptions {
|
|
915
994
|
skipNpm?: boolean;
|
|
@@ -1536,8 +1615,6 @@ interface RuntimeState {
|
|
|
1536
1615
|
resolvedEntryMap: Map<string, ResolvedId>;
|
|
1537
1616
|
externalComponentEntryMap: Map<string, string>;
|
|
1538
1617
|
entriesMap: Map<string, Entry | undefined>;
|
|
1539
|
-
layoutEntryDependents: Map<string, Set<string>>;
|
|
1540
|
-
entryLayoutDependencies: Map<string, Set<string>>;
|
|
1541
1618
|
vueEntryHasTemplate: Map<string, boolean>;
|
|
1542
1619
|
vueEntryNonJsonSignatures: Map<string, string>;
|
|
1543
1620
|
vueEntryScriptSignatures: Map<string, string>;
|
|
@@ -1691,6 +1768,7 @@ interface RuntimeState {
|
|
|
1691
1768
|
watcher: {
|
|
1692
1769
|
rollupWatcherMap: Map<string, WatcherInstance>;
|
|
1693
1770
|
sidecarWatcherMap: Map<string, SidecarWatcher>;
|
|
1771
|
+
sidecarDirtyFiles: Map<string, 'json-sidecar' | 'style-sidecar' | 'sidecar-direct'>;
|
|
1694
1772
|
};
|
|
1695
1773
|
wxml: {
|
|
1696
1774
|
depsMap: Map<string, Set<string>>;
|
|
@@ -1850,6 +1928,7 @@ interface CompilerContext {
|
|
|
1850
1928
|
npmService: NpmService;
|
|
1851
1929
|
wxmlService: WxmlService;
|
|
1852
1930
|
jsonService: JsonService;
|
|
1931
|
+
moduleGraphService: ModuleGraphService;
|
|
1853
1932
|
watcherService: WatcherService;
|
|
1854
1933
|
webService: WebService;
|
|
1855
1934
|
autoImportService: AutoImportService;
|
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-DEdY6_Qn.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 };
|