weapp-vite 7.3.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +154 -6
  2. package/bin/bootstrap.js +14 -1
  3. package/dist/adapters-CcHrsYaj.mjs +1 -0
  4. package/dist/analyze-ZJUvEdaY.mjs +248 -0
  5. package/dist/auto-import-components/resolvers.mjs +1 -2
  6. package/dist/auto-import-presets/wevu-router.mjs +1 -2
  7. package/dist/auto-import-presets/wevu.mjs +1 -2
  8. package/dist/auto-routes.mjs +2 -1
  9. package/dist/budget-BD7VqLCl.d.mts +178 -0
  10. package/dist/chunkStrategy-DRA5WpB-.mjs +1436 -0
  11. package/dist/cli-acceptance.d.mts +1 -0
  12. package/dist/cli-acceptance.mjs +21 -0
  13. package/dist/cli.mjs +1918 -2089
  14. package/dist/compatibility.mjs +1 -2
  15. package/dist/{config-1J4rToMR.d.mts → config-V0L-IAJf.d.mts} +419 -39
  16. package/dist/config.d.mts +2 -2
  17. package/dist/config.mjs +1 -1
  18. package/dist/constants-DEZdcsMn.mjs +85 -0
  19. package/dist/{createContext-cqr9Y4EV.mjs → createCompilerContextInstance-DJH_P_nZ.mjs} +17602 -15886
  20. package/dist/createContext-BqYzHhY9.mjs +12 -0
  21. package/dist/dashboard/analyze.d.mts +48 -0
  22. package/dist/dashboard/analyze.mjs +1 -0
  23. package/dist/dashboard/vite.d.mts +9 -0
  24. package/dist/dashboard/vite.mjs +44 -0
  25. package/dist/dashboard-DvqF3Key.mjs +1842 -0
  26. package/dist/dashboard.d.mts +3 -0
  27. package/dist/dashboard.mjs +1 -0
  28. package/dist/dashboardViteBridge-Dy3nAD4m.mjs +299 -0
  29. package/dist/dev-fR5GiJRO.mjs +63 -0
  30. package/dist/devProvider-BGBkw28J.mjs +1050 -0
  31. package/dist/docs/README.md +154 -6
  32. package/dist/docs/ai-workflows.md +4 -0
  33. package/dist/docs/doctor.md +38 -0
  34. package/dist/docs/getting-started.md +52 -1
  35. package/dist/docs/index.md +6 -2
  36. package/dist/docs/mcp.md +94 -1
  37. package/dist/docs/testing.md +29 -2
  38. package/dist/docs/troubleshooting.md +8 -0
  39. package/dist/docs/uni-app-component-libraries.md +8 -7
  40. package/dist/docs/upload.md +226 -0
  41. package/dist/docs/vite-plugin.md +171 -0
  42. package/dist/docs/vue-sfc.md +19 -0
  43. package/dist/docs/weapp-config.md +374 -2
  44. package/dist/docs/wevu-authoring.md +10 -0
  45. package/dist/doctor-worker.d.mts +1 -0
  46. package/dist/doctor-worker.mjs +59 -0
  47. package/dist/doctor.d.mts +144 -0
  48. package/dist/doctor.mjs +848 -0
  49. package/dist/eslint.mjs +1 -2
  50. package/dist/file-DRb4eWqw.mjs +1 -0
  51. package/dist/{file-CKB0Tn8Z.mjs → file-sC3jD7Fh.mjs} +16 -93
  52. package/dist/files-BqxFIPRp.mjs +45 -0
  53. package/dist/getInstance-DiGSzBNI.mjs +28 -0
  54. package/dist/getInstance-SiE6WZRh.mjs +1 -0
  55. package/dist/index-C9HjUX5c.d.mts +741 -0
  56. package/dist/index.d.mts +10 -8
  57. package/dist/index.mjs +3 -2
  58. package/dist/json.d.mts +1 -1
  59. package/dist/json.mjs +1 -2
  60. package/dist/lifecycle-BROTlwSL.mjs +320 -0
  61. package/dist/loadConfig-C3BQhz7F.mjs +59 -0
  62. package/dist/loadConfig-VGtBF4qm.mjs +1 -0
  63. package/dist/logger-DGn5iEVN.mjs +1 -0
  64. package/dist/{mcp-BG6TliEg.mjs → mcp-Cj8Maqo6.mjs} +16 -7
  65. package/dist/mcp-D3Yh24Cj.mjs +529 -0
  66. package/dist/mcp.d.mts +6 -3
  67. package/dist/mcp.mjs +1 -2
  68. package/dist/package-7swhyLmf.mjs +91 -0
  69. package/dist/path-doV773b7.mjs +103 -0
  70. package/dist/platform-CnkySBKz.mjs +175 -0
  71. package/dist/processCleanup-B6KA30Zc.mjs +77 -0
  72. package/dist/protocol-vg8HGJ4n.mjs +138 -0
  73. package/dist/{resolvers-icNxkpcy.mjs → resolvers-Dod-euqX.mjs} +4 -1
  74. package/dist/resolvers.mjs +1 -2
  75. package/dist/runtime.mjs +1 -2
  76. package/dist/session-PskhD-nZ.mjs +390 -0
  77. package/dist/test.d.mts +1 -0
  78. package/dist/test.mjs +201 -44
  79. package/dist/types.d.mts +2 -2
  80. package/dist/upload-D4msblBf.mjs +562 -0
  81. package/dist/upload-worker.d.mts +1 -0
  82. package/dist/upload-worker.mjs +161 -0
  83. package/dist/utils-CJSCgEj6.mjs +1094 -0
  84. package/dist/vite.d.mts +9 -0
  85. package/dist/vite.mjs +270 -0
  86. package/dist/volar.d.mts +2 -2
  87. package/dist/web-apis.mjs +1 -2
  88. package/package.json +85 -37
  89. package/dist/file-CvgkbGIx.mjs +0 -2
  90. package/dist/getInstance-CZ1s63zd.mjs +0 -2
  91. package/dist/logger-mt4mSTqV.mjs +0 -2
