weapp-vite 7.2.1 → 7.3.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.
@@ -1,4 +1,4 @@
1
- import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-403iJEyy.mjs";
1
+ import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-cqr9Y4EV.mjs";
2
2
  //#region src/auto-routes.ts
3
3
  const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
4
4
  function createGetter(resolver) {
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-403iJEyy.mjs";
2
- import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CfgcKGLR.mjs";
1
+ import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as formatBytes, b as resolveWeappConfigFile, d as getBackendForCapability, f as resolveBackendExecution, g as createSharedBuildConfig, h as createGlassEaselAnalyzeResult, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncManagedTsconfigBootstrapFiles, p as syncProjectSupportFiles, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-cqr9Y4EV.mjs";
2
+ import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CKB0Tn8Z.mjs";
3
3
  import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
4
4
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
5
5
  import { createRequire } from "node:module";
@@ -5370,7 +5370,7 @@ function resolveRunnableHotkeyDefinition(input) {
5370
5370
  }
5371
5371
  //#endregion
5372
5372
  //#region package.json
5373
- var version = "7.2.1";
5373
+ var version = "7.3.0";
5374
5374
  //#endregion
5375
5375
  //#region src/cli/devHotkeys/format.ts
5376
5376
  const FULLWIDTH_ASCII_START = 65281;
@@ -5918,24 +5918,52 @@ function createAnalyzeController(options) {
5918
5918
  }]);
5919
5919
  };
5920
5920
  const bindWatcher = (buildResult) => {
5921
- let updating = false;
5921
+ let initialUpdatePromise;
5922
+ let watchUpdatePending = false;
5923
+ let watchUpdatePromise;
5924
+ const runInitialUpdate = () => {
5925
+ initialUpdatePromise ??= triggerAnalyzeUpdate("initial");
5926
+ return initialUpdatePromise;
5927
+ };
5928
+ const runWatchUpdates = () => {
5929
+ watchUpdatePending = true;
5930
+ if (!watchUpdatePromise) {
5931
+ const running = (async () => {
5932
+ await runInitialUpdate();
5933
+ while (watchUpdatePending) {
5934
+ watchUpdatePending = false;
5935
+ await triggerAnalyzeUpdate("watch");
5936
+ }
5937
+ })();
5938
+ watchUpdatePromise = running;
5939
+ const releaseRunningUpdate = () => {
5940
+ if (watchUpdatePromise !== running) return;
5941
+ watchUpdatePromise = void 0;
5942
+ if (watchUpdatePending) runWatchUpdates();
5943
+ };
5944
+ running.then(releaseRunningUpdate, releaseRunningUpdate);
5945
+ }
5946
+ return watchUpdatePromise;
5947
+ };
5922
5948
  if (analyzeHandle && buildResult && typeof buildResult.on === "function") buildResult.on("event", (event) => {
5923
- if (event.code !== "END" || updating) return;
5949
+ if (event.code === "ERROR") {
5950
+ emitDashboardEvents(analyzeHandle, [{
5951
+ kind: "diagnostic",
5952
+ level: "error",
5953
+ title: "mini hmr rebuild failed",
5954
+ detail: event.error instanceof Error ? event.error.message : String(event.error),
5955
+ tags: ["hmr", "rebuild"]
5956
+ }]);
5957
+ return;
5958
+ }
5959
+ if (event.code !== "END") return;
5924
5960
  const recentProfiles = ctx.runtimeState.build.hmr.recentProfiles;
5925
5961
  const hmrEvent = createHmrProfileEvent(recentProfiles[recentProfiles.length - 1]);
5926
5962
  if (hmrEvent) emitDashboardEvents(analyzeHandle, [hmrEvent]);
5927
- updating = true;
5928
- triggerAnalyzeUpdate("watch").finally(() => {
5929
- updating = false;
5930
- });
5963
+ if (!initialUpdatePromise) return runInitialUpdate();
5964
+ return runWatchUpdates();
5931
5965
  });
5932
- return { async runInitialUpdate() {
5933
- if (analyzeHandle) {
5934
- updating = true;
5935
- await triggerAnalyzeUpdate("initial");
5936
- updating = false;
5937
- }
5938
- } };
5966
+ return { runInitialUpdate };
5939
5967
  };
