weapp-vite 7.2.2 → 7.4.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.
@@ -7,10 +7,11 @@ import "@weapp-vite/ast/operations/onPageScroll";
7
7
  import { LoggerConfig } from "@weapp-core/logger";
8
8
  import "@weapp-vite/ast/babel";
9
9
  import { ComponentStyleOptions, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
10
- import { ConfigEnv, ConfigEnv as ConfigEnv$1, InlineConfig, InlineConfig as InlineConfig$1, Plugin as Plugin$1, PluginOption, ResolvedConfig, UserConfig, ViteDevServer, ViteDevServer as ViteDevServer$1, build } from "vite";
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
- import { InputOption, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
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";
14
15
  import { Options } from "rolldown-plugin-dts";
15
16
  import PQueue from "p-queue";
16
17
  import { Buffer } from "node:buffer";
@@ -18,7 +19,7 @@ import { PluginOptions } from "vite-tsconfig-paths";
18
19
  import { WrapPluginOptions } from "vite-plugin-performance";
19
20
  import { ComputedDefinitions as ComputedDefinitions$1, MethodDefinitions as MethodDefinitions$1, PageLayoutMeta, Ref, WevuDefaults } from "wevu";
20
21
  import { MiniProgramNetworkDefaults } from "@wevu/web-apis";
21
- import { App, App as App$1, Component, Component as Component$1, GenerateType, Page, Page as Page$1, Plugin, Sitemap, Sitemap as Sitemap$1, Theme, Theme as Theme$1 } from "@weapp-core/schematics";
22
+ 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";
22
23
  import { WeappWebPluginOptions } from "@weapp-vite/web/plugin";
23
24
  import { CompilerOptions } from "typescript";
24
25
  import { CreateCompilerOptions } from "weapp-tailwindcss/core";
@@ -368,6 +369,241 @@ interface ChunksConfig {
368
369
  duplicateWarningBytes?: number;
369
370
  }
370
371
  //#endregion
372
+ //#region src/types/config/projectConfig.d.ts
373
+ /** 保留原生工具新增字段,已声明字段仍提供类型检查与补全。 */
374
+ interface NativeOptions {
375
+ [key: string]: unknown;
376
+ }
377
+ /** 内联配置的公共入口;平台字段由 `MultiPlatformProjectConfigs` 按平台提供。 */
378
+ interface MultiPlatformProjectConfig extends NativeOptions {
379
+ appid?: string;
380
+ appId?: string;
381
+ /** 代码输出目录由构建器管理,请使用 `build.outDir`。 */
382
+ miniprogramRoot?: never;
383
+ srcMiniprogramRoot?: never;
384
+ smartProgramRoot?: never;
385
+ }
386
+ interface PackRule<ExtraType extends string = never> extends NativeOptions {
387
+ type?: 'file' | 'folder' | 'suffix' | 'prefix' | 'regexp' | ExtraType | (string & {});
388
+ value?: string;
389
+ }
390
+ interface PackOptions<ExtraType extends string = never> extends NativeOptions {
391
+ ignore?: PackRule<ExtraType>[];
392
+ include?: PackRule<ExtraType>[];
393
+ }
394
+ /**
395
+ * 微信开发者工具配置;不替代 Vite 的构建设置。
396
+ * @see https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html
397
+ */
398
+ interface WeappProjectConfig extends MultiPlatformProjectConfig {
399
+ projectname?: string;
400
+ description?: string;
401
+ compileType?: 'miniprogram' | 'plugin' | (string & {});
402
+ libVersion?: 'latest' | 'trial' | 'widelyUsed' | (string & {});
403
+ packOptions?: PackOptions;
404
+ setting?: NativeOptions & {
405
+ es6?: boolean;
406
+ enhance?: boolean;
407
+ postcss?: boolean;
408
+ minified?: boolean;
409
+ minifyWXSS?: boolean;
410
+ minifyWXML?: boolean;
411
+ urlCheck?: boolean;
412
+ compileHotReLoad?: boolean;
413
+ ignoreUploadUnusedFiles?: boolean;
414
+ packNpmManually?: boolean;
415
+ uploadWithSourceMap?: boolean;
416
+ useCompilerPlugins?: string[] | false;
417
+ babelSetting?: NativeOptions & {
418
+ ignore?: string[];
419
+ outputPath?: string;
420
+ };
421
+ };
422
+ }
423
+ /**
424
+ * 支付宝 format 2 项目配置;编译选项属于 `compileOptions`,而非微信的 `setting`。
425
+ * @see https://opendocs.alipay.com/mini/03dbc3
426
+ */
427
+ interface AlipayProjectConfig extends MultiPlatformProjectConfig {
428
+ format?: number;
429
+ compileType?: 'mini' | 'plugin' | (string & {});
430
+ uploadExclude?: string[];
431
+ assetsInclude?: string[];
432
+ compileOptions?: NativeOptions & {
433
+ component2?: boolean;
434
+ typescript?: boolean;
435
+ less?: boolean;
436
+ treeShaking?: boolean;
437
+ resolveAlias?: Record<string, string>;
438
+ globalObjectMode?: 'legacy' | 'enable' | 'fake' | (string & {});
439
+ transpile?: NativeOptions & {
440
+ script?: NativeOptions & {
441
+ ignore?: string[];
442
+ };
443
+ };
444
+ };
445
+ developOptions?: NativeOptions & {
446
+ hotReload?: boolean;
447
+ parallel?: boolean;
448
+ sourcemap?: boolean;
449
+ minify?: boolean;
450
+ skipTranspile?: boolean;
451
+ lazyCompile?: boolean;
452
+ };
453
+ scripts?: NativeOptions & {
454
+ watch?: string;
455
+ beforeCompile?: string;
456
+ beforePreview?: string;
457
+ beforeUpload?: string;
458
+ };
459
+ }
460
+ /**
461
+ * 抖音开发者工具配置,保留平台自己的字段名称和类型。
462
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration
463
+ */
464
+ interface TtProjectConfig extends MultiPlatformProjectConfig {
465
+ projectname?: string;
466
+ disablePrivate?: boolean;
467
+ packOptions?: PackOptions<'glob'>;
468
+ setting?: NativeOptions & {
469
+ es6?: boolean;
470
+ urlCheck?: boolean;
471
+ autoCompile?: boolean;
472
+ mockUpdate?: boolean;
473
+ scripts?: boolean;
474
+ mockLogin?: boolean;
475
+ compileHotReLoad?: boolean;
476
+ nativeCompile?: boolean;
477
+ IDEPreviewHotRestartCache?: boolean;
478
+ bigPackageSizeSupport?: boolean;
479
+ webDetect?: boolean;
480
+ useCompilerPlugins?: string[];
481
+ };
482
+ }
483
+ /**
484
+ * 小红书公开 SDK 默认配置中的稳定字段;未列出的原生字段仍可透传。
485
+ * @see https://unpkg.com/xhs-mp-project@2.1.6/dist/index.js
486
+ */
487
+ interface XhsProjectConfig extends MultiPlatformProjectConfig {
488
+ projectname?: string;
489
+ description?: string;
490
+ compileType?: 'miniprogram' | (string & {});
491
+ libVersion?: 'latest' | (string & {});
492
+ setting?: NativeOptions & {
493
+ minified?: boolean;
494
+ urlCheck?: boolean;
495
+ };
496
+ }
497
+ /**
498
+ * 百度智能小程序配置;编译参数属于 `compilation-args.common`。
499
+ * @see https://unpkg.com/swan-toolkit@3.23.1-beta.1/sdk/program/sdk-impl/compile-impl.js
500
+ */
501
+ interface SwanProjectConfig extends MultiPlatformProjectConfig {
502
+ 'compileType'?: string;
503
+ 'developType'?: string;
504
+ 'setting'?: NativeOptions & {
505
+ urlCheck?: boolean;
506
+ };
507
+ 'compilation-args'?: NativeOptions & {
508
+ common?: NativeOptions & {
509
+ ignoreTransJs?: boolean;
510
+ ignorePrefixCss?: boolean;
511
+ };
512
+ };
513
+ }
514
+ /** 六端内联配置映射;按平台补全原生字段,同时允许原生扩展字段。 */
515
+ interface MultiPlatformProjectConfigs {
516
+ /** 微信:生成 `project.config.json`。 */
517
+ weapp?: WeappProjectConfig;
518
+ /** 支付宝:生成 `mini.project.json`。 */
519
+ alipay?: AlipayProjectConfig;
520
+ /** 抖音:生成 `project.config.json`。 */
521
+ tt?: TtProjectConfig;
522
+ /** 小红书:生成 `project.config.json`。 */
523
+ xhs?: XhsProjectConfig;
524
+ /** 京东:生成 `project.config.json`;未建立原生设置 schema 的字段保持透传。 */
525
+ jd?: MultiPlatformProjectConfig;
526
+ /** 百度:生成 `project.swan.json`。 */
527
+ swan?: SwanProjectConfig;
528
+ }
529
+ //#endregion
530
+ //#region src/types/config/wxmlTransform.d.ts
531
+ /** 模板属性的新值;字符串为字面量,表达式只生成绑定而不在构建端求值。 */
532
+ type WxmlAttributeValue = string | number | boolean | {
533
+ expression: string;
534
+ };
535
+ /** 源码位置使用从零开始的偏移及从一开始的行列。 */
536
+ interface WxmlSourceLocation {
537
+ readonly offset: number;
538
+ readonly line: number;
539
+ readonly column: number;
540
+ }
541
+ /** 原始属性内容不解码、不求值;无值属性的 rawValue 为 null。 */
542
+ interface WxmlAttribute {
543
+ readonly name: string;
544
+ readonly rawValue: string | null;
545
+ readonly quote: string | undefined;
546
+ }
547
+ /** 父节点只提供观察接口,不允许通过子节点改写父树。 */
548
+ interface WxmlElementInfo {
549
+ /** 当前未删除的直接子标签;不包含文本、注释或脚本模块内容。 */
550
+ readonly children: readonly WxmlElementInfo[];
551
+ readonly tagName: string;
552
+ readonly attributes: readonly WxmlAttribute[];
553
+ readonly parent: WxmlElementInfo | undefined;
554
+ readonly location: WxmlSourceLocation;
555
+ hasAttribute: (name: string) => boolean;
556
+ getAttribute: (name: string) => WxmlAttribute | undefined;
557
+ }
558
+ /** 当前节点的编辑句柄仅在本次 edit 调用中有效。 */
559
+ interface WxmlTransformNode extends WxmlElementInfo {
560
+ readonly children: readonly WxmlTransformNode[];
561
+ /** 按源码深度优先顺序遍历后代,不含自身;必须等待完成。 */
562
+ walk: (visitor: WxmlTransformVisitor) => Promise<void>;
563
+ /** 只跳过当前回调所属遍历的后代,不改变其他遍历。 */
564
+ skipChildren: () => void;
565
+ setAttribute: (name: string, value: WxmlAttributeValue) => void;
566
+ setBooleanAttribute: (name: string) => void;
567
+ renameAttribute: (from: string, to: string) => void;
568
+ removeAttribute: (name: string) => void;
569
+ renameTag: (name: string) => void;
570
+ remove: () => void;
571
+ }
572
+ type WxmlTransformVisitor = (node: WxmlTransformNode) => void | Promise<void>;
573
+ type WxmlTransformResult = string | null | void;
574
+ /** 函数接收当前平台的输出模板;源码阶段依赖由原有组件配置负责。 */
575
+ interface WxmlTransformContext {
576
+ readonly fileName: string;
577
+ readonly root: string;
578
+ readonly platform: MpPlatform$1;
579
+ readonly mode: string;
580
+ readonly isDev: boolean;
581
+ readonly subPackageRoot: string | undefined;
582
+ edit: (code: string, visitor: WxmlTransformVisitor) => Promise<string>;
583
+ addWatchFile: (file: string) => void;
584
+ warn: (message: string) => void;
585
+ error: (message: string) => never;
586
+ }
587
+ type WxmlTransform = (code: string, context: WxmlTransformContext) => WxmlTransformResult | Promise<WxmlTransformResult>;
588
+ //#endregion
589
+ //#region src/types/config/wxmlValidate.d.ts
590
+ /** 诊断位置对应最终输出模板;不映射回 Vue 等源文件。 */
591
+ interface WxmlValidationDiagnostic {
592
+ severity: 'warning' | 'error';
593
+ code?: string;
594
+ message: string;
595
+ location?: WxmlSourceLocation;
596
+ }
597
+ /** 校验只观察模板,不能通过节点改写产物。 */
598
+ type WxmlValidationVisitor = (node: WxmlElementInfo) => void | Promise<void>;
599
+ /** 所有回调观察同一份完成输出转换的模板。 */
600
+ interface WxmlValidationContext extends Pick<WxmlTransformContext, 'fileName' | 'root' | 'platform' | 'mode' | 'isDev' | 'subPackageRoot' | 'addWatchFile'> {
601
+ walk: (visitor: WxmlValidationVisitor) => Promise<void>;
602
+ report: (diagnostic: WxmlValidationDiagnostic) => void;
603
+ }
604
+ /** 返回值不用于转换;非 undefined 返回值会作为配置错误报告。 */
605
+ type WxmlValidate = (code: string, context: WxmlValidationContext) => void | Promise<void>;
606
+ //#endregion
371
607
  //#region src/types/config/features.d.ts
372
608
  /**
373
609
  * @description 自动导入组件配置
@@ -412,7 +648,27 @@ interface WeappUniAppConfig {
412
648
  */
413
649
  include: string[];
414
650
  }
415
- type EnhanceWxmlOptions = ScanWxmlOptions & HandleWxmlOptions;
651
+ /** 最终模板中的标签限定属性删除规则,名称区分大小写并支持 `*`。 */
652
+ interface WxmlRemoveAttrRule {
653
+ tag: string | string[];
654
+ name: string | string[];
655
+ }
656
+ /** 最终模板的可选清理;对象形式只执行显式配置,不叠加预设。 */
657
+ interface WxmlRemoveOptions {
658
+ attr?: Array<string | WxmlRemoveAttrRule>;
659
+ tag?: string[];
660
+ comment?: boolean;
661
+ }
662
+ type EnhanceWxmlOptions = ScanWxmlOptions & Omit<HandleWxmlOptions, 'removeComment'> & {
663
+ /** @deprecated 仅保留类型兼容,未接入编译流程;请使用 `weapp.wxml.remove.comment`。 */
664
+ removeComment?: boolean;
665
+ /** `true` 删除四种测试属性及普通注释;环境由用户配置控制。 */
666
+ remove?: boolean | WxmlRemoveOptions;
667
+ /** 在最终模板清理前按顺序执行同步或异步转换。 */
668
+ transform?: WxmlTransform | WxmlTransform[];
669
+ /** 在输出插件处理后、HMR 比较及发布前检查最终模板。 */
670
+ validate?: WxmlValidate | WxmlValidate[];
671
+ };
416
672
  /**
417
673
  * @description WXML 扫描阶段配置
418
674
  */
@@ -447,7 +703,11 @@ interface MultiPlatformConfig {
447
703
  enabled?: boolean;
448
704
  projectConfigRoot?: string;
449
705
  /**
450
- * @description 多平台模式下允许参与构建/开发的目标平台集合
706
+ * @description 各平台的原生项目配置;不可与 `projectConfigRoot` 同时设置。
707
+ */
708
+ projectConfigs?: MultiPlatformProjectConfigs;
709
+ /**
710
+ * @description 多平台模式下允许参与构建/开发的目标平台集合;省略时从 `projectConfigs` 的平台键推断。
451
711
  */
452
712
  targets?: 'all' | readonly MpPlatform$1[];
453
713
  }
@@ -618,6 +878,7 @@ interface WeappWorkerConfig {
618
878
  * @description Vue 模板编译配置
619
879
  */
620
880
  interface WeappVueTemplateConfig {
881
+ /** @deprecated 仅保留类型兼容,未接入编译流程;请使用 `weapp.wxml.remove.comment`。 */
621
882
  removeComments?: boolean;
622
883
  simplifyWhitespace?: boolean;
623
884
  formatWxml?: boolean | 'auto';
@@ -798,6 +1059,19 @@ interface WeappAnalyzeConfig {
798
1059
  */
799
1060
  history?: boolean | WeappAnalyzeHistoryConfig;
800
1061
  }
1062
+ /**
1063
+ * @description 显式执行 build --upload 或 upload 命令时使用的默认参数,不会触发自动上传。
1064
+ */
1065
+ interface WeappUploadConfig {
1066
+ /**
1067
+ * 上传版本;CLI --uv 优先,未配置时读取 package.json.version。
1068
+ */
1069
+ version?: string;
1070
+ /**
1071
+ * 上传说明;CLI --desc 优先,未配置时使用项目名称与版本。
1072
+ */
1073
+ desc?: string;
1074
+ }
801
1075
  /**
802
1076
  * @description weapp-vite 主配置
803
1077
  */
@@ -814,6 +1088,10 @@ interface WeappViteConfig {
814
1088
  * - `object`: 启用并传入 weapp-tailwindcss core options
815
1089
  */
816
1090
  tailwindcss?: boolean | WeappTailwindcssOptions;
1091
+ /**
1092
+ * 可扩展的底层编译插件。插件负责声明源码所有权,并可参与 CSS、WXML、JavaScript、bundle 和 HMR 生命周期。
1093
+ */
1094
+ compilerPlugins?: WeappCompilerPluginOption | WeappCompilerPluginOption[];
817
1095
  /**
818
1096
  * 应用入口目录(`app.json` 所在目录)。
819
1097
  */
@@ -849,6 +1127,11 @@ interface WeappViteConfig {
849
1127
  * analyze 报告配置。
850
1128
  */
851
1129
  analyze?: WeappAnalyzeConfig;
1130
+ /**
1131
+ * 上传默认参数。仅在显式执行 build --upload 或 upload 且构建与产物校验成功后上传;
1132
+ * 普通 build、dev/HMR、preview 和上传 dry-run 不触发上传。
1133
+ */
1134
+ upload?: WeappUploadConfig;
852
1135
  /**
853
1136
  * 局部构建范围。默认不启用,启用后只构建主包和指定分包。
854
1137
  */
@@ -921,6 +1204,92 @@ interface ProjectConfig {
921
1204
  };
922
1205
  }
923
1206
  //#endregion
1207
+ //#region src/types/compilerPlugin.d.ts
1208
+ type WeappCompilerPluginPhase = 'source' | 'output';
1209
+ type WeappCompilerResourceKind = 'style' | 'template' | 'script';
1210
+ interface WeappCompilerPluginCapabilities {
1211
+ bundle?: boolean;
1212
+ style?: boolean;
1213
+ template?: boolean;
1214
+ script?: boolean;
1215
+ content?: boolean;
1216
+ hmr?: boolean;
1217
+ }
1218
+ interface WeappCompilerPluginContext {
1219
+ root: string;
1220
+ srcRoot: string;
1221
+ platform: MpPlatform$1;
1222
+ outputExtensions: OutputExtensions;
1223
+ isDev: boolean;
1224
+ resolvedConfig?: ResolvedConfig;
1225
+ readFile: (id: string) => Promise<string>;
1226
+ resolve: (source: string, importer?: string, options?: {
1227
+ skipSelf?: boolean;
1228
+ }) => Promise<{
1229
+ id: string;
1230
+ } | null>;
1231
+ addWatchFile: (id: string) => void;
1232
+ invalidate: (id: string) => void;
1233
+ warn: (message: string) => void;
1234
+ error: (message: string) => never;
1235
+ claimSource: (id: string, owner: string) => void;
1236
+ getSourceOwner: (id: string) => string | undefined;
1237
+ }
1238
+ interface WeappCompilerSourceRequest {
1239
+ id: string;
1240
+ code: string;
1241
+ kind: WeappCompilerResourceKind;
1242
+ }
1243
+ interface WeappCompilerTransformResult {
1244
+ code: string;
1245
+ /** 与产物关联的稳定入口标识;未提供时由 host 使用源码 id。 */
1246
+ entryId?: string;
1247
+ map?: unknown;
1248
+ dependencies?: string[];
1249
+ /** provider 需要 host 重新处理的文件集合。 */
1250
+ invalidated?: string[];
1251
+ handled?: boolean;
1252
+ state?: unknown;
1253
+ }
1254
+ interface WeappCompilerSourceClaim {
1255
+ id?: string;
1256
+ entryId?: string;
1257
+ dependencies?: string[];
1258
+ }
1259
+ interface WeappCompilerOutputRequest {
1260
+ fileName: string;
1261
+ code: string;
1262
+ entryId?: string;
1263
+ state?: unknown;
1264
+ }
1265
+ interface WeappCompilerPluginController {
1266
+ /** 同批次资产与脚本必须使用此调用持有的固定状态。 */
1267
+ prepareHmr?: (request: HmrCompilerRequest) => HmrCompilerPreparation | Promise<HmrCompilerPreparation>;
1268
+ buildStart?: () => void | Promise<void>;
1269
+ claimSource?: (request: WeappCompilerSourceRequest) => boolean | WeappCompilerSourceClaim | Promise<boolean | WeappCompilerSourceClaim | null> | null;
1270
+ transformSource?: (request: WeappCompilerSourceRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
1271
+ generateBundle?: (bundle: OutputBundle, context: WeappCompilerPluginContext) => void | Promise<void>;
1272
+ transformCss?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
1273
+ transformTemplate?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
1274
+ transformJavaScript?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
1275
+ watchChange?: (id: string, change: {
1276
+ event: 'create' | 'update' | 'delete';
1277
+ }) => void | Promise<void>;
1278
+ handleHotUpdate?: (file: string) => string[] | void | Promise<string[] | void>;
1279
+ buildEnd?: (error?: Error) => void | Promise<void>;
1280
+ closeWatcher?: () => void | Promise<void>;
1281
+ closeBundle?: () => void | Promise<void>;
1282
+ dispose?: () => void | Promise<void>;
1283
+ }
1284
+ interface WeappCompilerPlugin {
1285
+ name: string;
1286
+ phase?: WeappCompilerPluginPhase;
1287
+ capabilities?: WeappCompilerPluginCapabilities;
1288
+ create: (context: WeappCompilerPluginContext) => WeappCompilerPluginController | Promise<WeappCompilerPluginController>;
1289
+ }
1290
+ type WeappCompilerPluginFactory = (context: WeappCompilerPluginContext) => WeappCompilerPlugin | Promise<WeappCompilerPlugin>;
1291
+ type WeappCompilerPluginOption = WeappCompilerPlugin | WeappCompilerPluginFactory;
1292
+ //#endregion
924
1293
  //#region src/types/context.d.ts
925
1294
  interface WxmlDep {
926
1295
  tagName: string;
@@ -1039,9 +1408,15 @@ interface TopologyRescanRequest {
1039
1408
  //#endregion
1040
1409
  //#region src/moduleGraph/service.d.ts
1041
1410
  interface ModuleGraphService {
1042
- bindBuildContext: (scope: object, context: BuildGraphContext) => void;
1043
- bindDevServer: (server: DevServerGraphHost | undefined) => void;
1044
- bindPluginContext: (context: BuildGraphContext) => void;
1411
+ /** 只替换指定 scope;返回仅对应本次绑定的释放器。 */
1412
+ bindBuildContext: (scope: object, context: BuildGraphContext) => () => void;
1413
+ /** 撤销 scope 的图和插件上下文;传入 context 时仅释放仍归该 context 所有的绑定。 */
1414
+ unbindBuildContext: (scope: object, context?: BuildGraphContext) => void;
1415
+ /** 返回仅对应本次绑定的释放器,避免旧 server 的异步关闭解绑新 server。 */
1416
+ bindDevServer: (server: DevServerGraphHost | undefined) => () => void;
1417
+ bindPluginContext: (scope: object, context: BuildGraphContext) => void;
1418
+ /** 仅用于整个会话关闭或替换,不用于普通增量构建或临时 snapshot。 */
1419
+ resetSession: () => void;
1045
1420
  collectAffectedEntries: (file: string) => Set<string>;
1046
1421
  getPendingChanges: () => Array<{
1047
1422
  event: string;
@@ -1056,6 +1431,8 @@ interface ModuleGraphService {
1056
1431
  resolveDependencies?: boolean;
1057
1432
  }) => Promise<BuildModuleInfo>;
1058
1433
  replaceEntryDependencies: (ownerId: string, kind: SidecarModuleKind, sourceIds: Iterable<string>) => void;
1434
+ /** 释放 owner 自己的依赖声明;实际 import graph 的更新仍由构建引擎负责。 */
1435
+ removeEntryDependencies: (ownerId: string) => void;
1059
1436
  recordChangedFile: (file: string, event: string) => void;
1060
1437
  clearPendingChanges: () => void;
1061
1438
  requestTopologyRescan: (reason: string, file: string) => void;
@@ -1385,6 +1762,7 @@ interface ResolvedMultiPlatformConfig {
1385
1762
  enabled: boolean;
1386
1763
  projectConfigRoot: string;
1387
1764
  targets: readonly MpPlatform$1[];
1765
+ projectConfigs?: MultiPlatformProjectConfigs;
1388
1766
  }
1389
1767
  //#endregion
1390
1768
  //#region src/utils/json.d.ts
@@ -1597,6 +1975,24 @@ interface GlassEaselDiagnostic {
1597
1975
  column?: number;
1598
1976
  normalized?: boolean;
1599
1977
  }
1978
+ /** 每个 source/output owner 的最近分析事实;日志去重状态不属于当前事实。 */
1979
+ interface GlassEaselAnalysisFact {
1980
+ kind: 'output' | 'source';
1981
+ scope?: string;
1982
+ detected: boolean;
1983
+ diagnostics: Map<string, GlassEaselDiagnostic>;
1984
+ sourceIds: Set<string>;
1985
+ }
1986
+ interface GlassEaselAnalyzeResult {
1987
+ detected: boolean;
1988
+ minimumBaseLibrary: '3.8.12';
1989
+ migrationGuide: string;
1990
+ diagnostics: GlassEaselDiagnostic[];
1991
+ summary: {
1992
+ errors: number;
1993
+ warnings: number;
1994
+ };
1995
+ }
1600
1996
  interface GlassEaselTemplateFinding {
1601
1997
  code: Extract<GlassEaselDiagnosticCode, 'GE002' | 'GE003' | 'GE004'>;
1602
1998
  severity: GlassEaselDiagnosticSeverity;
@@ -1654,6 +2050,21 @@ interface WxmlToken {
1654
2050
  declare function scanWxml(wxml: string | Buffer, options?: ScanWxmlOptions): WxmlToken;
1655
2051
  type ScanWxmlResult = ReturnType<typeof scanWxml>;
1656
2052
  //#endregion
2053
+ //#region src/wxml/processing/registry.d.ts
2054
+ type TemplateDependencies = Map<string, Set<string>>;
2055
+ type ProcessingStage = 'transform' | 'validate';
2056
+ interface WxmlDependencyRegistry {
2057
+ dependencies: Map<string, TemplateDependencies>;
2058
+ pending: Map<symbol, {
2059
+ scope: string;
2060
+ stage: ProcessingStage;
2061
+ templates: TemplateDependencies;
2062
+ }>;
2063
+ failed: Map<string, TemplateDependencies>;
2064
+ references: Map<string, number>;
2065
+ listeners: Set<(files: string[]) => void>;
2066
+ }
2067
+ //#endregion
1657
2068
  //#region src/runtime/autoImport/types.d.ts
1658
2069
  interface LocalAutoImportMatch {
1659
2070
  kind: 'local';
@@ -1695,9 +2106,9 @@ interface LibEntryState {
1695
2106
  relativeBase: string;
1696
2107
  }
1697
2108
  interface RuntimeState {
2109
+ wxmlProcessing: WxmlDependencyRegistry;
1698
2110
  glassEasel: {
1699
- detected: boolean;
1700
- diagnostics: Map<string, GlassEaselDiagnostic>;
2111
+ analysisByOwner: Map<string, GlassEaselAnalysisFact>;
1701
2112
  warnedDiagnostics: Set<string>;
1702
2113
  silent: boolean;
1703
2114
  };
@@ -1738,6 +2149,8 @@ interface RuntimeState {
1738
2149
  npmBuilt: boolean;
1739
2150
  independent: {
1740
2151
  outputs: Map<string, RolldownOutput>;
2152
+ watchFiles: Map<string, Set<string>>;
2153
+ watchListeners: Set<(files: string[]) => void>;
1741
2154
  pendingOutputs: Promise<RolldownOutput>[];
1742
2155
  };
1743
2156
  output: {
@@ -1756,6 +2169,10 @@ interface RuntimeState {
1756
2169
  vueEntryHasTemplate: Map<string, boolean>;
1757
2170
  vueEntrySfcSignatures: Map<string, VueSfcBlockSignatures>;
1758
2171
  vueEntryStyleBindings: Map<string, VueEntryStyleBindings>;
2172
+ /** 编译 provider 内容签名;key 为入口,value 的 key 为 provider 名称。 */
2173
+ vueEntryContentSignatures?: Map<string, Readonly<Record<string, string>>>;
2174
+ vueEntryTemplateContentSignatures?: Map<string, Readonly<Record<string, string>>>;
2175
+ vueEntryScriptContentSignatures?: Map<string, Readonly<Record<string, string>>>;
1759
2176
  vueEntryTailwindContentSignatures: Map<string, string>;
1760
2177
  vueEntryTailwindTemplateContentSignatures: Map<string, string>;
1761
2178
  vueEntryTailwindScriptContentSignatures: Map<string, string>;
@@ -1766,6 +2183,7 @@ interface RuntimeState {
1766
2183
  lastEmittedEntryIds: Set<string>;
1767
2184
  lastEmittedChunkFileNames: Set<string>;
1768
2185
  forceEmitUnchangedChunks: boolean;
2186
+ forceFullSharedChunkRefresh: boolean;
1769
2187
  sharedChunkSourceModuleIds: Set<string>;
1770
2188
  recentProfiles: Array<{
1771
2189
  timestamp?: string;
@@ -1816,6 +2234,12 @@ interface RuntimeState {
1816
2234
  snapshotResolveMs?: number;
1817
2235
  snapshotBuildMs?: number;
1818
2236
  writeMs?: number;
2237
+ finalizePrepareMs?: number;
2238
+ finalizeTemplateMs?: number;
2239
+ finalizePublishMs?: number;
2240
+ publicationValidateMs?: number;
2241
+ publicationIndependentMs?: number;
2242
+ publicationPruneMs?: number;
1819
2243
  watchToDirtyMs?: number;
1820
2244
  emitMs?: number;
1821
2245
  sharedChunkResolveMs?: number;
@@ -1874,6 +2298,12 @@ interface RuntimeState {
1874
2298
  snapshotResolveMs?: number;
1875
2299
  snapshotBuildMs?: number;
1876
2300
  writeMs?: number;
2301
+ finalizePrepareMs?: number;
2302
+ finalizeTemplateMs?: number;
2303
+ finalizePublishMs?: number;
2304
+ publicationValidateMs?: number;
2305
+ publicationIndependentMs?: number;
2306
+ publicationPruneMs?: number;
1877
2307
  watchToDirtyMs?: number;
1878
2308
  emitMs?: number;
1879
2309
  sharedChunkResolveMs?: number;
@@ -1929,7 +2359,7 @@ interface RuntimeState {
1929
2359
  independentSubPackageMap: Map<string, SubPackageMetaValue>;
1930
2360
  warnedMessages: Set<string>;
1931
2361
  appEntry?: AppEntry;
1932
- pluginJson?: Plugin;
2362
+ pluginJson?: Plugin$1;
1933
2363
  pluginJsonPath?: string;
1934
2364
  isDirty: boolean;
1935
2365
  independentDirtyRoots: Set<string>;
@@ -1950,7 +2380,7 @@ interface RuntimeState {
1950
2380
  //#region src/runtime/scanPlugin/service/index.d.ts
1951
2381
  interface ScanService {
1952
2382
  appEntry?: AppEntry;
1953
- pluginJson?: Plugin;
2383
+ pluginJson?: Plugin$1;
1954
2384
  pluginJsonPath?: string;
1955
2385
  readonly mainPackageStyleEntries: StyleEntry[] | undefined;
1956
2386
  subPackageMap: Map<string, SubPackageMetaValue>;
@@ -2057,7 +2487,8 @@ type AutoRoutesFileEvent = ChangeEvent | 'rename';
2057
2487
  //#region src/runtime/autoRoutesPlugin/service.d.ts
2058
2488
  type PageDeclarationSourceResolver = NonNullable<ScanRoutesOptions['resolvePageDeclarationSource']>;
2059
2489
  interface AutoRoutesService {
2060
- ensureFresh: () => Promise<void>;
2490
+ /** 活动构建解析器只参与本次刷新,不替换服务持有的长期解析器。 */
2491
+ ensureFresh: (resolve?: PageDeclarationSourceResolver) => Promise<void>;
2061
2492
  markDirty: () => void;
2062
2493
  getSnapshot: () => AutoRoutes;
2063
2494
  getReference: () => AutoRoutes;
@@ -2072,7 +2503,7 @@ interface AutoRoutesService {
2072
2503
  isPageSource: (filePath: string) => boolean;
2073
2504
  /** 判断文件是否属于逻辑页面声明或其外部脚本依赖。 */
2074
2505
  isPageDeclarationSource: (filePath: string) => boolean;
2075
- /** 注册当前构建上下文已有的模块解析器。 */
2506
+ /** 注册服务持有的长期解析器;构建钩子通过 ensureFresh 参数提供临时解析器。 */
2076
2507
  setPageDeclarationSourceResolver: (resolve?: PageDeclarationSourceResolver) => void;
2077
2508
  handleFileChange: (filePath: string, event?: AutoRoutesFileEvent) => Promise<boolean>;
2078
2509
  isInitialized: () => boolean;
@@ -2156,4 +2587,4 @@ declare module 'vite' {
2156
2587
  */
2157
2588
  declare function defineConfig<T extends UserConfigExport>(config: T): T;
2158
2589
  //#endregion
2159
- export { WeappAnalyzeBudgetConfig as $, applyWeappViteHostMeta as $n, GenerateFileType as $t, Ref as A, StyleConfigObject as An, WeappPreloadRule as At, BindingErrorLike as B, WeappLibDtsOptions as Bn, WeappWebRuntimeConfig as Bt, LoadConfigOptions as C, NpmSubPackageConfig as Cn, WeappInjectRequestGlobalsTarget as Ct, MethodDefinitions$1 as D, SharedChunkOverride as Dn, WeappMcpConfig as Dt, InlineConfig$1 as E, SharedChunkMode as En, WeappInjectWebRuntimeGlobalsTarget as Et, RolldownPlugin as F, SubPackageStyleConfigObject as Fn, WeappRouteRules as Ft, EntryJsonFragment as G, WeappManagedAppTsconfigConfig as Gn, AlipayNpmMode as Gt, BaseEntry as H, WeappLibFileName as Hn, WeappWorkerConfig as Ht, RolldownPluginOption as I, SubPackageStyleEntry as In, WeappSubPackageConfig as It, ScanComponentItem as J, WeappManagedSharedTsconfigConfig as Jn, CopyGlobs as Jt, PageEntry as K, WeappManagedNodeTsconfigConfig as Kn, BuildNpmPackageMeta as Kt, RolldownWatchOptions as L, SubPackageStyleScope as Ln, WeappUniAppConfig as Lt, RolldownBuild as M, StyleScope as Mn, WeappReactConfig as Mt, RolldownOptions as N, SubPackage as Nn, WeappRequestRuntimeConfig as Nt, Plugin$1 as O, SharedChunkStrategy as On, WeappNpmConfig as Ot, RolldownOutput$1 as P, SubPackageStyleConfigEntry as Pn, WeappRouteRule as Pt, UserConfig$2 as Q, WeappViteHostMeta as Qn, GenerateExtensionsOptions as Qt, RolldownWatcher$1 as R, WeappLibComponentJson as Rn, WeappVueConfig as Rt, CompilerContext as S, NpmStrategy as Sn, WeappInjectRequestGlobalsConfig as St, ConfigEnv$1 as T, SharedChunkDynamicImports as Tn, WeappInjectWebRuntimeGlobalsConfig as Tt, ComponentEntry as U, WeappLibInternalDtsOptions as Un, Alias as Ut, AppEntry as V, WeappLibEntryContext as Vn, WeappWevuConfig as Vt, Entry as W, WeappLibVueTscOptions as Wn, AliasOptions as Wt, ProjectConfig as X, WeappWebConfig as Xn, DeprecatedInlineDynamicImports as Xt, WxmlDep as Y, WeappManagedTypeScriptConfig as Yn, CopyOptions as Yt, SubPackageMetaValue as Z, WEAPP_VITE_HOST_NAME as Zn, GenerateDirsOptions as Zt, definePageJson as _, NpmBuildOptions as _n, WeappAutoRoutesInclude as _t, UserConfigFnNoEnvPlain as a, GenerateTemplateFactory as an, WEB_PLATFORM_ALIASES as ar, WeappTailwindcssOptions as at, ChangeEvent as b, NpmPackageFilesConfig as bn, WeappBuildScopeObjectConfig as bt, UserConfigFnPromise as c, GenerateTemplateScope as cn, WeappViteTargetDescriptor as cr, AutoImportComponentsOption as ct, Component$1 as d, JsonConfig as dn, WebPlatform as dr, HandleWxmlOptions as dt, GenerateFilenamesOptions as en, createWeappViteHostMeta as er, WeappAnalyzeConfig as et, Page$1 as f, JsonMergeContext as fn, getSupportedWeappVitePlatforms as fr, MultiPlatformConfig as ft, defineComponentJson as g, MpPlatform$1 as gn, WeappAutoRoutesConfig as gt, defineAppJson as h, JsonMergeStrategy as hn, resolveWeappViteTarget as hr, WeappAppPreludeMode as ht, UserConfigFnNoEnv as i, GenerateTemplateEntry as in, ResolvedWeappViteTarget as ir, WeappForwardConsoleLogLevel as it, ResolvedConfig as j, StyleEntry as jn, WeappReactCompilerConfig as jt, PluginOption as k, StyleConfigEntry as kn, WeappPreloadNetwork as kt, defineConfig as l, GenerateTemplatesConfig as ln, WeappViteTargetInput as lr, EnhanceOptions as lt, Theme$1 as m, JsonMergeStage as mn, isWebPlatform as mr, WeappAppPreludeConfig as mt, UserConfigExport as n, GenerateTemplate as nn, resolveWeappViteHostMeta as nr, WeappDebugConfig as nt, UserConfigFnObject as o, GenerateTemplateFileSource as on, WeappVitePlatform as or, WeappViteConfig as ot, Sitemap$1 as p, JsonMergeFunction as pn, getSupportedWeappViteTargetDescriptors as pr, ScanWxmlOptions as pt, ComponentsMap as q, WeappManagedServerTsconfigConfig as qn, ChunksConfig as qt, UserConfigFn as r, GenerateTemplateContext as rn, ResolveWeappViteTargetOptions as rr, WeappForwardConsoleConfig as rt, UserConfigFnObjectPlain as s, GenerateTemplateInlineSource as sn, WeappViteRuntime as sr, AutoImportComponents as st, UserConfig$1 as t, GenerateOptions as tn, isWeappViteHost as tr, WeappAnalyzeHistoryConfig as tt, App$1 as u, JsFormat as un, WeappViteTargetKind as ur, EnhanceWxmlOptions as ut, defineSitemapJson as v, NpmDependencyPattern as vn, WeappAutoRoutesIncludePattern as vt, ComputedDefinitions$1 as w, ResolvedAlias as wn, WeappInjectWeapiConfig as wt, WeappVitePluginApi as x, NpmPluginPackageConfig as xn, WeappHmrConfig as xt, defineThemeJson as y, NpmMainPackageConfig as yn, WeappBuildScopeConfig as yt, ViteDevServer$1 as z, WeappLibConfig as zn, WeappVueTemplateConfig as zt };
2590
+ export { WeappCompilerHmrRequest as $, NpmMainPackageConfig as $n, WeappSubPackageConfig as $t, PluginOption as A, DeprecatedInlineDynamicImports as An, WeappWebConfig as Ar, ScanWxmlOptions as At, ViteDevServer$1 as B, GenerateTemplateFileSource as Bn, WeappVitePlatform as Br, WeappInjectRequestGlobalsTarget as Bt, GlassEaselAnalyzeResult as C, Alias as Cn, WeappLibInternalDtsOptions as Cr, WeappViteConfig as Ct, InlineConfig$1 as D, ChunksConfig as Dn, WeappManagedServerTsconfigConfig as Dr, EnhanceWxmlOptions as Dt, ConfigEnv$1 as E, BuildNpmPackageMeta as En, WeappManagedNodeTsconfigConfig as Er, EnhanceOptions as Et, RolldownOutput$1 as F, GenerateOptions as Fn, isWeappViteHost as Fr, WeappAutoRoutesIncludePattern as Ft, Entry as G, JsonConfig as Gn, WebPlatform as Gr, WeappNpmConfig as Gt, AppEntry as H, GenerateTemplateScope as Hn, WeappViteTargetDescriptor as Hr, WeappInjectWebRuntimeGlobalsConfig as Ht, RolldownPlugin as I, GenerateTemplate as In, resolveWeappViteHostMeta as Ir, WeappBuildScopeConfig as It, ComponentsMap as J, JsonMergeStage as Jn, isWebPlatform as Jr, WeappReactCompilerConfig as Jt, EntryJsonFragment as K, JsonMergeContext as Kn, getSupportedWeappVitePlatforms as Kr, WeappPreloadNetwork as Kt, RolldownPluginOption as L, GenerateTemplateContext as Ln, ResolveWeappViteTargetOptions as Lr, WeappBuildScopeObjectConfig as Lt, ResolvedConfig$1 as M, GenerateExtensionsOptions as Mn, WeappViteHostMeta as Mr, WeappAppPreludeMode as Mt, RolldownBuild as N, GenerateFileType as Nn, applyWeappViteHostMeta as Nr, WeappAutoRoutesConfig as Nt, MethodDefinitions$1 as O, CopyGlobs as On, WeappManagedSharedTsconfigConfig as Or, HandleWxmlOptions as Ot, RolldownOptions as P, GenerateFilenamesOptions as Pn, createWeappViteHostMeta as Pr, WeappAutoRoutesInclude as Pt, WeappCompilerHmrPreparation as Q, NpmDependencyPattern as Qn, WeappRouteRules as Qt, RolldownWatchOptions as R, GenerateTemplateEntry as Rn, ResolvedWeappViteTarget as Rr, WeappHmrConfig as Rt, CompilerContext as S, MultiPlatformProjectConfigs as Sn, WeappLibFileName as Sr, WeappUploadConfig as St, ComputedDefinitions$1 as T, AlipayNpmMode as Tn, WeappManagedAppTsconfigConfig as Tr, AutoImportComponentsOption as Tt, BaseEntry as U, GenerateTemplatesConfig as Un, WeappViteTargetInput as Ur, WeappInjectWebRuntimeGlobalsTarget as Ut, BindingErrorLike as V, GenerateTemplateInlineSource as Vn, WeappViteRuntime as Vr, WeappInjectWeapiConfig as Vt, ComponentEntry as W, JsFormat as Wn, WeappViteTargetKind as Wr, WeappMcpConfig as Wt, WxmlDep as X, MpPlatform$1 as Xn, WeappRequestRuntimeConfig as Xt, ScanComponentItem as Y, JsonMergeStrategy as Yn, resolveWeappViteTarget as Yr, WeappReactConfig as Yt, WeappCompilerHmrAsset as Z, NpmBuildOptions as Zn, WeappRouteRule as Zt, definePageJson as _, WxmlTransformContext as _n, SubPackageStyleScope as _r, WeappAnalyzeHistoryConfig as _t, UserConfigFnNoEnvPlain as a, WeappWorkerConfig as an, SharedChunkDynamicImports as ar, WeappCompilerPluginFactory as at, ChangeEvent as b, WxmlTransformVisitor as bn, WeappLibDtsOptions as br, WeappForwardConsoleLogLevel as bt, UserConfigFnPromise as c, WxmlValidate as cn, SharedChunkStrategy as cr, WeappCompilerResourceKind as ct, Component$1 as d, WxmlValidationVisitor as dn, StyleEntry as dr, WeappCompilerTransformResult as dt, WeappUniAppConfig as en, NpmPackageFilesConfig as er, WeappCompilerOutputRequest as et, Page$1 as f, WxmlAttribute as fn, StyleScope as fr, ProjectConfig as ft, defineComponentJson as g, WxmlTransform as gn, SubPackageStyleEntry as gr, WeappAnalyzeConfig as gt, defineAppJson as h, WxmlSourceLocation as hn, SubPackageStyleConfigObject as hr, WeappAnalyzeBudgetConfig as ht, UserConfigFnNoEnv as i, WeappWevuConfig as in, ResolvedAlias as ir, WeappCompilerPluginController as it, Ref as j, GenerateDirsOptions as jn, WEAPP_VITE_HOST_NAME as jr, WeappAppPreludeConfig as jt, Plugin$2 as k, CopyOptions as kn, WeappManagedTypeScriptConfig as kr, MultiPlatformConfig as kt, defineConfig as l, WxmlValidationContext as ln, StyleConfigEntry as lr, WeappCompilerSourceClaim as lt, Theme$1 as m, WxmlElementInfo as mn, SubPackageStyleConfigEntry as mr, UserConfig$2 as mt, UserConfigExport as n, WeappVueTemplateConfig as nn, NpmStrategy as nr, WeappCompilerPluginCapabilities as nt, UserConfigFnObject as o, WxmlRemoveAttrRule as on, SharedChunkMode as or, WeappCompilerPluginOption as ot, Sitemap$1 as p, WxmlAttributeValue as pn, SubPackage as pr, SubPackageMetaValue as pt, PageEntry as q, JsonMergeFunction as qn, getSupportedWeappViteTargetDescriptors as qr, WeappPreloadRule as qt, UserConfigFn as r, WeappWebRuntimeConfig as rn, NpmSubPackageConfig as rr, WeappCompilerPluginContext as rt, UserConfigFnObjectPlain as s, WxmlRemoveOptions as sn, SharedChunkOverride as sr, WeappCompilerPluginPhase as st, UserConfig$1 as t, WeappVueConfig as tn, NpmPluginPackageConfig as tr, WeappCompilerPlugin as tt, App$1 as u, WxmlValidationDiagnostic as un, StyleConfigObject as ur, WeappCompilerSourceRequest as ut, defineSitemapJson as v, WxmlTransformNode as vn, WeappLibComponentJson as vr, WeappDebugConfig as vt, LoadConfigOptions as w, AliasOptions as wn, WeappLibVueTscOptions as wr, AutoImportComponents as wt, WeappVitePluginApi as x, MultiPlatformProjectConfig as xn, WeappLibEntryContext as xr, WeappTailwindcssOptions as xt, defineThemeJson as y, WxmlTransformResult as yn, WeappLibConfig as yr, WeappForwardConsoleConfig as yt, RolldownWatcher$1 as z, GenerateTemplateFactory as zn, WEB_PLATFORM_ALIASES as zr, WeappInjectRequestGlobalsConfig as zt };
package/dist/config.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $n as applyWeappViteHostMeta, Qn as WeappViteHostMeta, Zn as WEAPP_VITE_HOST_NAME, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, er as createWeappViteHostMeta, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, nr as resolveWeappViteHostMeta, o as UserConfigFnObject, ot as WeappViteConfig, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, sr as WeappViteRuntime, t as UserConfig, tr as isWeappViteHost, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-JdEU9lCP.mjs";
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-Dbvj5yK7.mjs";
2
2
  import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
3
- export { type App, type Component, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
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 };