@@ -6,23 +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";
10
- import { ConfigEnv, ConfigEnv as ConfigEnv$1, InlineConfig, InlineConfig as InlineConfig$1, Plugin as Plugin$1, PluginOption, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, UserConfig, ViteDevServer, ViteDevServer as ViteDevServer$1, build } from "vite";
9
+ import { ComponentStyleOptions, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
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, OutputBundle, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
14
- import { Options } from "rolldown-plugin-dts";
13
+ import { HmrCompilerAsset as WeappCompilerHmrAsset, HmrCompilerPreparation, HmrCompilerPreparation as WeappCompilerHmrPreparation, HmrCompilerRequest, HmrCompilerRequest as WeappCompilerHmrRequest } from "@weapp-vite/hmr";
15
14
  import PQueue from "p-queue";
16
15
  import { Buffer } from "node:buffer";
17
- import { PluginOptions } from "vite-tsconfig-paths";
18
16
  import { WrapPluginOptions } from "vite-plugin-performance";
17
+ import { Options } from "rolldown-plugin-dts";
19
18
  import { ComputedDefinitions as ComputedDefinitions$1, MethodDefinitions as MethodDefinitions$1, PageLayoutMeta, Ref, WevuDefaults } from "wevu";
20
19
  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";
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";
22
22
  import { WeappWebPluginOptions } from "@weapp-vite/web/plugin";
23
23
  import { CompilerOptions } from "typescript";
24
24
  import { CreateCompilerOptions } from "weapp-tailwindcss/core";
25
25
  import { UserDefinedOptions } from "weapp-tailwindcss/types";
26
+ import { PluginOptions } from "vite-tsconfig-paths";
26
27
  import { DetectResult } from "package-manager-detector";
27
28
  //#region src/runtimeTarget.d.ts
28
29
  type WebPlatform = 'web';
@@ -337,22 +338,6 @@ interface SharedChunkOverride {
337
338
  test: string | RegExp;
338
339
  mode: SharedChunkMode;
339
340
  }
340
- type JsonMergeStage = 'defaults' | 'json-block' | 'auto-using-components' | 'component-generics' | 'macro' | 'emit' | 'merge-existing';
341
- interface JsonMergeContext {
342
- filename?: string;
343
- kind?: 'app' | 'page' | 'component' | 'unknown';
344
- stage: JsonMergeStage;
345
- }
346
- type JsonMergeFunction = (target: Record<string, any>, source: Record<string, any>, context: JsonMergeContext) => Record<string, any> | void;
347
- type JsonMergeStrategy = 'deep' | 'assign' | 'replace' | JsonMergeFunction;
348
- interface JsonConfig {
349
- defaults?: {
350
- app?: Record<string, any>;
351
- page?: Record<string, any>;
352
- component?: Record<string, any>;
353
- };
354
- mergeStrategy?: JsonMergeStrategy;
355
- }
356
341
  interface ChunksConfig {
357
342
  sharedStrategy?: SharedChunkStrategy;
358
343
  sharedMode?: SharedChunkMode;
@@ -368,6 +353,241 @@ interface ChunksConfig {
368
353
  duplicateWarningBytes?: number;
369
354
  }
370
355
  //#endregion
356
+ //#region src/types/config/projectConfig.d.ts
357
+ /** 保留原生工具新增字段,已声明字段仍提供类型检查与补全。 */
358
+ interface NativeOptions {
359
+ [key: string]: unknown;
360
+ }
361
+ /** 内联配置的公共入口;平台字段由 `MultiPlatformProjectConfigs` 按平台提供。 */
362
+ interface MultiPlatformProjectConfig extends NativeOptions {
363
+ appid?: string;
364
+ appId?: string;
365
+ /** 代码输出目录由构建器管理,请使用 `build.outDir`。 */
366
+ miniprogramRoot?: never;
367
+ srcMiniprogramRoot?: never;
368
+ smartProgramRoot?: never;
369
+ }
370
+ interface PackRule<ExtraType extends string = never> extends NativeOptions {
371
+ type?: 'file' | 'folder' | 'suffix' | 'prefix' | 'regexp' | ExtraType | (string & {});
372
+ value?: string;
373
+ }
374
+ interface PackOptions<ExtraType extends string = never> extends NativeOptions {
375
+ ignore?: PackRule<ExtraType>[];
376
+ include?: PackRule<ExtraType>[];
377
+ }
378
+ /**
379
+ * 微信开发者工具配置;不替代 Vite 的构建设置。
380
+ * @see https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html
381
+ */
382
+ interface WeappProjectConfig extends MultiPlatformProjectConfig {
383
+ projectname?: string;
384
+ description?: string;
385
+ compileType?: 'miniprogram' | 'plugin' | (string & {});
386
+ libVersion?: 'latest' | 'trial' | 'widelyUsed' | (string & {});
387
+ packOptions?: PackOptions;
388
+ setting?: NativeOptions & {
389
+ es6?: boolean;
390
+ enhance?: boolean;
391
+ postcss?: boolean;
392
+ minified?: boolean;
393
+ minifyWXSS?: boolean;
394
+ minifyWXML?: boolean;
395
+ urlCheck?: boolean;
396
+ compileHotReLoad?: boolean;
397
+ ignoreUploadUnusedFiles?: boolean;
398
+ packNpmManually?: boolean;
399
+ uploadWithSourceMap?: boolean;
400
+ useCompilerPlugins?: string[] | false;
401
+ babelSetting?: NativeOptions & {
402
+ ignore?: string[];
403
+ outputPath?: string;
404
+ };
405
+ };
406
+ }
407
+ /**
408
+ * 支付宝 format 2 项目配置;编译选项属于 `compileOptions`,而非微信的 `setting`。
409
+ * @see https://opendocs.alipay.com/mini/03dbc3
410
+ */
411
+ interface AlipayProjectConfig extends MultiPlatformProjectConfig {
412
+ format?: number;
413
+ compileType?: 'mini' | 'plugin' | (string & {});
414
+ uploadExclude?: string[];
415
+ assetsInclude?: string[];
416
+ compileOptions?: NativeOptions & {
417
+ component2?: boolean;
418
+ typescript?: boolean;
419
+ less?: boolean;
420
+ treeShaking?: boolean;
421
+ resolveAlias?: Record<string, string>;
422
+ globalObjectMode?: 'legacy' | 'enable' | 'fake' | (string & {});
423
+ transpile?: NativeOptions & {
424
+ script?: NativeOptions & {
425
+ ignore?: string[];
426
+ };
427
+ };
428
+ };
429
+ developOptions?: NativeOptions & {
430
+ hotReload?: boolean;
431
+ parallel?: boolean;
432
+ sourcemap?: boolean;
433
+ minify?: boolean;
434
+ skipTranspile?: boolean;
435
+ lazyCompile?: boolean;
436
+ };
437
+ scripts?: NativeOptions & {
438
+ watch?: string;
439
+ beforeCompile?: string;
440
+ beforePreview?: string;
441
+ beforeUpload?: string;
442
+ };
443
+ }
444
+ /**
445
+ * 抖音开发者工具配置,保留平台自己的字段名称和类型。
446
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration
447
+ */
448
+ interface TtProjectConfig extends MultiPlatformProjectConfig {
449
+ projectname?: string;
450
+ disablePrivate?: boolean;
451
+ packOptions?: PackOptions<'glob'>;
452
+ setting?: NativeOptions & {
453
+ es6?: boolean;
454
+ urlCheck?: boolean;
455
+ autoCompile?: boolean;
456
+ mockUpdate?: boolean;
457
+ scripts?: boolean;
458
+ mockLogin?: boolean;
459
+ compileHotReLoad?: boolean;
460
+ nativeCompile?: boolean;
461
+ IDEPreviewHotRestartCache?: boolean;
462
+ bigPackageSizeSupport?: boolean;
463
+ webDetect?: boolean;
464
+ useCompilerPlugins?: string[];
465
+ };
466
+ }
467
+ /**
468
+ * 小红书公开 SDK 默认配置中的稳定字段;未列出的原生字段仍可透传。
469
+ * @see https://unpkg.com/xhs-mp-project@2.1.6/dist/index.js
470
+ */
471
+ interface XhsProjectConfig extends MultiPlatformProjectConfig {
472
+ projectname?: string;
473
+ description?: string;
474
+ compileType?: 'miniprogram' | (string & {});
475
+ libVersion?: 'latest' | (string & {});
476
+ setting?: NativeOptions & {
477
+ minified?: boolean;
478
+ urlCheck?: boolean;
479
+ };
480
+ }
481
+ /**
482
+ * 百度智能小程序配置;编译参数属于 `compilation-args.common`。
483
+ * @see https://unpkg.com/swan-toolkit@3.23.1-beta.1/sdk/program/sdk-impl/compile-impl.js
484
+ */
485
+ interface SwanProjectConfig extends MultiPlatformProjectConfig {
486
+ 'compileType'?: string;
487
+ 'developType'?: string;
488
+ 'setting'?: NativeOptions & {
489
+ urlCheck?: boolean;
490
+ };
491
+ 'compilation-args'?: NativeOptions & {
492
+ common?: NativeOptions & {
493
+ ignoreTransJs?: boolean;
494
+ ignorePrefixCss?: boolean;
495
+ };
496
+ };
497
+ }
498
+ /** 六端内联配置映射;按平台补全原生字段,同时允许原生扩展字段。 */
499
+ interface MultiPlatformProjectConfigs {
500
+ /** 微信:生成 `project.config.json`。 */
501
+ weapp?: WeappProjectConfig;
502
+ /** 支付宝:生成 `mini.project.json`。 */
503
+ alipay?: AlipayProjectConfig;
504
+ /** 抖音:生成 `project.config.json`。 */
505
+ tt?: TtProjectConfig;
506
+ /** 小红书:生成 `project.config.json`。 */
507
+ xhs?: XhsProjectConfig;
508
+ /** 京东:生成 `project.config.json`;未建立原生设置 schema 的字段保持透传。 */
509
+ jd?: MultiPlatformProjectConfig;
510
+ /** 百度:生成 `project.swan.json`。 */
511
+ swan?: SwanProjectConfig;
512
+ }
513
+ //#endregion
514
+ //#region src/types/config/wxmlTransform.d.ts
515
+ /** 模板属性的新值;字符串为字面量,表达式只生成绑定而不在构建端求值。 */
516
+ type WxmlAttributeValue = string | number | boolean | {
517
+ expression: string;
518
+ };
519
+ /** 源码位置使用从零开始的偏移及从一开始的行列。 */
520
+ interface WxmlSourceLocation {
521
+ readonly offset: number;
522
+ readonly line: number;
523
+ readonly column: number;
524
+ }
525
+ /** 原始属性内容不解码、不求值;无值属性的 rawValue 为 null。 */
526
+ interface WxmlAttribute {
527
+ readonly name: string;
528
+ readonly rawValue: string | null;
529
+ readonly quote: string | undefined;
530
+ }
531
+ /** 父节点只提供观察接口,不允许通过子节点改写父树。 */
532
+ interface WxmlElementInfo {
533
+ /** 当前未删除的直接子标签;不包含文本、注释或脚本模块内容。 */
534
+ readonly children: readonly WxmlElementInfo[];
535
+ readonly tagName: string;
536
+ readonly attributes: readonly WxmlAttribute[];
537
+ readonly parent: WxmlElementInfo | undefined;
538
+ readonly location: WxmlSourceLocation;
539
+ hasAttribute: (name: string) => boolean;
540
+ getAttribute: (name: string) => WxmlAttribute | undefined;
541
+ }
542
+ /** 当前节点的编辑句柄仅在本次 edit 调用中有效。 */
543
+ interface WxmlTransformNode extends WxmlElementInfo {
544
+ readonly children: readonly WxmlTransformNode[];
545
+ /** 按源码深度优先顺序遍历后代,不含自身;必须等待完成。 */
546
+ walk: (visitor: WxmlTransformVisitor) => Promise<void>;
547
+ /** 只跳过当前回调所属遍历的后代,不改变其他遍历。 */
548
+ skipChildren: () => void;
549
+ setAttribute: (name: string, value: WxmlAttributeValue) => void;
550
+ setBooleanAttribute: (name: string) => void;
551
+ renameAttribute: (from: string, to: string) => void;
552
+ removeAttribute: (name: string) => void;
553
+ renameTag: (name: string) => void;
554
+ remove: () => void;
555
+ }
556
+ type WxmlTransformVisitor = (node: WxmlTransformNode) => void | Promise<void>;
557
+ type WxmlTransformResult = string | null | void;
558
+ /** 函数接收当前平台的输出模板;源码阶段依赖由原有组件配置负责。 */
559
+ interface WxmlTransformContext {
560
+ readonly fileName: string;
561
+ readonly root: string;
562
+ readonly platform: MpPlatform$1;
563
+ readonly mode: string;
564
+ readonly isDev: boolean;
565
+ readonly subPackageRoot: string | undefined;
566
+ edit: (code: string, visitor: WxmlTransformVisitor) => Promise<string>;
567
+ addWatchFile: (file: string) => void;
568
+ warn: (message: string) => void;
569
+ error: (message: string) => never;
570
+ }
571
+ type WxmlTransform = (code: string, context: WxmlTransformContext) => WxmlTransformResult | Promise<WxmlTransformResult>;
572
+ //#endregion
573
+ //#region src/types/config/wxmlValidate.d.ts
574
+ /** 诊断位置对应最终输出模板;不映射回 Vue 等源文件。 */
575
+ interface WxmlValidationDiagnostic {
576
+ severity: 'warning' | 'error';
577
+ code?: string;
578
+ message: string;
579
+ location?: WxmlSourceLocation;
580
+ }
581
+ /** 校验只观察模板,不能通过节点改写产物。 */
582
+ type WxmlValidationVisitor = (node: WxmlElementInfo) => void | Promise<void>;
583
+ /** 所有回调观察同一份完成输出转换的模板。 */
584
+ interface WxmlValidationContext extends Pick<WxmlTransformContext, 'fileName' | 'root' | 'platform' | 'mode' | 'isDev' | 'subPackageRoot' | 'addWatchFile'> {
585
+ walk: (visitor: WxmlValidationVisitor) => Promise<void>;
586
+ report: (diagnostic: WxmlValidationDiagnostic) => void;
587
+ }
588
+ /** 返回值不用于转换;非 undefined 返回值会作为配置错误报告。 */
589
+ type WxmlValidate = (code: string, context: WxmlValidationContext) => void | Promise<void>;
590
+ //#endregion
371
591
  //#region src/types/config/features.d.ts
372
592
  /**
373
593
  * @description 自动导入组件配置
@@ -412,7 +632,27 @@ interface WeappUniAppConfig {
412
632
  */
413
633
  include: string[];
414
634
  }
415
- type EnhanceWxmlOptions = ScanWxmlOptions & HandleWxmlOptions;
635
+ /** 最终模板中的标签限定属性删除规则,名称区分大小写并支持 `*`。 */
636
+ interface WxmlRemoveAttrRule {
637
+ tag: string | string[];
638
+ name: string | string[];
639
+ }
640
+ /** 最终模板的可选清理;对象形式只执行显式配置,不叠加预设。 */
641
+ interface WxmlRemoveOptions {
642
+ attr?: Array<string | WxmlRemoveAttrRule>;
643
+ tag?: string[];
644
+ comment?: boolean;
645
+ }
646
+ type EnhanceWxmlOptions = ScanWxmlOptions & Omit<HandleWxmlOptions, 'removeComment'> & {
647
+ /** @deprecated 仅保留类型兼容,未接入编译流程;请使用 `weapp.wxml.remove.comment`。 */
648
+ removeComment?: boolean;
649
+ /** `true` 删除四种测试属性及普通注释;环境由用户配置控制。 */
650
+ remove?: boolean | WxmlRemoveOptions;
651
+ /** 在最终模板清理前按顺序执行同步或异步转换。 */
652
+ transform?: WxmlTransform | WxmlTransform[];
653
+ /** 在输出插件处理后、HMR 比较及发布前检查最终模板。 */
654
+ validate?: WxmlValidate | WxmlValidate[];
655
+ };
416
656
  /**
417
657
  * @description WXML 扫描阶段配置
418
658
  */
@@ -447,7 +687,11 @@ interface MultiPlatformConfig {
447
687
  enabled?: boolean;
448
688
  projectConfigRoot?: string;
449
689
  /**
450
- * @description 多平台模式下允许参与构建/开发的目标平台集合
690
+ * @description 各平台的原生项目配置;不可与 `projectConfigRoot` 同时设置。
691
+ */
692
+ projectConfigs?: MultiPlatformProjectConfigs;
693
+ /**
694
+ * @description 多平台模式下允许参与构建/开发的目标平台集合;省略时从 `projectConfigs` 的平台键推断。
451
695
  */
452
696
  targets?: 'all' | readonly MpPlatform$1[];
453
697
  }
@@ -484,6 +728,8 @@ interface WeappAutoRoutesConfig {
484
728
  * @remarks 默认会扫描主包 `pages/**`,以及已声明分包 root 下的 `pages/**`
485
729
  */
486
730
  include?: WeappAutoRoutesInclude;
731
+ /** 页面入口扩展名(可带前导点);未设置或为空时沿用默认解析。 */
732
+ extensions?: string[];
487
733
  /**
488
734
  * @description 是否启用自动路由持久化缓存,或指定自定义缓存文件路径
489
735
  * @default false
@@ -573,7 +819,7 @@ interface WeappNpmConfig {
573
819
  subPackages?: Record<string, NpmSubPackageConfig>;
574
820
  /** 按包名限制原生小程序 npm 包复制到产物中的文件 */
575
821
  packageFiles?: Record<string, NpmPackageFilesConfig>;
576
- buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | undefined;
822
+ buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | false | undefined;
577
823
  alipayNpmMode?: AlipayNpmMode;
578
824
  }
579
825
  /**
@@ -618,6 +864,7 @@ interface WeappWorkerConfig {
618
864
  * @description Vue 模板编译配置
619
865
  */
620
866
  interface WeappVueTemplateConfig {
867
+ /** @deprecated 仅保留类型兼容,未接入编译流程;请使用 `weapp.wxml.remove.comment`。 */
621
868
  removeComments?: boolean;
622
869
  simplifyWhitespace?: boolean;
623
870
  formatWxml?: boolean | 'auto';
@@ -695,6 +942,13 @@ interface WeappRouteRule {
695
942
  }
696
943
  type WeappRouteRules = Record<string, WeappRouteRule>;
697
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
698
952
  //#region src/types/config/main.d.ts
699
953
  type WeappTailwindcssOptions = UserDefinedOptions & Pick<CreateCompilerOptions, 'compiler'>;
700
954
  /**
@@ -763,6 +1017,10 @@ interface WeappAnalyzeBudgetConfig {
763
1017
  * 独立分包预算阈值(字节)。
764
1018
  */
765
1019
  independentBytes?: number;
1020
+ /** 包含已识别 runtime 模块的文件字节上界预算,包含混合 chunk 的业务部分。 */
1021
+ runtimeBytes?: number;
1022
+ /** 按分包 root 覆盖单包预算;主包使用 __main__。 */
1023
+ packageBytes?: Record<string, number>;
766
1024
  /**
767
1025
  * 预算预警比例,默认 0.85。
768
1026
  */
@@ -798,6 +1056,19 @@ interface WeappAnalyzeConfig {
798
1056
  */
799
1057
  history?: boolean | WeappAnalyzeHistoryConfig;
800
1058
  }
1059
+ /**
1060
+ * @description 显式执行 build --upload 或 upload 命令时使用的默认参数,不会触发自动上传。
1061
+ */
1062
+ interface WeappUploadConfig {
1063
+ /**
1064
+ * 上传版本;CLI --uv 优先,未配置时读取 package.json.version。
1065
+ */
1066
+ version?: string;
1067
+ /**
1068
+ * 上传说明;CLI --desc 优先,未配置时使用项目名称与版本。
1069
+ */
1070
+ desc?: string;
1071
+ }
801
1072
  /**
802
1073
  * @description weapp-vite 主配置
803
1074
  */
@@ -853,6 +1124,11 @@ interface WeappViteConfig {
853
1124
  * analyze 报告配置。
854
1125
  */
855
1126
  analyze?: WeappAnalyzeConfig;
1127
+ /**
1128
+ * 上传默认参数。仅在显式执行 build --upload 或 upload 且构建与产物校验成功后上传;
1129
+ * 普通 build、dev/HMR、preview 和上传 dry-run 不触发上传。
1130
+ */
1131
+ upload?: WeappUploadConfig;
856
1132
  /**
857
1133
  * 局部构建范围。默认不启用,启用后只构建主包和指定分包。
858
1134
  */
@@ -860,7 +1136,7 @@ interface WeappViteConfig {
860
1136
  jsonAlias?: AliasOptions | false;
861
1137
  npm?: WeappNpmConfig;
862
1138
  generate?: GenerateOptions;
863
- tsconfigPaths?: boolean | PluginOptions;
1139
+ tsconfigPaths?: boolean | TsconfigPathsOptions;
864
1140
  /**
865
1141
  * 主包共享样式入口。生成独立样式文件,并按配置注入主包与普通分包页面或组件。
866
1142
  */
@@ -871,7 +1147,7 @@ interface WeappViteConfig {
871
1147
  typescript?: WeappManagedTypeScriptConfig;
872
1148
  lib?: WeappLibConfig;
873
1149
  isAdditionalWxml?: (wxmlFilePath: string) => boolean;
874
- platform?: MpPlatform$1;
1150
+ platform?: MpPlatform$1 | 'web';
875
1151
  multiPlatform?: boolean | MultiPlatformConfig;
876
1152
  jsFormat?: JsFormat;
877
1153
  /**
@@ -984,6 +1260,8 @@ interface WeappCompilerOutputRequest {
984
1260
  state?: unknown;
985
1261
  }
986
1262
  interface WeappCompilerPluginController {
1263
+ /** 同批次资产与脚本必须使用此调用持有的固定状态。 */
1264
+ prepareHmr?: (request: HmrCompilerRequest) => HmrCompilerPreparation | Promise<HmrCompilerPreparation>;
987
1265
  buildStart?: () => void | Promise<void>;
988
1266
  claimSource?: (request: WeappCompilerSourceRequest) => boolean | WeappCompilerSourceClaim | Promise<boolean | WeappCompilerSourceClaim | null> | null;
989
1267
  transformSource?: (request: WeappCompilerSourceRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
@@ -1030,6 +1308,8 @@ interface BaseEntry {
1030
1308
  path: string;
1031
1309
  jsonPath?: string;
1032
1310
  json?: object;
1311
+ /** 自动导入增强前的入口声明,供逻辑入口建立稳定的配置依赖。 */
1312
+ declaredJson?: object;
1033
1313
  type: 'app' | 'page' | 'component' | (string & {});
1034
1314
  }
1035
1315
  type Entry = AppEntry | PageEntry | ComponentEntry;
@@ -1111,12 +1391,19 @@ interface DevModuleGraph {
1111
1391
  idToModuleMap?: Map<string, DevModuleNode>;
1112
1392
  invalidateModule(module: DevModuleNode): void;
1113
1393
  }
1394
+ interface DevResolverContainer {
1395
+ resolveId: (source: string, importer?: string) => Promise<{
1396
+ id: string;
1397
+ } | null>;
1398
+ }
1114
1399
  interface DevServerGraphHost {
1115
1400
  environments?: {
1116
1401
  client?: {
1117
1402
  bundledDev?: unknown;
1403
+ pluginContainer?: DevResolverContainer;
1118
1404
  };
1119
1405
  };
1406
+ pluginContainer?: DevResolverContainer;
1120
1407
  moduleGraph: DevModuleGraph;
1121
1408
  transformRequest?: (url: string) => Promise<unknown>;
1122
1409
  }
@@ -1161,6 +1448,8 @@ interface ModuleGraphService {
1161
1448
  id: string;
1162
1449
  } | null>;
1163
1450
  syncDevGraph: (context: BuildGraphContext) => Promise<void>;
1451
+ getTransformDependencies: (sourceId: string) => readonly string[];
1452
+ replaceTransformDependencies: (sourceId: string, dependencies: Iterable<string>) => void;
1164
1453
  getEntryDependencies: (ownerId: string) => Array<{
1165
1454
  kind: SidecarModuleKind;
1166
1455
  sourceId: string;
@@ -1481,6 +1770,7 @@ interface ResolvedMultiPlatformConfig {
1481
1770
  enabled: boolean;
1482
1771
  projectConfigRoot: string;
1483
1772
  targets: readonly MpPlatform$1[];
1773
+ projectConfigs?: MultiPlatformProjectConfigs;
1484
1774
  }
1485
1775
  //#endregion
1486
1776
  //#region src/utils/json.d.ts
@@ -1501,6 +1791,12 @@ interface LoadConfigOptions {
1501
1791
  emitDefaultAutoImportOutputs?: boolean;
1502
1792
  outputRoot?: string;
1503
1793
  pluginOnly?: boolean;
1794
+ /** 宿主已执行的配置;存在时跳过 vite/weapp-vite 配置文件发现与加载。 */
1795
+ hostConfig?: {
1796
+ config: InlineConfig;
1797
+ path?: string;
1798
+ dependencies?: string[];
1799
+ };
1504
1800
  inlineConfig?: InlineConfig;
1505
1801
  configFile?: string;
1506
1802
  configLoader?: ViteConfigLoader;
@@ -1509,6 +1805,8 @@ interface LoadConfigOptions {
1509
1805
  }
1510
1806
  interface LoadConfigResult {
1511
1807
  loadOptions: LoadConfigOptions;
1808
+ /** 本次加载的用户配置,供隔离子会话重新归一化,避免重复执行配置文件。 */
1809
+ sourceConfig?: InlineConfig;
1512
1810
  config: InlineConfig;
1513
1811
  aliasEntries: ResolvedAlias[];
1514
1812
  outputExtensions: OutputExtensions;
@@ -1648,6 +1946,31 @@ interface JsonService {
1648
1946
  cache: FileCache<any>;
1649
1947
  }
1650
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
1651
1974
  //#region src/runtime/npmPlugin/service/types.d.ts
1652
1975
  interface NpmService {
1653
1976
  getDependenciesCacheFilePath: (key?: string) => string;
@@ -1668,12 +1991,7 @@ interface NpmService {
1668
1991
  to: string;
1669
1992
  name: string;
1670
1993
  }) => Promise<void>;
1671
- buildPackage: (args: {
1672
- dep: string;
1673
- outDir: string;
1674
- options?: NpmBuildOptions;
1675
- isDependenciesCacheOutdate: boolean;
1676
- }) => Promise<void>;
1994
+ buildPackage: PackageBuilder['buildPackage'];
1677
1995
  getPackNpmRelationList: () => {
1678
1996
  packageJsonPath: string;
1679
1997
  miniprogramNpmDistDir: string;
@@ -1701,6 +2019,16 @@ interface GlassEaselAnalysisFact {
1701
2019
  diagnostics: Map<string, GlassEaselDiagnostic>;
1702
2020
  sourceIds: Set<string>;
1703
2021
  }
2022
+ interface GlassEaselAnalyzeResult {
2023
+ detected: boolean;
2024
+ minimumBaseLibrary: '3.8.12';
2025
+ migrationGuide: string;
2026
+ diagnostics: GlassEaselDiagnostic[];
2027
+ summary: {
2028
+ errors: number;
2029
+ warnings: number;
2030
+ };
2031
+ }
1704
2032
  interface GlassEaselTemplateFinding {
1705
2033
  code: Extract<GlassEaselDiagnosticCode, 'GE002' | 'GE003' | 'GE004'>;
1706
2034
  severity: GlassEaselDiagnosticSeverity;
@@ -1709,6 +2037,21 @@ interface GlassEaselTemplateFinding {
1709
2037
  normalized?: boolean;
1710
2038
  }
1711
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
1712
2055
  //#region src/wxml/shared.d.ts
1713
2056
  interface Token {
1714
2057
  start: number;
@@ -1758,6 +2101,21 @@ interface WxmlToken {
1758
2101
  declare function scanWxml(wxml: string | Buffer, options?: ScanWxmlOptions): WxmlToken;
1759
2102
  type ScanWxmlResult = ReturnType<typeof scanWxml>;
1760
2103
  //#endregion
2104
+ //#region src/wxml/processing/registry.d.ts
2105
+ type TemplateDependencies = Map<string, Set<string>>;
2106
+ type ProcessingStage = 'transform' | 'validate';
2107
+ interface WxmlDependencyRegistry {
2108
+ dependencies: Map<string, TemplateDependencies>;
2109
+ pending: Map<symbol, {
2110
+ scope: string;
2111
+ stage: ProcessingStage;
2112
+ templates: TemplateDependencies;
2113
+ }>;
2114
+ failed: Map<string, TemplateDependencies>;
2115
+ references: Map<string, number>;
2116
+ listeners: Set<(files: string[]) => void>;
2117
+ }
2118
+ //#endregion
1761
2119
  //#region src/runtime/autoImport/types.d.ts
1762
2120
  interface LocalAutoImportMatch {
1763
2121
  kind: 'local';
@@ -1799,6 +2157,7 @@ interface LibEntryState {
1799
2157
  relativeBase: string;
1800
2158
  }
1801
2159
  interface RuntimeState {
2160
+ wxmlProcessing: WxmlDependencyRegistry;
1802
2161
  glassEasel: {
1803
2162
  analysisByOwner: Map<string, GlassEaselAnalysisFact>;
1804
2163
  warnedDiagnostics: Set<string>;
@@ -1841,10 +2200,14 @@ interface RuntimeState {
1841
2200
  npmBuilt: boolean;
1842
2201
  independent: {
1843
2202
  outputs: Map<string, RolldownOutput>;
2203
+ watchFiles: Map<string, Set<string>>;
2204
+ watchListeners: Set<(files: string[]) => void>;
1844
2205
  pendingOutputs: Promise<RolldownOutput>[];
1845
2206
  };
1846
2207
  output: {
1847
2208
  emittedSource: Map<string, string>;
2209
+ /** 仅 analyze 启用,保留转为 asset 的 chunk 模块来源。 */
2210
+ analysisChunks?: Map<string, OutputChunk>;
1848
2211
  wevuInternalRuntimeFileName?: string;
1849
2212
  wevuInternalRuntimeFileNames?: Map<string, string>;
1850
2213
  };
@@ -1868,6 +2231,10 @@ interface RuntimeState {
1868
2231
  vueEntryTailwindScriptContentSignatures: Map<string, string>;
1869
2232
  appEntryAutoRoutesSignature?: string;
1870
2233
  dirtyVueEntryIds: Set<string>;
2234
+ /** 当前构建是否为已有输出的后续发布,不依赖单文件诊断事件。 */
2235
+ isRebuild: boolean;
2236
+ /** 当前快照从根入口重建可达图;完整发布后才撤销旧产物。 */
2237
+ fullEntryScan?: boolean;
1871
2238
  didEmitAllEntries: boolean;
1872
2239
  lastHmrEntryIds: Set<string>;
1873
2240
  lastEmittedEntryIds: Set<string>;
@@ -1924,6 +2291,12 @@ interface RuntimeState {
1924
2291
  snapshotResolveMs?: number;
1925
2292
  snapshotBuildMs?: number;
1926
2293
  writeMs?: number;
2294
+ finalizePrepareMs?: number;
2295
+ finalizeTemplateMs?: number;
2296
+ finalizePublishMs?: number;
2297
+ publicationValidateMs?: number;
2298
+ publicationIndependentMs?: number;
2299
+ publicationPruneMs?: number;
1927
2300
  watchToDirtyMs?: number;
1928
2301
  emitMs?: number;
1929
2302
  sharedChunkResolveMs?: number;
@@ -1937,7 +2310,7 @@ interface RuntimeState {
1937
2310
  dirtyReasonSummary?: string[];
1938
2311
  pendingReasonSummary?: string[];
1939
2312
  }>;
1940
- profile: {
2313
+ profile: HmrProfileProvenance & {
1941
2314
  eventId?: string;
1942
2315
  event?: ChangeEvent;
1943
2316
  file?: string;
@@ -1982,6 +2355,12 @@ interface RuntimeState {
1982
2355
  snapshotResolveMs?: number;
1983
2356
  snapshotBuildMs?: number;
1984
2357
  writeMs?: number;
2358
+ finalizePrepareMs?: number;
2359
+ finalizeTemplateMs?: number;
2360
+ finalizePublishMs?: number;
2361
+ publicationValidateMs?: number;
2362
+ publicationIndependentMs?: number;
2363
+ publicationPruneMs?: number;
1985
2364
  watchToDirtyMs?: number;
1986
2365
  emitMs?: number;
1987
2366
  sharedChunkResolveMs?: number;
@@ -2037,7 +2416,7 @@ interface RuntimeState {
2037
2416
  independentSubPackageMap: Map<string, SubPackageMetaValue>;
2038
2417
  warnedMessages: Set<string>;
2039
2418
  appEntry?: AppEntry;
2040
- pluginJson?: Plugin;
2419
+ pluginJson?: Plugin$1;
2041
2420
  pluginJsonPath?: string;
2042
2421
  isDirty: boolean;
2043
2422
  independentDirtyRoots: Set<string>;
@@ -2058,7 +2437,7 @@ interface RuntimeState {
2058
2437
  //#region src/runtime/scanPlugin/service/index.d.ts
2059
2438
  interface ScanService {
2060
2439
  appEntry?: AppEntry;
2061
- pluginJson?: Plugin;
2440
+ pluginJson?: Plugin$1;
2062
2441
  pluginJsonPath?: string;
2063
2442
  readonly mainPackageStyleEntries: StyleEntry[] | undefined;
2064
2443
  subPackageMap: Map<string, SubPackageMetaValue>;
@@ -2165,7 +2544,8 @@ type AutoRoutesFileEvent = ChangeEvent | 'rename';
2165
2544
  //#region src/runtime/autoRoutesPlugin/service.d.ts
2166
2545
  type PageDeclarationSourceResolver = NonNullable<ScanRoutesOptions['resolvePageDeclarationSource']>;
2167
2546
  interface AutoRoutesService {
2168
- ensureFresh: () => Promise<void>;
2547
+ /** 活动构建解析器只参与本次刷新,不替换服务持有的长期解析器。 */
2548
+ ensureFresh: (resolve?: PageDeclarationSourceResolver) => Promise<void>;
2169
2549
  markDirty: () => void;
2170
2550
  getSnapshot: () => AutoRoutes;
2171
2551
  getReference: () => AutoRoutes;
@@ -2180,7 +2560,7 @@ interface AutoRoutesService {
2180
2560
  isPageSource: (filePath: string) => boolean;
2181
2561
  /** 判断文件是否属于逻辑页面声明或其外部脚本依赖。 */
2182
2562
  isPageDeclarationSource: (filePath: string) => boolean;
2183
- /** 注册当前构建上下文已有的模块解析器。 */
2563
+ /** 注册服务持有的长期解析器;构建钩子通过 ensureFresh 参数提供临时解析器。 */
2184
2564
  setPageDeclarationSourceResolver: (resolve?: PageDeclarationSourceResolver) => void;
2185
2565
  handleFileChange: (filePath: string, event?: AutoRoutesFileEvent) => Promise<boolean>;
2186
2566
  isInitialized: () => boolean;
@@ -2264,4 +2644,4 @@ declare module 'vite' {
2264
2644
  */
2265
2645
  declare function defineConfig<T extends UserConfigExport>(config: T): T;
2266
2646
  //#endregion
2267
- export { WeappCompilerPluginContext as $, WeappLibEntryContext as $n, WeappWevuConfig as $t, Ref as A, NpmDependencyPattern as An, WeappAutoRoutesIncludePattern as At, BindingErrorLike as B, SharedChunkStrategy as Bn, WeappNpmConfig as Bt, LoadConfigOptions as C, JsonConfig as Cn, WebPlatform as Cr, HandleWxmlOptions as Ct, MethodDefinitions$1 as D, JsonMergeStrategy as Dn, resolveWeappViteTarget as Dr, WeappAppPreludeMode as Dt, InlineConfig$1 as E, JsonMergeStage as En, isWebPlatform as Er, WeappAppPreludeConfig as Et, RolldownPlugin as F, NpmSubPackageConfig as Fn, WeappInjectRequestGlobalsTarget as Ft, EntryJsonFragment as G, SubPackage as Gn, WeappRequestRuntimeConfig as Gt, BaseEntry as H, StyleConfigObject as Hn, WeappPreloadRule as Ht, RolldownPluginOption as I, ResolvedAlias as In, WeappInjectWeapiConfig as It, ScanComponentItem as J, SubPackageStyleEntry as Jn, WeappSubPackageConfig as Jt, PageEntry as K, SubPackageStyleConfigEntry as Kn, WeappRouteRule as Kt, RolldownWatchOptions as L, SharedChunkDynamicImports as Ln, WeappInjectWebRuntimeGlobalsConfig as Lt, RolldownBuild as M, NpmPackageFilesConfig as Mn, WeappBuildScopeObjectConfig as Mt, RolldownOptions as N, NpmPluginPackageConfig as Nn, WeappHmrConfig as Nt, Plugin$1 as O, MpPlatform$1 as On, WeappAutoRoutesConfig as Ot, RolldownOutput$1 as P, NpmStrategy as Pn, WeappInjectRequestGlobalsConfig as Pt, WeappCompilerPluginCapabilities as Q, WeappLibDtsOptions as Qn, WeappWebRuntimeConfig as Qt, RolldownWatcher$1 as R, SharedChunkMode as Rn, WeappInjectWebRuntimeGlobalsTarget as Rt, CompilerContext as S, JsFormat as Sn, WeappViteTargetKind as Sr, EnhanceWxmlOptions as St, ConfigEnv$1 as T, JsonMergeFunction as Tn, getSupportedWeappViteTargetDescriptors as Tr, ScanWxmlOptions as Tt, ComponentEntry as U, StyleEntry as Un, WeappReactCompilerConfig as Ut, AppEntry as V, StyleConfigEntry as Vn, WeappPreloadNetwork as Vt, Entry as W, StyleScope as Wn, WeappReactConfig as Wt, WeappCompilerOutputRequest as X, WeappLibComponentJson as Xn, WeappVueConfig as Xt, WxmlDep as Y, SubPackageStyleScope as Yn, WeappUniAppConfig as Yt, WeappCompilerPlugin as Z, WeappLibConfig as Zn, WeappVueTemplateConfig as Zt, definePageJson as _, GenerateTemplateFactory as _n, WEB_PLATFORM_ALIASES as _r, WeappTailwindcssOptions as _t, UserConfigFnNoEnvPlain as a, ChunksConfig as an, WeappManagedServerTsconfigConfig as ar, WeappCompilerSourceClaim as at, ChangeEvent as b, GenerateTemplateScope as bn, WeappViteTargetDescriptor as br, AutoImportComponentsOption as bt, UserConfigFnPromise as c, DeprecatedInlineDynamicImports as cn, WeappWebConfig as cr, ProjectConfig as ct, Component$1 as d, GenerateFileType as dn, applyWeappViteHostMeta as dr, WeappAnalyzeBudgetConfig as dt, WeappWorkerConfig as en, WeappLibFileName as er, WeappCompilerPluginController as et, Page$1 as f, GenerateFilenamesOptions as fn, createWeappViteHostMeta as fr, WeappAnalyzeConfig as ft, defineComponentJson as g, GenerateTemplateEntry as gn, ResolvedWeappViteTarget as gr, WeappForwardConsoleLogLevel as gt, defineAppJson as h, GenerateTemplateContext as hn, ResolveWeappViteTargetOptions as hr, WeappForwardConsoleConfig as ht, UserConfigFnNoEnv as i, BuildNpmPackageMeta as in, WeappManagedNodeTsconfigConfig as ir, WeappCompilerResourceKind as it, ResolvedConfig$1 as j, NpmMainPackageConfig as jn, WeappBuildScopeConfig as jt, PluginOption as k, NpmBuildOptions as kn, WeappAutoRoutesInclude as kt, defineConfig as l, GenerateDirsOptions as ln, WEAPP_VITE_HOST_NAME as lr, SubPackageMetaValue as lt, Theme$1 as m, GenerateTemplate as mn, resolveWeappViteHostMeta as mr, WeappDebugConfig as mt, UserConfigExport as n, AliasOptions as nn, WeappLibVueTscOptions as nr, WeappCompilerPluginOption as nt, UserConfigFnObject as o, CopyGlobs as on, WeappManagedSharedTsconfigConfig as or, WeappCompilerSourceRequest as ot, Sitemap$1 as p, GenerateOptions as pn, isWeappViteHost as pr, WeappAnalyzeHistoryConfig as pt, ComponentsMap as q, SubPackageStyleConfigObject as qn, WeappRouteRules as qt, UserConfigFn as r, AlipayNpmMode as rn, WeappManagedAppTsconfigConfig as rr, WeappCompilerPluginPhase as rt, UserConfigFnObjectPlain as s, CopyOptions as sn, WeappManagedTypeScriptConfig as sr, WeappCompilerTransformResult as st, UserConfig$1 as t, Alias as tn, WeappLibInternalDtsOptions as tr, WeappCompilerPluginFactory as tt, App$1 as u, GenerateExtensionsOptions as un, WeappViteHostMeta as ur, UserConfig$2 as ut, defineSitemapJson as v, GenerateTemplateFileSource as vn, WeappVitePlatform as vr, WeappViteConfig as vt, ComputedDefinitions$1 as w, JsonMergeContext as wn, getSupportedWeappVitePlatforms as wr, MultiPlatformConfig as wt, WeappVitePluginApi as x, GenerateTemplatesConfig as xn, WeappViteTargetInput as xr, EnhanceOptions as xt, defineThemeJson as y, GenerateTemplateInlineSource as yn, WeappViteRuntime as yr, AutoImportComponents as yt, ViteDevServer$1 as z, SharedChunkOverride as zn, WeappMcpConfig as zt };
2647
+ 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 };