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.
- package/README.md +51 -1
- package/bin/bootstrap.js +14 -1
- package/dist/adapters-CcHrsYaj.mjs +1 -0
- package/dist/analyze-ZJUvEdaY.mjs +248 -0
- package/dist/auto-import-components/resolvers.mjs +1 -2
- package/dist/auto-import-presets/wevu-router.mjs +1 -2
- package/dist/auto-import-presets/wevu.mjs +1 -2
- package/dist/auto-routes.mjs +2 -1
- package/dist/budget-BD7VqLCl.d.mts +178 -0
- package/dist/chunkStrategy-DRA5WpB-.mjs +1436 -0
- package/dist/cli-acceptance.d.mts +1 -0
- package/dist/cli-acceptance.mjs +21 -0
- package/dist/cli.mjs +1420 -1554
- package/dist/compatibility.mjs +1 -2
- package/dist/{config-Dbvj5yK7.d.mts → config-V0L-IAJf.d.mts} +87 -30
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/{constants-WOsG3Eqd.mjs → constants-DEZdcsMn.mjs} +1 -1
- package/dist/{createContext-UOEgeYnA.mjs → createCompilerContextInstance-DJH_P_nZ.mjs} +31278 -32148
- package/dist/createContext-BqYzHhY9.mjs +12 -0
- package/dist/dashboard/analyze.d.mts +48 -0
- package/dist/dashboard/analyze.mjs +1 -0
- package/dist/dashboard/vite.d.mts +1 -1
- package/dist/dashboard-DvqF3Key.mjs +1842 -0
- package/dist/dashboard.d.mts +3 -2
- package/dist/dashboard.mjs +1 -2
- package/dist/dashboardViteBridge-Dy3nAD4m.mjs +299 -0
- package/dist/dev-fR5GiJRO.mjs +63 -0
- package/dist/devProvider-BGBkw28J.mjs +1050 -0
- package/dist/docs/README.md +51 -1
- package/dist/docs/ai-workflows.md +4 -0
- package/dist/docs/doctor.md +38 -0
- package/dist/docs/getting-started.md +3 -1
- package/dist/docs/index.md +3 -1
- package/dist/docs/mcp.md +94 -1
- package/dist/docs/testing.md +29 -2
- package/dist/docs/troubleshooting.md +8 -0
- package/dist/docs/uni-app-component-libraries.md +8 -7
- package/dist/docs/upload.md +40 -3
- package/dist/docs/vite-plugin.md +171 -0
- package/dist/docs/vue-sfc.md +19 -0
- package/dist/docs/weapp-config.md +54 -0
- package/dist/docs/wevu-authoring.md +10 -0
- package/dist/doctor-worker.d.mts +1 -0
- package/dist/doctor-worker.mjs +59 -0
- package/dist/doctor.d.mts +144 -0
- package/dist/doctor.mjs +848 -0
- package/dist/eslint.mjs +1 -2
- package/dist/file-DRb4eWqw.mjs +1 -0
- package/dist/{file-giE9UMZa.mjs → file-sC3jD7Fh.mjs} +15 -9
- package/dist/files-BqxFIPRp.mjs +45 -0
- package/dist/getInstance-DiGSzBNI.mjs +28 -0
- package/dist/getInstance-SiE6WZRh.mjs +1 -0
- package/dist/index-C9HjUX5c.d.mts +741 -0
- package/dist/index.d.mts +10 -8
- package/dist/index.mjs +3 -2
- package/dist/json.d.mts +1 -1
- package/dist/json.mjs +1 -2
- package/dist/lifecycle-BROTlwSL.mjs +320 -0
- package/dist/loadConfig-C3BQhz7F.mjs +59 -0
- package/dist/loadConfig-VGtBF4qm.mjs +1 -0
- package/dist/logger-DGn5iEVN.mjs +1 -0
- package/dist/{mcp-BG6TliEg.mjs → mcp-Cj8Maqo6.mjs} +16 -7
- package/dist/mcp-D3Yh24Cj.mjs +529 -0
- package/dist/mcp.d.mts +6 -3
- package/dist/mcp.mjs +1 -2
- package/dist/package-7swhyLmf.mjs +91 -0
- package/dist/path-doV773b7.mjs +103 -0
- package/dist/{platform-DTWs5QRi.mjs → platform-CnkySBKz.mjs} +1 -1
- package/dist/processCleanup-B6KA30Zc.mjs +77 -0
- package/dist/protocol-vg8HGJ4n.mjs +138 -0
- package/dist/{resolvers-icNxkpcy.mjs → resolvers-Dod-euqX.mjs} +4 -1
- package/dist/resolvers.mjs +1 -2
- package/dist/runtime.mjs +1 -2
- package/dist/session-PskhD-nZ.mjs +390 -0
- package/dist/test.d.mts +1 -0
- package/dist/test.mjs +201 -44
- package/dist/types.d.mts +2 -2
- package/dist/{upload-D0RcEWrq.mjs → upload-D4msblBf.mjs} +174 -15
- package/dist/upload-worker.mjs +136 -3
- package/dist/utils-CJSCgEj6.mjs +1094 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.mjs +270 -0
- package/dist/volar.d.mts +2 -2
- package/dist/web-apis.mjs +1 -2
- package/package.json +67 -41
- package/dist/adapters-BwnMMIZR.mjs +0 -2
- package/dist/dashboard-BzaVesmQ.mjs +0 -558
- package/dist/file-D19nbDoN.mjs +0 -2
- package/dist/getInstance-CYF1vl5l.mjs +0 -2
- package/dist/index-DbqVupg0.d.mts +0 -246
- package/dist/logger-mt4mSTqV.mjs +0 -2
package/dist/compatibility.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { findWevuCompatibilityEntry, wevuCompatibilityCatalog };
|
|
1
|
+
export { findWevuCompatibilityEntry, wevuCompatibilityCatalog } from "@weapp-vite/eslint";
|
|
@@ -6,24 +6,24 @@ import { WeappAstConfig } from "@weapp-vite/ast";
|
|
|
6
6
|
import "@weapp-vite/ast/operations/onPageScroll";
|
|
7
7
|
import { LoggerConfig } from "@weapp-core/logger";
|
|
8
8
|
import "@weapp-vite/ast/babel";
|
|
9
|
-
import { ComponentStyleOptions, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
|
|
9
|
+
import { ComponentStyleOptions, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
|
|
10
10
|
import { ConfigEnv, ConfigEnv as ConfigEnv$1, InlineConfig, InlineConfig as InlineConfig$1, Plugin, Plugin as Plugin$2, PluginOption, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, UserConfig, ViteDevServer, ViteDevServer as ViteDevServer$1, build } from "vite";
|
|
11
11
|
import { LRUCache } from "lru-cache";
|
|
12
12
|
import { fdir } from "fdir";
|
|
13
13
|
import { HmrCompilerAsset as WeappCompilerHmrAsset, HmrCompilerPreparation, HmrCompilerPreparation as WeappCompilerHmrPreparation, HmrCompilerRequest, HmrCompilerRequest as WeappCompilerHmrRequest } from "@weapp-vite/hmr";
|
|
14
|
-
import { InputOption, OutputBundle, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
|
|
15
|
-
import { Options } from "rolldown-plugin-dts";
|
|
16
14
|
import PQueue from "p-queue";
|
|
17
15
|
import { Buffer } from "node:buffer";
|
|
18
|
-
import { PluginOptions } from "vite-tsconfig-paths";
|
|
19
16
|
import { WrapPluginOptions } from "vite-plugin-performance";
|
|
17
|
+
import { Options } from "rolldown-plugin-dts";
|
|
20
18
|
import { ComputedDefinitions as ComputedDefinitions$1, MethodDefinitions as MethodDefinitions$1, PageLayoutMeta, Ref, WevuDefaults } from "wevu";
|
|
21
19
|
import { MiniProgramNetworkDefaults } from "@wevu/web-apis";
|
|
22
20
|
import { App, App as App$1, Component, Component as Component$1, GenerateType, Page, Page as Page$1, Plugin as Plugin$1, Sitemap, Sitemap as Sitemap$1, Theme, Theme as Theme$1 } from "@weapp-core/schematics";
|
|
21
|
+
import { InputOption, OutputBundle, OutputChunk, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
|
|
23
22
|
import { WeappWebPluginOptions } from "@weapp-vite/web/plugin";
|
|
24
23
|
import { CompilerOptions } from "typescript";
|
|
25
24
|
import { CreateCompilerOptions } from "weapp-tailwindcss/core";
|
|
26
25
|
import { UserDefinedOptions } from "weapp-tailwindcss/types";
|
|
26
|
+
import { PluginOptions } from "vite-tsconfig-paths";
|
|
27
27
|
import { DetectResult } from "package-manager-detector";
|
|
28
28
|
//#region src/runtimeTarget.d.ts
|
|
29
29
|
type WebPlatform = 'web';
|
|
@@ -338,22 +338,6 @@ interface SharedChunkOverride {
|
|
|
338
338
|
test: string | RegExp;
|
|
339
339
|
mode: SharedChunkMode;
|
|
340
340
|
}
|
|
341
|
-
type JsonMergeStage = 'defaults' | 'json-block' | 'auto-using-components' | 'component-generics' | 'macro' | 'emit' | 'merge-existing';
|
|
342
|
-
interface JsonMergeContext {
|
|
343
|
-
filename?: string;
|
|
344
|
-
kind?: 'app' | 'page' | 'component' | 'unknown';
|
|
345
|
-
stage: JsonMergeStage;
|
|
346
|
-
}
|
|
347
|
-
type JsonMergeFunction = (target: Record<string, any>, source: Record<string, any>, context: JsonMergeContext) => Record<string, any> | void;
|
|
348
|
-
type JsonMergeStrategy = 'deep' | 'assign' | 'replace' | JsonMergeFunction;
|
|
349
|
-
interface JsonConfig {
|
|
350
|
-
defaults?: {
|
|
351
|
-
app?: Record<string, any>;
|
|
352
|
-
page?: Record<string, any>;
|
|
353
|
-
component?: Record<string, any>;
|
|
354
|
-
};
|
|
355
|
-
mergeStrategy?: JsonMergeStrategy;
|
|
356
|
-
}
|
|
357
341
|
interface ChunksConfig {
|
|
358
342
|
sharedStrategy?: SharedChunkStrategy;
|
|
359
343
|
sharedMode?: SharedChunkMode;
|
|
@@ -744,6 +728,8 @@ interface WeappAutoRoutesConfig {
|
|
|
744
728
|
* @remarks 默认会扫描主包 `pages/**`,以及已声明分包 root 下的 `pages/**`
|
|
745
729
|
*/
|
|
746
730
|
include?: WeappAutoRoutesInclude;
|
|
731
|
+
/** 页面入口扩展名(可带前导点);未设置或为空时沿用默认解析。 */
|
|
732
|
+
extensions?: string[];
|
|
747
733
|
/**
|
|
748
734
|
* @description 是否启用自动路由持久化缓存,或指定自定义缓存文件路径
|
|
749
735
|
* @default false
|
|
@@ -833,7 +819,7 @@ interface WeappNpmConfig {
|
|
|
833
819
|
subPackages?: Record<string, NpmSubPackageConfig>;
|
|
834
820
|
/** 按包名限制原生小程序 npm 包复制到产物中的文件 */
|
|
835
821
|
packageFiles?: Record<string, NpmPackageFilesConfig>;
|
|
836
|
-
buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | undefined;
|
|
822
|
+
buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | false | undefined;
|
|
837
823
|
alipayNpmMode?: AlipayNpmMode;
|
|
838
824
|
}
|
|
839
825
|
/**
|
|
@@ -956,6 +942,13 @@ interface WeappRouteRule {
|
|
|
956
942
|
}
|
|
957
943
|
type WeappRouteRules = Record<string, WeappRouteRule>;
|
|
958
944
|
//#endregion
|
|
945
|
+
//#region src/types/config/tsconfigPaths.d.ts
|
|
946
|
+
/** 高级路径适配选项,保留旧配置的类型兼容。 */
|
|
947
|
+
interface TsconfigPathsOptions extends PluginOptions {
|
|
948
|
+
/** @deprecated 解析器已统一处理继承和路径,此选项仅兼容旧配置,不再加载 TypeScript 编译器。 */
|
|
949
|
+
parseNative?: boolean;
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
959
952
|
//#region src/types/config/main.d.ts
|
|
960
953
|
type WeappTailwindcssOptions = UserDefinedOptions & Pick<CreateCompilerOptions, 'compiler'>;
|
|
961
954
|
/**
|
|
@@ -1024,6 +1017,10 @@ interface WeappAnalyzeBudgetConfig {
|
|
|
1024
1017
|
* 独立分包预算阈值(字节)。
|
|
1025
1018
|
*/
|
|
1026
1019
|
independentBytes?: number;
|
|
1020
|
+
/** 包含已识别 runtime 模块的文件字节上界预算,包含混合 chunk 的业务部分。 */
|
|
1021
|
+
runtimeBytes?: number;
|
|
1022
|
+
/** 按分包 root 覆盖单包预算;主包使用 __main__。 */
|
|
1023
|
+
packageBytes?: Record<string, number>;
|
|
1027
1024
|
/**
|
|
1028
1025
|
* 预算预警比例,默认 0.85。
|
|
1029
1026
|
*/
|
|
@@ -1139,7 +1136,7 @@ interface WeappViteConfig {
|
|
|
1139
1136
|
jsonAlias?: AliasOptions | false;
|
|
1140
1137
|
npm?: WeappNpmConfig;
|
|
1141
1138
|
generate?: GenerateOptions;
|
|
1142
|
-
tsconfigPaths?: boolean |
|
|
1139
|
+
tsconfigPaths?: boolean | TsconfigPathsOptions;
|
|
1143
1140
|
/**
|
|
1144
1141
|
* 主包共享样式入口。生成独立样式文件,并按配置注入主包与普通分包页面或组件。
|
|
1145
1142
|
*/
|
|
@@ -1150,7 +1147,7 @@ interface WeappViteConfig {
|
|
|
1150
1147
|
typescript?: WeappManagedTypeScriptConfig;
|
|
1151
1148
|
lib?: WeappLibConfig;
|
|
1152
1149
|
isAdditionalWxml?: (wxmlFilePath: string) => boolean;
|
|
1153
|
-
platform?: MpPlatform$1;
|
|
1150
|
+
platform?: MpPlatform$1 | 'web';
|
|
1154
1151
|
multiPlatform?: boolean | MultiPlatformConfig;
|
|
1155
1152
|
jsFormat?: JsFormat;
|
|
1156
1153
|
/**
|
|
@@ -1311,6 +1308,8 @@ interface BaseEntry {
|
|
|
1311
1308
|
path: string;
|
|
1312
1309
|
jsonPath?: string;
|
|
1313
1310
|
json?: object;
|
|
1311
|
+
/** 自动导入增强前的入口声明,供逻辑入口建立稳定的配置依赖。 */
|
|
1312
|
+
declaredJson?: object;
|
|
1314
1313
|
type: 'app' | 'page' | 'component' | (string & {});
|
|
1315
1314
|
}
|
|
1316
1315
|
type Entry = AppEntry | PageEntry | ComponentEntry;
|
|
@@ -1392,12 +1391,19 @@ interface DevModuleGraph {
|
|
|
1392
1391
|
idToModuleMap?: Map<string, DevModuleNode>;
|
|
1393
1392
|
invalidateModule(module: DevModuleNode): void;
|
|
1394
1393
|
}
|
|
1394
|
+
interface DevResolverContainer {
|
|
1395
|
+
resolveId: (source: string, importer?: string) => Promise<{
|
|
1396
|
+
id: string;
|
|
1397
|
+
} | null>;
|
|
1398
|
+
}
|
|
1395
1399
|
interface DevServerGraphHost {
|
|
1396
1400
|
environments?: {
|
|
1397
1401
|
client?: {
|
|
1398
1402
|
bundledDev?: unknown;
|
|
1403
|
+
pluginContainer?: DevResolverContainer;
|
|
1399
1404
|
};
|
|
1400
1405
|
};
|
|
1406
|
+
pluginContainer?: DevResolverContainer;
|
|
1401
1407
|
moduleGraph: DevModuleGraph;
|
|
1402
1408
|
transformRequest?: (url: string) => Promise<unknown>;
|
|
1403
1409
|
}
|
|
@@ -1442,6 +1448,8 @@ interface ModuleGraphService {
|
|
|
1442
1448
|
id: string;
|
|
1443
1449
|
} | null>;
|
|
1444
1450
|
syncDevGraph: (context: BuildGraphContext) => Promise<void>;
|
|
1451
|
+
getTransformDependencies: (sourceId: string) => readonly string[];
|
|
1452
|
+
replaceTransformDependencies: (sourceId: string, dependencies: Iterable<string>) => void;
|
|
1445
1453
|
getEntryDependencies: (ownerId: string) => Array<{
|
|
1446
1454
|
kind: SidecarModuleKind;
|
|
1447
1455
|
sourceId: string;
|
|
@@ -1783,6 +1791,12 @@ interface LoadConfigOptions {
|
|
|
1783
1791
|
emitDefaultAutoImportOutputs?: boolean;
|
|
1784
1792
|
outputRoot?: string;
|
|
1785
1793
|
pluginOnly?: boolean;
|
|
1794
|
+
/** 宿主已执行的配置;存在时跳过 vite/weapp-vite 配置文件发现与加载。 */
|
|
1795
|
+
hostConfig?: {
|
|
1796
|
+
config: InlineConfig;
|
|
1797
|
+
path?: string;
|
|
1798
|
+
dependencies?: string[];
|
|
1799
|
+
};
|
|
1786
1800
|
inlineConfig?: InlineConfig;
|
|
1787
1801
|
configFile?: string;
|
|
1788
1802
|
configLoader?: ViteConfigLoader;
|
|
@@ -1791,6 +1805,8 @@ interface LoadConfigOptions {
|
|
|
1791
1805
|
}
|
|
1792
1806
|
interface LoadConfigResult {
|
|
1793
1807
|
loadOptions: LoadConfigOptions;
|
|
1808
|
+
/** 本次加载的用户配置,供隔离子会话重新归一化,避免重复执行配置文件。 */
|
|
1809
|
+
sourceConfig?: InlineConfig;
|
|
1794
1810
|
config: InlineConfig;
|
|
1795
1811
|
aliasEntries: ResolvedAlias[];
|
|
1796
1812
|
outputExtensions: OutputExtensions;
|
|
@@ -1930,6 +1946,31 @@ interface JsonService {
|
|
|
1930
1946
|
cache: FileCache<any>;
|
|
1931
1947
|
}
|
|
1932
1948
|
//#endregion
|
|
1949
|
+
//#region src/runtime/npmPlugin/builder/packageBuilder.d.ts
|
|
1950
|
+
interface PackageBuilder {
|
|
1951
|
+
isMiniprogramPackage: (pkg: PackageJson) => boolean;
|
|
1952
|
+
shouldSkipBuild: (outDir: string, isOutdated: boolean) => Promise<boolean>;
|
|
1953
|
+
bundleBuild: (args: {
|
|
1954
|
+
entry: InputOption;
|
|
1955
|
+
name: string;
|
|
1956
|
+
options?: NpmBuildOptions;
|
|
1957
|
+
outDir: string;
|
|
1958
|
+
}) => Promise<void>;
|
|
1959
|
+
copyBuild: (args: {
|
|
1960
|
+
from: string;
|
|
1961
|
+
to: string;
|
|
1962
|
+
name: string;
|
|
1963
|
+
}) => Promise<void>;
|
|
1964
|
+
buildPackage: (args: BuildPackageArgs) => Promise<void>;
|
|
1965
|
+
}
|
|
1966
|
+
interface BuildPackageArgs {
|
|
1967
|
+
dep: string;
|
|
1968
|
+
outDir: string;
|
|
1969
|
+
resolveFrom?: string;
|
|
1970
|
+
options?: NpmBuildOptions;
|
|
1971
|
+
isDependenciesCacheOutdate: boolean;
|
|
1972
|
+
}
|
|
1973
|
+
//#endregion
|
|
1933
1974
|
//#region src/runtime/npmPlugin/service/types.d.ts
|
|
1934
1975
|
interface NpmService {
|
|
1935
1976
|
getDependenciesCacheFilePath: (key?: string) => string;
|
|
@@ -1950,12 +1991,7 @@ interface NpmService {
|
|
|
1950
1991
|
to: string;
|
|
1951
1992
|
name: string;
|
|
1952
1993
|
}) => Promise<void>;
|
|
1953
|
-
buildPackage:
|
|
1954
|
-
dep: string;
|
|
1955
|
-
outDir: string;
|
|
1956
|
-
options?: NpmBuildOptions;
|
|
1957
|
-
isDependenciesCacheOutdate: boolean;
|
|
1958
|
-
}) => Promise<void>;
|
|
1994
|
+
buildPackage: PackageBuilder['buildPackage'];
|
|
1959
1995
|
getPackNpmRelationList: () => {
|
|
1960
1996
|
packageJsonPath: string;
|
|
1961
1997
|
miniprogramNpmDistDir: string;
|
|
@@ -2001,6 +2037,21 @@ interface GlassEaselTemplateFinding {
|
|
|
2001
2037
|
normalized?: boolean;
|
|
2002
2038
|
}
|
|
2003
2039
|
//#endregion
|
|
2040
|
+
//#region src/utils/hmrProfile/provenance.d.ts
|
|
2041
|
+
interface HmrProfileSourceEvent {
|
|
2042
|
+
eventId: string;
|
|
2043
|
+
event?: ChangeEvent;
|
|
2044
|
+
file?: string;
|
|
2045
|
+
receivedAtMs: number;
|
|
2046
|
+
}
|
|
2047
|
+
interface HmrProfileProvenance {
|
|
2048
|
+
buildId?: string;
|
|
2049
|
+
batchId?: string;
|
|
2050
|
+
sourceEvents?: HmrProfileSourceEvent[];
|
|
2051
|
+
batchWaitMs?: number;
|
|
2052
|
+
queueWaitMs?: number;
|
|
2053
|
+
}
|
|
2054
|
+
//#endregion
|
|
2004
2055
|
//#region src/wxml/shared.d.ts
|
|
2005
2056
|
interface Token {
|
|
2006
2057
|
start: number;
|
|
@@ -2155,6 +2206,8 @@ interface RuntimeState {
|
|
|
2155
2206
|
};
|
|
2156
2207
|
output: {
|
|
2157
2208
|
emittedSource: Map<string, string>;
|
|
2209
|
+
/** 仅 analyze 启用,保留转为 asset 的 chunk 模块来源。 */
|
|
2210
|
+
analysisChunks?: Map<string, OutputChunk>;
|
|
2158
2211
|
wevuInternalRuntimeFileName?: string;
|
|
2159
2212
|
wevuInternalRuntimeFileNames?: Map<string, string>;
|
|
2160
2213
|
};
|
|
@@ -2178,6 +2231,10 @@ interface RuntimeState {
|
|
|
2178
2231
|
vueEntryTailwindScriptContentSignatures: Map<string, string>;
|
|
2179
2232
|
appEntryAutoRoutesSignature?: string;
|
|
2180
2233
|
dirtyVueEntryIds: Set<string>;
|
|
2234
|
+
/** 当前构建是否为已有输出的后续发布,不依赖单文件诊断事件。 */
|
|
2235
|
+
isRebuild: boolean;
|
|
2236
|
+
/** 当前快照从根入口重建可达图;完整发布后才撤销旧产物。 */
|
|
2237
|
+
fullEntryScan?: boolean;
|
|
2181
2238
|
didEmitAllEntries: boolean;
|
|
2182
2239
|
lastHmrEntryIds: Set<string>;
|
|
2183
2240
|
lastEmittedEntryIds: Set<string>;
|
|
@@ -2253,7 +2310,7 @@ interface RuntimeState {
|
|
|
2253
2310
|
dirtyReasonSummary?: string[];
|
|
2254
2311
|
pendingReasonSummary?: string[];
|
|
2255
2312
|
}>;
|
|
2256
|
-
profile: {
|
|
2313
|
+
profile: HmrProfileProvenance & {
|
|
2257
2314
|
eventId?: string;
|
|
2258
2315
|
event?: ChangeEvent;
|
|
2259
2316
|
file?: string;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as WeappCompilerHmrRequest, Ct as WeappViteConfig, Fr as isWeappViteHost, Ir as resolveWeappViteHostMeta, Mr as WeappViteHostMeta, Nr as applyWeappViteHostMeta, Pr as createWeappViteHostMeta, Q as WeappCompilerHmrPreparation, Sn as MultiPlatformProjectConfigs, Vr as WeappViteRuntime, Z as WeappCompilerHmrAsset, _ as definePageJson, _n as WxmlTransformContext, a as UserConfigFnNoEnvPlain, bn as WxmlTransformVisitor, c as UserConfigFnPromise, cn as WxmlValidate, d as Component, dn as WxmlValidationVisitor, f as Page, fn as WxmlAttribute, g as defineComponentJson, gn as WxmlTransform, h as defineAppJson, hn as WxmlSourceLocation, i as UserConfigFnNoEnv, it as WeappCompilerPluginController, jr as WEAPP_VITE_HOST_NAME, l as defineConfig, ln as WxmlValidationContext, m as Theme, mn as WxmlElementInfo, n as UserConfigExport, nt as WeappCompilerPluginCapabilities, o as UserConfigFnObject, on as WxmlRemoveAttrRule, ot as WeappCompilerPluginOption, p as Sitemap, pn as WxmlAttributeValue, r as UserConfigFn, rt as WeappCompilerPluginContext, s as UserConfigFnObjectPlain, sn as WxmlRemoveOptions, t as UserConfig, tt as WeappCompilerPlugin, u as App, un as WxmlValidationDiagnostic, v as defineSitemapJson, vn as WxmlTransformNode, xn as MultiPlatformProjectConfig, y as defineThemeJson, yn as WxmlTransformResult } from "./config-
|
|
1
|
+
import { $ as WeappCompilerHmrRequest, Ct as WeappViteConfig, Fr as isWeappViteHost, Gn as JsonConfig, Ir as resolveWeappViteHostMeta, Jn as JsonMergeStage, Kn as JsonMergeContext, Mr as WeappViteHostMeta, Nr as applyWeappViteHostMeta, Pr as createWeappViteHostMeta, Q as WeappCompilerHmrPreparation, Sn as MultiPlatformProjectConfigs, Vr as WeappViteRuntime, Yn as JsonMergeStrategy, Z as WeappCompilerHmrAsset, _ as definePageJson, _n as WxmlTransformContext, a as UserConfigFnNoEnvPlain, bn as WxmlTransformVisitor, c as UserConfigFnPromise, cn as WxmlValidate, d as Component, dn as WxmlValidationVisitor, f as Page, fn as WxmlAttribute, g as defineComponentJson, gn as WxmlTransform, h as defineAppJson, hn as WxmlSourceLocation, i as UserConfigFnNoEnv, it as WeappCompilerPluginController, jr as WEAPP_VITE_HOST_NAME, l as defineConfig, ln as WxmlValidationContext, m as Theme, mn as WxmlElementInfo, n as UserConfigExport, nt as WeappCompilerPluginCapabilities, o as UserConfigFnObject, on as WxmlRemoveAttrRule, ot as WeappCompilerPluginOption, p as Sitemap, pn as WxmlAttributeValue, qn as JsonMergeFunction, r as UserConfigFn, rt as WeappCompilerPluginContext, s as UserConfigFnObjectPlain, sn as WxmlRemoveOptions, t as UserConfig, tt as WeappCompilerPlugin, u as App, un as WxmlValidationDiagnostic, v as defineSitemapJson, vn as WxmlTransformNode, xn as MultiPlatformProjectConfig, y as defineThemeJson, yn as WxmlTransformResult } from "./config-V0L-IAJf.mjs";
|
|
2
2
|
import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
|
|
3
|
-
export { type App, type Component, type MultiPlatformProjectConfig, type MultiPlatformProjectConfigs, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappCompilerHmrAsset, type WeappCompilerHmrPreparation, type WeappCompilerHmrRequest, type WeappCompilerPlugin, type WeappCompilerPluginCapabilities, type WeappCompilerPluginContext, type WeappCompilerPluginController, type WeappCompilerPluginOption, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, type WxmlAttribute, type WxmlAttributeValue, type WxmlElementInfo, type WxmlRemoveAttrRule, type WxmlRemoveOptions, type WxmlSourceLocation, type WxmlTransform, type WxmlTransformContext, type WxmlTransformNode, type WxmlTransformResult, type WxmlTransformVisitor, type WxmlValidate, type WxmlValidationContext, type WxmlValidationDiagnostic, type WxmlValidationVisitor, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
|
3
|
+
export { type App, type Component, type JsonConfig, type JsonMergeContext, type JsonMergeFunction, type JsonMergeStage, type JsonMergeStrategy, type MultiPlatformProjectConfig, type MultiPlatformProjectConfigs, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappCompilerHmrAsset, type WeappCompilerHmrPreparation, type WeappCompilerHmrRequest, type WeappCompilerPlugin, type WeappCompilerPluginCapabilities, type WeappCompilerPluginContext, type WeappCompilerPluginController, type WeappCompilerPluginOption, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, type WxmlAttribute, type WxmlAttributeValue, type WxmlElementInfo, type WxmlRemoveAttrRule, type WxmlRemoveOptions, type WxmlSourceLocation, type WxmlTransform, type WxmlTransformContext, type WxmlTransformNode, type WxmlTransformResult, type WxmlTransformVisitor, type WxmlValidate, type WxmlValidationContext, type WxmlValidationDiagnostic, type WxmlValidationVisitor, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
2
1
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
+
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DRGcCi3h.mjs";
|
|
4
4
|
export { WEAPP_VITE_HOST_NAME, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-
|
|
1
|
+
import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-CcHrsYaj.mjs";
|
|
2
2
|
//#region src/platforms/sourceAssets.ts
|
|
3
3
|
const PORTABLE_TEMPLATE_EXTENSIONS = ["wxml", "html"];
|
|
4
4
|
const PORTABLE_STYLE_EXTENSIONS = [
|