5940
5968
  return {
5941
5969
  getHandle: () => analyzeHandle,
@@ -7,10 +7,10 @@ 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 as Plugin$1, 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 { InputOption, OutputBundle, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
14
14
  import { Options } from "rolldown-plugin-dts";
15
15
  import PQueue from "p-queue";
16
16
  import { Buffer } from "node:buffer";
@@ -814,6 +814,10 @@ interface WeappViteConfig {
814
814
  * - `object`: 启用并传入 weapp-tailwindcss core options
815
815
  */
816
816
  tailwindcss?: boolean | WeappTailwindcssOptions;
817
+ /**
818
+ * 可扩展的底层编译插件。插件负责声明源码所有权,并可参与 CSS、WXML、JavaScript、bundle 和 HMR 生命周期。
819
+ */
820
+ compilerPlugins?: WeappCompilerPluginOption | WeappCompilerPluginOption[];
817
821
  /**
818
822
  * 应用入口目录(`app.json` 所在目录)。
819
823
  */
@@ -921,6 +925,90 @@ interface ProjectConfig {
921
925
  };
922
926
  }
923
927
  //#endregion
928
+ //#region src/types/compilerPlugin.d.ts
929
+ type WeappCompilerPluginPhase = 'source' | 'output';
930
+ type WeappCompilerResourceKind = 'style' | 'template' | 'script';
931
+ interface WeappCompilerPluginCapabilities {
932
+ bundle?: boolean;
933
+ style?: boolean;
934
+ template?: boolean;
935
+ script?: boolean;
936
+ content?: boolean;
937
+ hmr?: boolean;
938
+ }
939
+ interface WeappCompilerPluginContext {
940
+ root: string;
941
+ srcRoot: string;
942
+ platform: MpPlatform$1;
943
+ outputExtensions: OutputExtensions;
944
+ isDev: boolean;
945
+ resolvedConfig?: ResolvedConfig;
946
+ readFile: (id: string) => Promise<string>;
947
+ resolve: (source: string, importer?: string, options?: {
948
+ skipSelf?: boolean;
949
+ }) => Promise<{
950
+ id: string;
951
+ } | null>;
952
+ addWatchFile: (id: string) => void;
953
+ invalidate: (id: string) => void;
954
+ warn: (message: string) => void;
955
+ error: (message: string) => never;
956
+ claimSource: (id: string, owner: string) => void;
957
+ getSourceOwner: (id: string) => string | undefined;
958
+ }
959
+ interface WeappCompilerSourceRequest {
960
+ id: string;
961
+ code: string;
962
+ kind: WeappCompilerResourceKind;
963
+ }
964
+ interface WeappCompilerTransformResult {
965
+ code: string;
966
+ /** 与产物关联的稳定入口标识;未提供时由 host 使用源码 id。 */
967
+ entryId?: string;
968
+ map?: unknown;
969
+ dependencies?: string[];
970
+ /** provider 需要 host 重新处理的文件集合。 */
971
+ invalidated?: string[];
972
+ handled?: boolean;
973
+ state?: unknown;
974
+ }
975
+ interface WeappCompilerSourceClaim {
976
+ id?: string;
977
+ entryId?: string;
978
+ dependencies?: string[];
979
+ }
980
+ interface WeappCompilerOutputRequest {
981
+ fileName: string;
982
+ code: string;
983
+ entryId?: string;
984
+ state?: unknown;
985
+ }
986
+ interface WeappCompilerPluginController {
987
+ buildStart?: () => void | Promise<void>;
988
+ claimSource?: (request: WeappCompilerSourceRequest) => boolean | WeappCompilerSourceClaim | Promise<boolean | WeappCompilerSourceClaim | null> | null;
989
+ transformSource?: (request: WeappCompilerSourceRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
990
+ generateBundle?: (bundle: OutputBundle, context: WeappCompilerPluginContext) => void | Promise<void>;
991
+ transformCss?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
992
+ transformTemplate?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
993
+ transformJavaScript?: (request: WeappCompilerOutputRequest) => WeappCompilerTransformResult | null | Promise<WeappCompilerTransformResult | null>;
994
+ watchChange?: (id: string, change: {
995
+ event: 'create' | 'update' | 'delete';
996
+ }) => void | Promise<void>;
997
+ handleHotUpdate?: (file: string) => string[] | void | Promise<string[] | void>;
998
+ buildEnd?: (error?: Error) => void | Promise<void>;
999
+ closeWatcher?: () => void | Promise<void>;
1000
+ closeBundle?: () => void | Promise<void>;
1001
+ dispose?: () => void | Promise<void>;
1002
+ }
1003
+ interface WeappCompilerPlugin {
1004
+ name: string;
1005
+ phase?: WeappCompilerPluginPhase;
1006
+ capabilities?: WeappCompilerPluginCapabilities;
1007
+ create: (context: WeappCompilerPluginContext) => WeappCompilerPluginController | Promise<WeappCompilerPluginController>;
1008
+ }
1009
+ type WeappCompilerPluginFactory = (context: WeappCompilerPluginContext) => WeappCompilerPlugin | Promise<WeappCompilerPlugin>;
1010
+ type WeappCompilerPluginOption = WeappCompilerPlugin | WeappCompilerPluginFactory;
1011
+ //#endregion
924
1012
  //#region src/types/context.d.ts
925
1013
  interface WxmlDep {
926
1014
  tagName: string;
@@ -1039,9 +1127,15 @@ interface TopologyRescanRequest {
1039
1127
  //#endregion
1040
1128
  //#region src/moduleGraph/service.d.ts
1041
1129
  interface ModuleGraphService {
1042
- bindBuildContext: (scope: object, context: BuildGraphContext) => void;
1043
- bindDevServer: (server: DevServerGraphHost | undefined) => void;
1044
- bindPluginContext: (context: BuildGraphContext) => void;
1130
+ /** 只替换指定 scope;返回仅对应本次绑定的释放器。 */
1131
+ bindBuildContext: (scope: object, context: BuildGraphContext) => () => void;
1132
+ /** 撤销 scope 的图和插件上下文;传入 context 时仅释放仍归该 context 所有的绑定。 */
1133
+ unbindBuildContext: (scope: object, context?: BuildGraphContext) => void;
1134
+ /** 返回仅对应本次绑定的释放器,避免旧 server 的异步关闭解绑新 server。 */
1135
+ bindDevServer: (server: DevServerGraphHost | undefined) => () => void;
1136
+ bindPluginContext: (scope: object, context: BuildGraphContext) => void;
1137
+ /** 仅用于整个会话关闭或替换,不用于普通增量构建或临时 snapshot。 */
1138
+ resetSession: () => void;
1045
1139
  collectAffectedEntries: (file: string) => Set<string>;
1046
1140
  getPendingChanges: () => Array<{
1047
1141
  event: string;
@@ -1056,6 +1150,8 @@ interface ModuleGraphService {
1056
1150
  resolveDependencies?: boolean;
1057
1151
  }) => Promise<BuildModuleInfo>;
1058
1152
  replaceEntryDependencies: (ownerId: string, kind: SidecarModuleKind, sourceIds: Iterable<string>) => void;
1153
+ /** 释放 owner 自己的依赖声明;实际 import graph 的更新仍由构建引擎负责。 */
1154
+ removeEntryDependencies: (ownerId: string) => void;
1059
1155
  recordChangedFile: (file: string, event: string) => void;
1060
1156
  clearPendingChanges: () => void;
1061
1157
  requestTopologyRescan: (reason: string, file: string) => void;
@@ -1597,6 +1693,14 @@ interface GlassEaselDiagnostic {
1597
1693
  column?: number;
1598
1694
  normalized?: boolean;
1599
1695
  }
1696
+ /** 每个 source/output owner 的最近分析事实;日志去重状态不属于当前事实。 */
1697
+ interface GlassEaselAnalysisFact {
1698
+ kind: 'output' | 'source';
1699
+ scope?: string;
1700
+ detected: boolean;
1701
+ diagnostics: Map<string, GlassEaselDiagnostic>;
1702
+ sourceIds: Set<string>;
1703
+ }
1600
1704
  interface GlassEaselTemplateFinding {
1601
1705
  code: Extract<GlassEaselDiagnosticCode, 'GE002' | 'GE003' | 'GE004'>;
1602
1706
  severity: GlassEaselDiagnosticSeverity;
@@ -1696,8 +1800,7 @@ interface LibEntryState {
1696
1800
  }
1697
1801
  interface RuntimeState {
1698
1802
  glassEasel: {
1699
- detected: boolean;
1700
- diagnostics: Map<string, GlassEaselDiagnostic>;
1803
+ analysisByOwner: Map<string, GlassEaselAnalysisFact>;
1701
1804
  warnedDiagnostics: Set<string>;
1702
1805
  silent: boolean;
1703
1806
  };
@@ -1756,6 +1859,10 @@ interface RuntimeState {
1756
1859
  vueEntryHasTemplate: Map<string, boolean>;
1757
1860
  vueEntrySfcSignatures: Map<string, VueSfcBlockSignatures>;
1758
1861
  vueEntryStyleBindings: Map<string, VueEntryStyleBindings>;
1862
+ /** 编译 provider 内容签名;key 为入口,value 的 key 为 provider 名称。 */
1863
+ vueEntryContentSignatures?: Map<string, Readonly<Record<string, string>>>;
1864
+ vueEntryTemplateContentSignatures?: Map<string, Readonly<Record<string, string>>>;
1865
+ vueEntryScriptContentSignatures?: Map<string, Readonly<Record<string, string>>>;
1759
1866
  vueEntryTailwindContentSignatures: Map<string, string>;
1760
1867
  vueEntryTailwindTemplateContentSignatures: Map<string, string>;
1761
1868
  vueEntryTailwindScriptContentSignatures: Map<string, string>;
@@ -1766,6 +1873,7 @@ interface RuntimeState {
1766
1873
  lastEmittedEntryIds: Set<string>;
1767
1874
  lastEmittedChunkFileNames: Set<string>;
1768
1875
  forceEmitUnchangedChunks: boolean;
1876
+ forceFullSharedChunkRefresh: boolean;
1769
1877
  sharedChunkSourceModuleIds: Set<string>;
1770
1878
  recentProfiles: Array<{
1771
1879
  timestamp?: string;
@@ -2156,4 +2264,4 @@ declare module 'vite' {
2156
2264
  */
2157
2265
  declare function defineConfig<T extends UserConfigExport>(config: T): T;
2158
2266
  //#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 };
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 };
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 WeappCompilerPluginContext, Q as WeappCompilerPluginCapabilities, Z as WeappCompilerPlugin, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, dr as applyWeappViteHostMeta, et as WeappCompilerPluginController, f as Page, fr as createWeappViteHostMeta, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, lr as WEAPP_VITE_HOST_NAME, m as Theme, mr as resolveWeappViteHostMeta, n as UserConfigExport, nt as WeappCompilerPluginOption, o as UserConfigFnObject, p as Sitemap, pr as isWeappViteHost, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, ur as WeappViteHostMeta, v as defineSitemapJson, vt as WeappViteConfig, y as defineThemeJson, yr as WeappViteRuntime } from "./config-1J4rToMR.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 Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappCompilerPlugin, type WeappCompilerPluginCapabilities, type WeappCompilerPluginContext, type WeappCompilerPluginController, type WeappCompilerPluginOption, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };