weapp-vite 7.4.0 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -3
- package/THIRD_PARTY_NOTICES.md +60 -0
- package/bin/bootstrap.js +14 -1
- package/dist/action-B3YZMA-h.mjs +255 -0
- package/dist/action-BELcDNNv.mjs +139 -0
- package/dist/action-BOk3vGI7.mjs +1110 -0
- package/dist/action-DlC6JYpt.mjs +95 -0
- package/dist/action-zEDY7oh_.mjs +247 -0
- package/dist/adapters-CcHrsYaj.mjs +1 -0
- package/dist/analyze-DN79YOAH.mjs +184 -0
- package/dist/artifacts-BOyC9Fy-.mjs +106 -0
- package/dist/assets-C5_YYXNk.mjs +637 -0
- package/dist/auto-import-components/resolvers.mjs +1 -2
- package/dist/auto-import-presets/wevu-router.mjs +1 -2
- package/dist/auto-import-presets/wevu.mjs +1 -2
- package/dist/auto-routes.mjs +2 -1
- package/dist/budget-CTLOHwgI.d.mts +177 -0
- package/dist/budget-EOeEycc_.mjs +65 -0
- package/dist/builtProject-C29udgXY.mjs +541 -0
- package/dist/chunkStrategy-DY_LZIIe.mjs +1448 -0
- package/dist/classifier-DBJY__kg.mjs +88 -0
- package/dist/cli-acceptance.d.mts +1 -0
- package/dist/cli-acceptance.mjs +21 -0
- package/dist/cli.mjs +519 -5049
- package/dist/compatibility.mjs +1 -2
- package/dist/{config-Dbvj5yK7.d.mts → config-Bf6DWhyb.d.mts} +220 -76
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/{constants-WOsG3Eqd.mjs → constants-DEZdcsMn.mjs} +1 -1
- package/dist/{createContext-UOEgeYnA.mjs → createCompilerContextInstance-aYwi8wQt.mjs} +36862 -32020
- package/dist/createContext-tApLtII-.mjs +15 -0
- package/dist/dashboard/analyze.d.mts +48 -0
- package/dist/dashboard/analyze.mjs +3 -0
- package/dist/dashboard/vite.d.mts +1 -1
- package/dist/dashboard.d.mts +3 -2
- package/dist/dashboard.mjs +1748 -1
- package/dist/dashboardTransport-C_Y6jMp-.mjs +16 -0
- package/dist/dashboardViteBridge-DCGR43aM.mjs +302 -0
- package/dist/dev-C2fgr_Xd.mjs +67 -0
- package/dist/devProvider-D-hTfsEO.mjs +3027 -0
- package/dist/docs/README.md +59 -3
- package/dist/docs/ai-workflows.md +4 -0
- package/dist/docs/doctor.md +38 -0
- package/dist/docs/getting-started.md +3 -1
- package/dist/docs/index.md +3 -1
- package/dist/docs/mcp.md +104 -1
- package/dist/docs/testing.md +29 -2
- package/dist/docs/troubleshooting.md +16 -0
- package/dist/docs/uni-app-component-libraries.md +8 -7
- package/dist/docs/upload.md +40 -3
- package/dist/docs/vite-plugin.md +171 -0
- package/dist/docs/vue-sfc.md +42 -0
- package/dist/docs/weapp-config.md +54 -0
- package/dist/docs/wevu-authoring.md +10 -0
- package/dist/doctor-worker.d.mts +1 -0
- package/dist/doctor-worker.mjs +60 -0
- package/dist/doctor.d.mts +144 -0
- package/dist/doctor.mjs +850 -0
- package/dist/engine-C66J0HLz.mjs +54 -0
- package/dist/eslint.mjs +1 -2
- package/dist/{file-giE9UMZa.mjs → file-CcIOmqhC.mjs} +58 -24
- package/dist/file-DtcteQ4G.mjs +1 -0
- package/dist/files-BqxFIPRp.mjs +45 -0
- package/dist/forwardConsole-B0Reo8Lf.mjs +511 -0
- package/dist/getInstance-BAIaU2y9.mjs +1 -0
- package/dist/getInstance-Dt9IQDKr.mjs +28 -0
- package/dist/history-BIiRCzbq.mjs +784 -0
- package/dist/i18n.d.mts +1 -1
- package/dist/index-D5rgBzYZ.d.mts +740 -0
- package/dist/index.d.mts +12 -10
- package/dist/index.mjs +3 -2
- package/dist/json.d.mts +1 -1
- package/dist/json.mjs +1 -2
- package/dist/lib-DjccSI1B.mjs +143 -0
- package/dist/lifecycle-C36WSbQS.mjs +413 -0
- package/dist/loadConfig-BWIsDXR4.mjs +59 -0
- package/dist/loadConfig-D-BpBgsk.mjs +1 -0
- package/dist/logBuildAppFinish-ChjwATMv.mjs +57 -0
- package/dist/logger-DGn5iEVN.mjs +1 -0
- package/dist/mcp-CYgX9HpO.mjs +86 -0
- package/dist/{mcp-BG6TliEg.mjs → mcp-Cj8Maqo6.mjs} +16 -7
- package/dist/mcp.d.mts +6 -3
- package/dist/mcp.mjs +1 -2
- package/dist/mcpClient-DVLvFLZv.mjs +287 -0
- package/dist/metadata-hwF7QRcS.mjs +59 -0
- package/dist/nodeEnv-BmH8UZPR.mjs +7 -0
- package/dist/openIde-CroqOgk5.mjs +648 -0
- package/dist/options-jqFwfD1G.mjs +34 -0
- package/dist/package-Cmakyy3J.mjs +4 -0
- package/dist/path-CYYIQGS7.mjs +44 -0
- package/dist/{platform-DTWs5QRi.mjs → platform-CnkySBKz.mjs} +1 -1
- package/dist/processCleanup-BQn2kTcK.mjs +19 -0
- package/dist/protocol-Cg6Jdlvb.mjs +141 -0
- package/dist/reader-sh_POQ9-.mjs +93 -0
- package/dist/realpathScope-Tf9mz-fh.mjs +23 -0
- package/dist/report-hyonPGbZ.mjs +107 -0
- package/dist/resolvedId-CiDl7SC1.mjs +60 -0
- package/dist/{resolvers-icNxkpcy.mjs → resolvers-Dod-euqX.mjs} +4 -1
- package/dist/resolvers.mjs +1 -2
- package/dist/runtime-CLUhQsdA.mjs +43 -0
- package/dist/{runtime-Ee2HY6gR.d.mts → runtime-DpVf714f.d.mts} +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.mjs +1 -2
- package/dist/schematics-kO26eQRT.mjs +91 -0
- package/dist/session-D3zsdzIy.mjs +452 -0
- package/dist/test.d.mts +1 -0
- package/dist/test.mjs +204 -45
- package/dist/{types-CgZn5X6j.d.mts → types-D-kfuyVa.d.mts} +1 -2
- package/dist/types-D0FFexRF.d.mts +39 -0
- package/dist/types.d.mts +3 -3
- package/dist/{upload-D0RcEWrq.mjs → upload-DozK8UdN.mjs} +278 -15
- package/dist/upload-worker.mjs +136 -3
- package/dist/utils-Dy51PYAC.mjs +1034 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.mjs +309 -0
- package/dist/volar.d.mts +2 -2
- package/dist/web-apis.mjs +1 -2
- package/dist/wxs-BT8btflA.mjs +112 -0
- package/dist/wxs-Z4VQDeJ_.mjs +1 -0
- package/package.json +80 -48
- package/dist/adapters-BwnMMIZR.mjs +0 -2
- package/dist/dashboard-BzaVesmQ.mjs +0 -558
- package/dist/file-D19nbDoN.mjs +0 -2
- package/dist/getInstance-CYF1vl5l.mjs +0 -2
- package/dist/index-DbqVupg0.d.mts +0 -246
- package/dist/logger-mt4mSTqV.mjs +0 -2
package/dist/compatibility.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { findWevuCompatibilityEntry, wevuCompatibilityCatalog };
|
|
1
|
+
export { findWevuCompatibilityEntry, wevuCompatibilityCatalog } from "@weapp-vite/eslint";
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { d as ResolvedValue, f as Resolver } from "./index-CaXAtb9e.mjs";
|
|
2
2
|
import { t as AutoRoutes } from "./routes-C7fCmf92.mjs";
|
|
3
|
-
import { t as WeappI18nConfig } from "./types-
|
|
3
|
+
import { t as WeappI18nConfig } from "./types-D-kfuyVa.mjs";
|
|
4
|
+
import { r as GlassEaselTemplateFinding, t as GlassEaselAnalysisFact } from "./types-D0FFexRF.mjs";
|
|
4
5
|
import { MpPlatform, OutputExtensions } from "@weapp-core/shared";
|
|
5
6
|
import { WeappAstConfig } from "@weapp-vite/ast";
|
|
6
7
|
import "@weapp-vite/ast/operations/onPageScroll";
|
|
7
8
|
import { LoggerConfig } from "@weapp-core/logger";
|
|
8
9
|
import "@weapp-vite/ast/babel";
|
|
9
|
-
import { ComponentStyleOptions, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
|
|
10
|
+
import { ComponentStyleOptions, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, ResolveSfcBlockSrcOptions, StaticRouteValue, VueSfcBlockSignatures } from "wevu/compiler";
|
|
10
11
|
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
12
|
import { LRUCache } from "lru-cache";
|
|
12
13
|
import { fdir } from "fdir";
|
|
14
|
+
import { Buffer } from "node:buffer";
|
|
13
15
|
import { HmrCompilerAsset as WeappCompilerHmrAsset, HmrCompilerPreparation, HmrCompilerPreparation as WeappCompilerHmrPreparation, HmrCompilerRequest, HmrCompilerRequest as WeappCompilerHmrRequest } from "@weapp-vite/hmr";
|
|
14
|
-
import { InputOption, OutputBundle, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
|
|
15
|
-
import { Options } from "rolldown-plugin-dts";
|
|
16
16
|
import PQueue from "p-queue";
|
|
17
|
-
import
|
|
18
|
-
import { PluginOptions } from "vite-tsconfig-paths";
|
|
17
|
+
import "get-tsconfig";
|
|
19
18
|
import { WrapPluginOptions } from "vite-plugin-performance";
|
|
20
|
-
import {
|
|
21
|
-
import { MiniProgramNetworkDefaults } from "@wevu/web-apis";
|
|
19
|
+
import { Options } from "rolldown-plugin-dts";
|
|
22
20
|
import { App, App as App$1, Component, Component as Component$1, GenerateType, Page, Page as Page$1, Plugin as Plugin$1, Sitemap, Sitemap as Sitemap$1, Theme, Theme as Theme$1 } from "@weapp-core/schematics";
|
|
21
|
+
import { InputOption, OutputBundle, OutputChunk, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownOutput as RolldownOutput$1, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcher as RolldownWatcher$1, WatchOptions as RolldownWatchOptions } from "rolldown";
|
|
22
|
+
import { MiniProgramNetworkDefaults } from "@wevu/web-apis/network-defaults";
|
|
23
|
+
import { PageLayoutMeta, WevuConfigDefaults } from "wevu/config";
|
|
23
24
|
import { WeappWebPluginOptions } from "@weapp-vite/web/plugin";
|
|
24
25
|
import { CompilerOptions } from "typescript";
|
|
25
26
|
import { CreateCompilerOptions } from "weapp-tailwindcss/core";
|
|
26
27
|
import { UserDefinedOptions } from "weapp-tailwindcss/types";
|
|
28
|
+
import { ComputedDefinitions as ComputedDefinitions$1, MethodDefinitions as MethodDefinitions$1, Ref } from "wevu/types";
|
|
27
29
|
import { DetectResult } from "package-manager-detector";
|
|
28
30
|
//#region src/runtimeTarget.d.ts
|
|
29
31
|
type WebPlatform = 'web';
|
|
@@ -338,22 +340,6 @@ interface SharedChunkOverride {
|
|
|
338
340
|
test: string | RegExp;
|
|
339
341
|
mode: SharedChunkMode;
|
|
340
342
|
}
|
|
341
|
-
type JsonMergeStage = 'defaults' | 'json-block' | 'auto-using-components' | 'component-generics' | 'macro' | 'emit' | 'merge-existing';
|
|
342
|
-
interface JsonMergeContext {
|
|
343
|
-
filename?: string;
|
|
344
|
-
kind?: 'app' | 'page' | 'component' | 'unknown';
|
|
345
|
-
stage: JsonMergeStage;
|
|
346
|
-
}
|
|
347
|
-
type JsonMergeFunction = (target: Record<string, any>, source: Record<string, any>, context: JsonMergeContext) => Record<string, any> | void;
|
|
348
|
-
type JsonMergeStrategy = 'deep' | 'assign' | 'replace' | JsonMergeFunction;
|
|
349
|
-
interface JsonConfig {
|
|
350
|
-
defaults?: {
|
|
351
|
-
app?: Record<string, any>;
|
|
352
|
-
page?: Record<string, any>;
|
|
353
|
-
component?: Record<string, any>;
|
|
354
|
-
};
|
|
355
|
-
mergeStrategy?: JsonMergeStrategy;
|
|
356
|
-
}
|
|
357
343
|
interface ChunksConfig {
|
|
358
344
|
sharedStrategy?: SharedChunkStrategy;
|
|
359
345
|
sharedMode?: SharedChunkMode;
|
|
@@ -744,6 +730,8 @@ interface WeappAutoRoutesConfig {
|
|
|
744
730
|
* @remarks 默认会扫描主包 `pages/**`,以及已声明分包 root 下的 `pages/**`
|
|
745
731
|
*/
|
|
746
732
|
include?: WeappAutoRoutesInclude;
|
|
733
|
+
/** 页面入口扩展名(可带前导点);未设置或为空时沿用默认解析。 */
|
|
734
|
+
extensions?: string[];
|
|
747
735
|
/**
|
|
748
736
|
* @description 是否启用自动路由持久化缓存,或指定自定义缓存文件路径
|
|
749
737
|
* @default false
|
|
@@ -833,7 +821,7 @@ interface WeappNpmConfig {
|
|
|
833
821
|
subPackages?: Record<string, NpmSubPackageConfig>;
|
|
834
822
|
/** 按包名限制原生小程序 npm 包复制到产物中的文件 */
|
|
835
823
|
packageFiles?: Record<string, NpmPackageFilesConfig>;
|
|
836
|
-
buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | undefined;
|
|
824
|
+
buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | false | undefined;
|
|
837
825
|
alipayNpmMode?: AlipayNpmMode;
|
|
838
826
|
}
|
|
839
827
|
/**
|
|
@@ -886,6 +874,8 @@ interface WeappVueTemplateConfig {
|
|
|
886
874
|
htmlTagToWxmlTagClass?: boolean;
|
|
887
875
|
scopedSlotsCompiler?: 'auto' | 'augmented' | 'off';
|
|
888
876
|
scopedSlotsRequireProps?: boolean;
|
|
877
|
+
/** 是否启用微信原生插槽的 provide/inject 上下文协议,默认关闭;需同时开启 scopedSlotsRequireProps。 */
|
|
878
|
+
nativeSlotContext?: boolean;
|
|
889
879
|
slotSingleRootNoWrapper?: boolean;
|
|
890
880
|
slotFallbackWrapperStrategy?: 'view' | 'virtual-host';
|
|
891
881
|
slotFallbackWrapper?: string | {
|
|
@@ -921,7 +911,7 @@ interface WeappVueConfig {
|
|
|
921
911
|
*/
|
|
922
912
|
interface WeappWevuConfig {
|
|
923
913
|
preset?: 'performance';
|
|
924
|
-
defaults?:
|
|
914
|
+
defaults?: WevuConfigDefaults;
|
|
925
915
|
autoSetDataPick?: boolean;
|
|
926
916
|
/**
|
|
927
917
|
* @description 是否压缩 wevu 相关脚本输出。
|
|
@@ -956,6 +946,104 @@ interface WeappRouteRule {
|
|
|
956
946
|
}
|
|
957
947
|
type WeappRouteRules = Record<string, WeappRouteRule>;
|
|
958
948
|
//#endregion
|
|
949
|
+
//#region ../../node_modules/.pnpm/vite-tsconfig-paths@7.0.0-alpha.3_supports-color@10.2.2_vite@8.3.4/node_modules/vite-tsconfig-paths/dist/types.d.ts
|
|
950
|
+
interface PluginOptions {
|
|
951
|
+
/**
|
|
952
|
+
* The directory to crawl for `tsconfig.json` files.
|
|
953
|
+
*
|
|
954
|
+
* When the `projects` option is set, crawling is skipped, so this is
|
|
955
|
+
* used to resolve `projects` paths into absolute paths instead.
|
|
956
|
+
*
|
|
957
|
+
* @default
|
|
958
|
+
* // The config root is used for resolving project paths, and the
|
|
959
|
+
* // workspace root is used for crawling.
|
|
960
|
+
* options.projects ? viteConfig.root : vite.searchForWorkspaceRoot(viteConfig.root)
|
|
961
|
+
*/
|
|
962
|
+
root?: string;
|
|
963
|
+
/**
|
|
964
|
+
* An array of `.json` files and/or directories that contain a
|
|
965
|
+
* `tsconfig.json` file. These JSON files must adhere to the
|
|
966
|
+
* {@link https://www.typescriptlang.org/tsconfig TypeScript config interface}.
|
|
967
|
+
* The `extends` property is supported.
|
|
968
|
+
*
|
|
969
|
+
* This disables crawling for `tsconfig.json` files when defined.
|
|
970
|
+
*
|
|
971
|
+
* **Note:** When using `projectDiscovery: "lazy"`, this option is perfect
|
|
972
|
+
* for ensuring your
|
|
973
|
+
* {@link https://www.typescriptlang.org/docs/handbook/project-references.html project references}
|
|
974
|
+
* are discovered.
|
|
975
|
+
*/
|
|
976
|
+
projects?: string[];
|
|
977
|
+
/**
|
|
978
|
+
* Disable strictness that limits path resolution to TypeScript and
|
|
979
|
+
* JavaScript modules.
|
|
980
|
+
*
|
|
981
|
+
* Useful if you want asset URLs in Vue templates to be resolved, or when
|
|
982
|
+
* `"allowJs": true` in your tsconfig isn't good enough.
|
|
983
|
+
*/
|
|
984
|
+
loose?: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* Fine-grained control over which files should have their imports
|
|
987
|
+
* resolved by this plugin. This has no effect when `loose` is true.
|
|
988
|
+
*/
|
|
989
|
+
importerFilter?: (importer: string) => boolean;
|
|
990
|
+
/**
|
|
991
|
+
* Silence the warning about malformed `tsconfig.json` files.
|
|
992
|
+
*/
|
|
993
|
+
ignoreConfigErrors?: boolean;
|
|
994
|
+
/**
|
|
995
|
+
* An array of `tsconfig.json` file names to search for.
|
|
996
|
+
*
|
|
997
|
+
* @default ["tsconfig.json", "jsconfig.json"]
|
|
998
|
+
*/
|
|
999
|
+
configNames?: string[];
|
|
1000
|
+
/**
|
|
1001
|
+
* A function that determines which directories to skip when searching
|
|
1002
|
+
* for tsconfig.json files. While `.git` and `node_modules` directories
|
|
1003
|
+
* are always skipped, this option allows you to skip additional
|
|
1004
|
+
* directories, which is useful in large monorepos to improve
|
|
1005
|
+
* performance.
|
|
1006
|
+
*
|
|
1007
|
+
* **Note:** This is not used when the `projects` option is set, unless
|
|
1008
|
+
* `projectDiscovery` is set to `lazy`.
|
|
1009
|
+
*/
|
|
1010
|
+
skip?: (dir: string) => boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* With the "lazy" strategy, the `tsconfig.json` files are parsed when an
|
|
1013
|
+
* import is encountered in a module with a supported file extension that
|
|
1014
|
+
* exists in the same directory as the `tsconfig.json` file (or one of
|
|
1015
|
+
* its subdirectories).
|
|
1016
|
+
*
|
|
1017
|
+
* **Note 1:** If your `tsconfig.json` files have `../*` paths in their
|
|
1018
|
+
* `include` or `files` array, the "lazy" strategy is not recommended,
|
|
1019
|
+
* since the tsconfig file won't be discovered for those cases.
|
|
1020
|
+
*
|
|
1021
|
+
* **Note 2:** You can combine the `projects` option with "lazy" to
|
|
1022
|
+
* ensure your project references are discovered. Alternatively, the
|
|
1023
|
+
* `configNames` option allows for custom-named tsconfig files to be
|
|
1024
|
+
* discovered.
|
|
1025
|
+
*
|
|
1026
|
+
* With the "eager" strategy, all `tsconfig.json` files are loaded and
|
|
1027
|
+
* parsed when the plugin is initialized. This means they won't be
|
|
1028
|
+
* reloaded if their file is edited. This was the only parsing strategy
|
|
1029
|
+
* prior to v5.2.0 and may be deprecated in a future version.
|
|
1030
|
+
*
|
|
1031
|
+
* @default "eager"
|
|
1032
|
+
*/
|
|
1033
|
+
projectDiscovery?: "eager" | "lazy";
|
|
1034
|
+
/**
|
|
1035
|
+
* A file to write detailed logs of the resolver process.
|
|
1036
|
+
*/
|
|
1037
|
+
logFile?: string | boolean;
|
|
1038
|
+
}
|
|
1039
|
+
//#endregion
|
|
1040
|
+
//#region src/types/config/tsconfigPaths.d.ts
|
|
1041
|
+
/** 高级路径适配选项,保留旧配置的类型兼容。 */
|
|
1042
|
+
interface TsconfigPathsOptions extends PluginOptions {
|
|
1043
|
+
/** @deprecated 解析器已统一处理继承和路径,此选项仅兼容旧配置,不再加载 TypeScript 编译器。 */
|
|
1044
|
+
parseNative?: boolean;
|
|
1045
|
+
}
|
|
1046
|
+
//#endregion
|
|
959
1047
|
//#region src/types/config/main.d.ts
|
|
960
1048
|
type WeappTailwindcssOptions = UserDefinedOptions & Pick<CreateCompilerOptions, 'compiler'>;
|
|
961
1049
|
/**
|
|
@@ -1024,6 +1112,10 @@ interface WeappAnalyzeBudgetConfig {
|
|
|
1024
1112
|
* 独立分包预算阈值(字节)。
|
|
1025
1113
|
*/
|
|
1026
1114
|
independentBytes?: number;
|
|
1115
|
+
/** 包含已识别 runtime 模块的文件字节上界预算,包含混合 chunk 的业务部分。 */
|
|
1116
|
+
runtimeBytes?: number;
|
|
1117
|
+
/** 按分包 root 覆盖单包预算;主包使用 __main__。 */
|
|
1118
|
+
packageBytes?: Record<string, number>;
|
|
1027
1119
|
/**
|
|
1028
1120
|
* 预算预警比例,默认 0.85。
|
|
1029
1121
|
*/
|
|
@@ -1139,7 +1231,7 @@ interface WeappViteConfig {
|
|
|
1139
1231
|
jsonAlias?: AliasOptions | false;
|
|
1140
1232
|
npm?: WeappNpmConfig;
|
|
1141
1233
|
generate?: GenerateOptions;
|
|
1142
|
-
tsconfigPaths?: boolean |
|
|
1234
|
+
tsconfigPaths?: boolean | TsconfigPathsOptions;
|
|
1143
1235
|
/**
|
|
1144
1236
|
* 主包共享样式入口。生成独立样式文件,并按配置注入主包与普通分包页面或组件。
|
|
1145
1237
|
*/
|
|
@@ -1150,7 +1242,7 @@ interface WeappViteConfig {
|
|
|
1150
1242
|
typescript?: WeappManagedTypeScriptConfig;
|
|
1151
1243
|
lib?: WeappLibConfig;
|
|
1152
1244
|
isAdditionalWxml?: (wxmlFilePath: string) => boolean;
|
|
1153
|
-
platform?: MpPlatform$1;
|
|
1245
|
+
platform?: MpPlatform$1 | 'web';
|
|
1154
1246
|
multiPlatform?: boolean | MultiPlatformConfig;
|
|
1155
1247
|
jsFormat?: JsFormat;
|
|
1156
1248
|
/**
|
|
@@ -1311,6 +1403,8 @@ interface BaseEntry {
|
|
|
1311
1403
|
path: string;
|
|
1312
1404
|
jsonPath?: string;
|
|
1313
1405
|
json?: object;
|
|
1406
|
+
/** 自动导入增强前的入口声明,供逻辑入口建立稳定的配置依赖。 */
|
|
1407
|
+
declaredJson?: object;
|
|
1314
1408
|
type: 'app' | 'page' | 'component' | (string & {});
|
|
1315
1409
|
}
|
|
1316
1410
|
type Entry = AppEntry | PageEntry | ComponentEntry;
|
|
@@ -1392,12 +1486,19 @@ interface DevModuleGraph {
|
|
|
1392
1486
|
idToModuleMap?: Map<string, DevModuleNode>;
|
|
1393
1487
|
invalidateModule(module: DevModuleNode): void;
|
|
1394
1488
|
}
|
|
1489
|
+
interface DevResolverContainer {
|
|
1490
|
+
resolveId: (source: string, importer?: string) => Promise<{
|
|
1491
|
+
id: string;
|
|
1492
|
+
} | null>;
|
|
1493
|
+
}
|
|
1395
1494
|
interface DevServerGraphHost {
|
|
1396
1495
|
environments?: {
|
|
1397
1496
|
client?: {
|
|
1398
1497
|
bundledDev?: unknown;
|
|
1498
|
+
pluginContainer?: DevResolverContainer;
|
|
1399
1499
|
};
|
|
1400
1500
|
};
|
|
1501
|
+
pluginContainer?: DevResolverContainer;
|
|
1401
1502
|
moduleGraph: DevModuleGraph;
|
|
1402
1503
|
transformRequest?: (url: string) => Promise<unknown>;
|
|
1403
1504
|
}
|
|
@@ -1417,7 +1518,8 @@ interface ModuleGraphService {
|
|
|
1417
1518
|
bindPluginContext: (scope: object, context: BuildGraphContext) => void;
|
|
1418
1519
|
/** 仅用于整个会话关闭或替换,不用于普通增量构建或临时 snapshot。 */
|
|
1419
1520
|
resetSession: () => void;
|
|
1420
|
-
|
|
1521
|
+
/** 指定 kind 时仅查询该类声明依赖,不展开构建引擎的模块图。 */
|
|
1522
|
+
collectAffectedEntries: (file: string, kind?: SidecarModuleKind) => Set<string>;
|
|
1421
1523
|
getPendingChanges: () => Array<{
|
|
1422
1524
|
event: string;
|
|
1423
1525
|
file: string;
|
|
@@ -1430,7 +1532,7 @@ interface ModuleGraphService {
|
|
|
1430
1532
|
id: string;
|
|
1431
1533
|
resolveDependencies?: boolean;
|
|
1432
1534
|
}) => Promise<BuildModuleInfo>;
|
|
1433
|
-
replaceEntryDependencies: (ownerId: string, kind: SidecarModuleKind, sourceIds: Iterable<string
|
|
1535
|
+
replaceEntryDependencies: (ownerId: string, kind: SidecarModuleKind, sourceIds: Iterable<string>, resolveSourceId?: (id: string) => string) => void;
|
|
1434
1536
|
/** 释放 owner 自己的依赖声明;实际 import graph 的更新仍由构建引擎负责。 */
|
|
1435
1537
|
removeEntryDependencies: (ownerId: string) => void;
|
|
1436
1538
|
recordChangedFile: (file: string, event: string) => void;
|
|
@@ -1442,7 +1544,11 @@ interface ModuleGraphService {
|
|
|
1442
1544
|
id: string;
|
|
1443
1545
|
} | null>;
|
|
1444
1546
|
syncDevGraph: (context: BuildGraphContext) => Promise<void>;
|
|
1445
|
-
|
|
1547
|
+
getTransformDependencies: (sourceId: string) => readonly string[];
|
|
1548
|
+
replaceTransformDependencies: (sourceId: string, dependencies: Iterable<string>) => void;
|
|
1549
|
+
getEntryDependencies: (ownerId: string, options?: {
|
|
1550
|
+
preserveAliases: boolean;
|
|
1551
|
+
}) => Array<{
|
|
1446
1552
|
kind: SidecarModuleKind;
|
|
1447
1553
|
sourceId: string;
|
|
1448
1554
|
}>;
|
|
@@ -1783,6 +1889,12 @@ interface LoadConfigOptions {
|
|
|
1783
1889
|
emitDefaultAutoImportOutputs?: boolean;
|
|
1784
1890
|
outputRoot?: string;
|
|
1785
1891
|
pluginOnly?: boolean;
|
|
1892
|
+
/** 宿主已执行的配置;存在时跳过 vite/weapp-vite 配置文件发现与加载。 */
|
|
1893
|
+
hostConfig?: {
|
|
1894
|
+
config: InlineConfig;
|
|
1895
|
+
path?: string;
|
|
1896
|
+
dependencies?: string[];
|
|
1897
|
+
};
|
|
1786
1898
|
inlineConfig?: InlineConfig;
|
|
1787
1899
|
configFile?: string;
|
|
1788
1900
|
configLoader?: ViteConfigLoader;
|
|
@@ -1791,6 +1903,8 @@ interface LoadConfigOptions {
|
|
|
1791
1903
|
}
|
|
1792
1904
|
interface LoadConfigResult {
|
|
1793
1905
|
loadOptions: LoadConfigOptions;
|
|
1906
|
+
/** 本次加载的用户配置,供隔离子会话重新归一化,避免重复执行配置文件。 */
|
|
1907
|
+
sourceConfig?: InlineConfig;
|
|
1794
1908
|
config: InlineConfig;
|
|
1795
1909
|
aliasEntries: ResolvedAlias[];
|
|
1796
1910
|
outputExtensions: OutputExtensions;
|
|
@@ -1930,6 +2044,31 @@ interface JsonService {
|
|
|
1930
2044
|
cache: FileCache<any>;
|
|
1931
2045
|
}
|
|
1932
2046
|
//#endregion
|
|
2047
|
+
//#region src/runtime/npmPlugin/builder/packageBuilder.d.ts
|
|
2048
|
+
interface PackageBuilder {
|
|
2049
|
+
isMiniprogramPackage: (pkg: PackageJson) => boolean;
|
|
2050
|
+
shouldSkipBuild: (outDir: string, isOutdated: boolean) => Promise<boolean>;
|
|
2051
|
+
bundleBuild: (args: {
|
|
2052
|
+
entry: InputOption;
|
|
2053
|
+
name: string;
|
|
2054
|
+
options?: NpmBuildOptions;
|
|
2055
|
+
outDir: string;
|
|
2056
|
+
}) => Promise<void>;
|
|
2057
|
+
copyBuild: (args: {
|
|
2058
|
+
from: string;
|
|
2059
|
+
to: string;
|
|
2060
|
+
name: string;
|
|
2061
|
+
}) => Promise<void>;
|
|
2062
|
+
buildPackage: (args: BuildPackageArgs) => Promise<void>;
|
|
2063
|
+
}
|
|
2064
|
+
interface BuildPackageArgs {
|
|
2065
|
+
dep: string;
|
|
2066
|
+
outDir: string;
|
|
2067
|
+
resolveFrom?: string;
|
|
2068
|
+
options?: NpmBuildOptions;
|
|
2069
|
+
isDependenciesCacheOutdate: boolean;
|
|
2070
|
+
}
|
|
2071
|
+
//#endregion
|
|
1933
2072
|
//#region src/runtime/npmPlugin/service/types.d.ts
|
|
1934
2073
|
interface NpmService {
|
|
1935
2074
|
getDependenciesCacheFilePath: (key?: string) => string;
|
|
@@ -1950,12 +2089,7 @@ interface NpmService {
|
|
|
1950
2089
|
to: string;
|
|
1951
2090
|
name: string;
|
|
1952
2091
|
}) => Promise<void>;
|
|
1953
|
-
buildPackage:
|
|
1954
|
-
dep: string;
|
|
1955
|
-
outDir: string;
|
|
1956
|
-
options?: NpmBuildOptions;
|
|
1957
|
-
isDependenciesCacheOutdate: boolean;
|
|
1958
|
-
}) => Promise<void>;
|
|
2092
|
+
buildPackage: PackageBuilder['buildPackage'];
|
|
1959
2093
|
getPackNpmRelationList: () => {
|
|
1960
2094
|
packageJsonPath: string;
|
|
1961
2095
|
miniprogramNpmDistDir: string;
|
|
@@ -1963,42 +2097,19 @@ interface NpmService {
|
|
|
1963
2097
|
build: (options?: NpmBuildOptions) => Promise<void>;
|
|
1964
2098
|
}
|
|
1965
2099
|
//#endregion
|
|
1966
|
-
//#region src/
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
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
|
-
}
|
|
1996
|
-
interface GlassEaselTemplateFinding {
|
|
1997
|
-
code: Extract<GlassEaselDiagnosticCode, 'GE002' | 'GE003' | 'GE004'>;
|
|
1998
|
-
severity: GlassEaselDiagnosticSeverity;
|
|
1999
|
-
message: string;
|
|
2000
|
-
start: number;
|
|
2001
|
-
normalized?: boolean;
|
|
2100
|
+
//#region src/utils/hmrProfile/provenance.d.ts
|
|
2101
|
+
interface HmrProfileSourceEvent {
|
|
2102
|
+
eventId: string;
|
|
2103
|
+
event?: ChangeEvent;
|
|
2104
|
+
file?: string;
|
|
2105
|
+
receivedAtMs: number;
|
|
2106
|
+
}
|
|
2107
|
+
interface HmrProfileProvenance {
|
|
2108
|
+
buildId?: string;
|
|
2109
|
+
batchId?: string;
|
|
2110
|
+
sourceEvents?: HmrProfileSourceEvent[];
|
|
2111
|
+
batchWaitMs?: number;
|
|
2112
|
+
queueWaitMs?: number;
|
|
2002
2113
|
}
|
|
2003
2114
|
//#endregion
|
|
2004
2115
|
//#region src/wxml/shared.d.ts
|
|
@@ -2155,6 +2266,8 @@ interface RuntimeState {
|
|
|
2155
2266
|
};
|
|
2156
2267
|
output: {
|
|
2157
2268
|
emittedSource: Map<string, string>;
|
|
2269
|
+
/** 仅 analyze 启用,保留转为 asset 的 chunk 模块来源。 */
|
|
2270
|
+
analysisChunks?: Map<string, OutputChunk>;
|
|
2158
2271
|
wevuInternalRuntimeFileName?: string;
|
|
2159
2272
|
wevuInternalRuntimeFileNames?: Map<string, string>;
|
|
2160
2273
|
};
|
|
@@ -2168,6 +2281,8 @@ interface RuntimeState {
|
|
|
2168
2281
|
entriesMap: Map<string, Entry | undefined>;
|
|
2169
2282
|
vueEntryHasTemplate: Map<string, boolean>;
|
|
2170
2283
|
vueEntrySfcSignatures: Map<string, VueSfcBlockSignatures>;
|
|
2284
|
+
/** 当前编译 generation 的模板注册签名,只随成功快照交付为基线。 */
|
|
2285
|
+
templateRegistrationSignatures?: Map<string, string | undefined>;
|
|
2171
2286
|
vueEntryStyleBindings: Map<string, VueEntryStyleBindings>;
|
|
2172
2287
|
/** 编译 provider 内容签名;key 为入口,value 的 key 为 provider 名称。 */
|
|
2173
2288
|
vueEntryContentSignatures?: Map<string, Readonly<Record<string, string>>>;
|
|
@@ -2178,6 +2293,12 @@ interface RuntimeState {
|
|
|
2178
2293
|
vueEntryTailwindScriptContentSignatures: Map<string, string>;
|
|
2179
2294
|
appEntryAutoRoutesSignature?: string;
|
|
2180
2295
|
dirtyVueEntryIds: Set<string>;
|
|
2296
|
+
/** 当前构建是否为已有输出的后续发布,不依赖单文件诊断事件。 */
|
|
2297
|
+
isRebuild: boolean;
|
|
2298
|
+
/** 当前快照从根入口重建可达图;完整发布后才撤销旧产物。 */
|
|
2299
|
+
fullEntryScan?: boolean;
|
|
2300
|
+
/** 当前快照已清空输出缓存并重发全部资源,不要求重新扫描入口拓扑。 */
|
|
2301
|
+
fullSnapshotOutput: boolean;
|
|
2181
2302
|
didEmitAllEntries: boolean;
|
|
2182
2303
|
lastHmrEntryIds: Set<string>;
|
|
2183
2304
|
lastEmittedEntryIds: Set<string>;
|
|
@@ -2234,6 +2355,16 @@ interface RuntimeState {
|
|
|
2234
2355
|
snapshotResolveMs?: number;
|
|
2235
2356
|
snapshotBuildMs?: number;
|
|
2236
2357
|
writeMs?: number;
|
|
2358
|
+
/** Tailwind 六个连续输出阶段均包含在 writeMs 中,不能与 writeMs 再次相加。 */
|
|
2359
|
+
tailwindPrepareMs?: number;
|
|
2360
|
+
tailwindGenerateMs?: number;
|
|
2361
|
+
tailwindCssMs?: number;
|
|
2362
|
+
tailwindTemplateMs?: number;
|
|
2363
|
+
tailwindJavaScriptMs?: number;
|
|
2364
|
+
tailwindFinalizeMs?: number;
|
|
2365
|
+
/** 来源解析与磁盘生成是 tailwindGenerateMs 的累计子项,多 root 可重叠,不能当作连续阶段相加。 */
|
|
2366
|
+
tailwindSourceResolveMs?: number;
|
|
2367
|
+
tailwindDiskGenerateMs?: number;
|
|
2237
2368
|
finalizePrepareMs?: number;
|
|
2238
2369
|
finalizeTemplateMs?: number;
|
|
2239
2370
|
finalizePublishMs?: number;
|
|
@@ -2253,7 +2384,7 @@ interface RuntimeState {
|
|
|
2253
2384
|
dirtyReasonSummary?: string[];
|
|
2254
2385
|
pendingReasonSummary?: string[];
|
|
2255
2386
|
}>;
|
|
2256
|
-
profile: {
|
|
2387
|
+
profile: HmrProfileProvenance & {
|
|
2257
2388
|
eventId?: string;
|
|
2258
2389
|
event?: ChangeEvent;
|
|
2259
2390
|
file?: string;
|
|
@@ -2298,6 +2429,16 @@ interface RuntimeState {
|
|
|
2298
2429
|
snapshotResolveMs?: number;
|
|
2299
2430
|
snapshotBuildMs?: number;
|
|
2300
2431
|
writeMs?: number;
|
|
2432
|
+
/** Tailwind 六个连续输出阶段均包含在 writeMs 中,不能与 writeMs 再次相加。 */
|
|
2433
|
+
tailwindPrepareMs?: number;
|
|
2434
|
+
tailwindGenerateMs?: number;
|
|
2435
|
+
tailwindCssMs?: number;
|
|
2436
|
+
tailwindTemplateMs?: number;
|
|
2437
|
+
tailwindJavaScriptMs?: number;
|
|
2438
|
+
tailwindFinalizeMs?: number;
|
|
2439
|
+
/** 来源解析与磁盘生成是 tailwindGenerateMs 的累计子项,多 root 可重叠,不能当作连续阶段相加。 */
|
|
2440
|
+
tailwindSourceResolveMs?: number;
|
|
2441
|
+
tailwindDiskGenerateMs?: number;
|
|
2301
2442
|
finalizePrepareMs?: number;
|
|
2302
2443
|
finalizeTemplateMs?: number;
|
|
2303
2444
|
finalizePublishMs?: number;
|
|
@@ -2336,6 +2477,7 @@ interface RuntimeState {
|
|
|
2336
2477
|
}>;
|
|
2337
2478
|
emittedSource: Map<string, string>;
|
|
2338
2479
|
sidecarImports: Set<string>;
|
|
2480
|
+
sidecarImportsByOwner: Map<string, Set<string>>;
|
|
2339
2481
|
};
|
|
2340
2482
|
watcher: {
|
|
2341
2483
|
rollupWatcherMap: Map<string, WatcherInstance>;
|
|
@@ -2493,6 +2635,8 @@ interface AutoRoutesService {
|
|
|
2493
2635
|
getSnapshot: () => AutoRoutes;
|
|
2494
2636
|
getReference: () => AutoRoutes;
|
|
2495
2637
|
getSignature: () => string;
|
|
2638
|
+
/** 返回最近完整扫描中的源码指纹;未知源码不能作为已发布的去重凭据。 */
|
|
2639
|
+
getSourceFingerprint: (filePath: string) => string | undefined;
|
|
2496
2640
|
getModuleCode: () => string;
|
|
2497
2641
|
getNamedModuleCode: () => string;
|
|
2498
2642
|
getWatchFiles: () => Iterable<string>;
|
|
@@ -2526,7 +2670,7 @@ interface CompilerContext {
|
|
|
2526
2670
|
buildService: BuildService;
|
|
2527
2671
|
scanService: ScanService;
|
|
2528
2672
|
currentBuildTarget?: BuildTarget;
|
|
2529
|
-
onStatefulHmrSourceChange?: (file: string, dirtyReasonSummary: string[]) => void;
|
|
2673
|
+
onStatefulHmrSourceChange?: (file: string, dirtyReasonSummary: string[], sourceEvent?: HmrProfileSourceEvent) => void;
|
|
2530
2674
|
}
|
|
2531
2675
|
//#endregion
|
|
2532
2676
|
//#region src/types/plugin.d.ts
|
|
@@ -2587,4 +2731,4 @@ declare module 'vite' {
|
|
|
2587
2731
|
*/
|
|
2588
2732
|
declare function defineConfig<T extends UserConfigExport>(config: T): T;
|
|
2589
2733
|
//#endregion
|
|
2590
|
-
export {
|
|
2734
|
+
export { WeappCompilerOutputRequest as $, NpmPackageFilesConfig as $n, WeappUniAppConfig as $t, Ref as A, GenerateDirsOptions as An, WEAPP_VITE_HOST_NAME as Ar, WeappAppPreludeConfig as At, BindingErrorLike as B, GenerateTemplateInlineSource as Bn, WeappViteRuntime as Br, WeappInjectWeapiConfig as Bt, LoadConfigOptions as C, AliasOptions as Cn, WeappLibVueTscOptions as Cr, AutoImportComponents as Ct, MethodDefinitions$1 as D, CopyGlobs as Dn, WeappManagedSharedTsconfigConfig as Dr, HandleWxmlOptions as Dt, InlineConfig$1 as E, ChunksConfig as En, WeappManagedServerTsconfigConfig as Er, EnhanceWxmlOptions as Et, RolldownPlugin as F, GenerateTemplate as Fn, resolveWeappViteHostMeta as Fr, WeappBuildScopeConfig as Ft, EntryJsonFragment as G, JsonMergeContext as Gn, getSupportedWeappVitePlatforms as Gr, WeappPreloadNetwork as Gt, BaseEntry as H, GenerateTemplatesConfig as Hn, WeappViteTargetInput as Hr, WeappInjectWebRuntimeGlobalsTarget as Ht, RolldownPluginOption as I, GenerateTemplateContext as In, ResolveWeappViteTargetOptions as Ir, WeappBuildScopeObjectConfig as It, ScanComponentItem as J, JsonMergeStrategy as Jn, resolveWeappViteTarget as Jr, WeappReactConfig as Jt, PageEntry as K, JsonMergeFunction as Kn, getSupportedWeappViteTargetDescriptors as Kr, WeappPreloadRule as Kt, RolldownWatchOptions as L, GenerateTemplateEntry as Ln, ResolvedWeappViteTarget as Lr, WeappHmrConfig as Lt, RolldownBuild as M, GenerateFileType as Mn, applyWeappViteHostMeta as Mr, WeappAutoRoutesConfig as Mt, RolldownOptions as N, GenerateFilenamesOptions as Nn, createWeappViteHostMeta as Nr, WeappAutoRoutesInclude as Nt, Plugin$2 as O, CopyOptions as On, WeappManagedTypeScriptConfig as Or, MultiPlatformConfig as Ot, RolldownOutput$1 as P, GenerateOptions as Pn, isWeappViteHost as Pr, WeappAutoRoutesIncludePattern as Pt, WeappCompilerHmrRequest as Q, NpmMainPackageConfig as Qn, WeappSubPackageConfig as Qt, RolldownWatcher$1 as R, GenerateTemplateFactory as Rn, WEB_PLATFORM_ALIASES as Rr, WeappInjectRequestGlobalsConfig as Rt, CompilerContext as S, Alias as Sn, WeappLibInternalDtsOptions as Sr, WeappViteConfig as St, ConfigEnv$1 as T, BuildNpmPackageMeta as Tn, WeappManagedNodeTsconfigConfig as Tr, EnhanceOptions as Tt, ComponentEntry as U, JsFormat as Un, WeappViteTargetKind as Ur, WeappMcpConfig as Ut, AppEntry as V, GenerateTemplateScope as Vn, WeappViteTargetDescriptor as Vr, WeappInjectWebRuntimeGlobalsConfig as Vt, Entry as W, JsonConfig as Wn, WebPlatform as Wr, WeappNpmConfig as Wt, WeappCompilerHmrAsset as X, NpmBuildOptions as Xn, WeappRouteRule as Xt, WxmlDep as Y, MpPlatform$1 as Yn, WeappRequestRuntimeConfig as Yt, WeappCompilerHmrPreparation as Z, NpmDependencyPattern as Zn, WeappRouteRules as Zt, definePageJson as _, WxmlTransformNode as _n, WeappLibComponentJson as _r, WeappDebugConfig as _t, UserConfigFnNoEnvPlain as a, WxmlRemoveAttrRule as an, SharedChunkMode as ar, WeappCompilerPluginOption as at, ChangeEvent as b, MultiPlatformProjectConfig as bn, WeappLibEntryContext as br, WeappTailwindcssOptions as bt, UserConfigFnPromise as c, WxmlValidationContext as cn, StyleConfigEntry as cr, WeappCompilerSourceClaim as ct, Component$1 as d, WxmlAttribute as dn, StyleScope as dr, ProjectConfig as dt, WeappVueConfig as en, NpmPluginPackageConfig as er, WeappCompilerPlugin as et, Page$1 as f, WxmlAttributeValue as fn, SubPackage as fr, SubPackageMetaValue as ft, defineComponentJson as g, WxmlTransformContext as gn, SubPackageStyleScope as gr, WeappAnalyzeHistoryConfig as gt, defineAppJson as h, WxmlTransform as hn, SubPackageStyleEntry as hr, WeappAnalyzeConfig as ht, UserConfigFnNoEnv as i, WeappWorkerConfig as in, SharedChunkDynamicImports as ir, WeappCompilerPluginFactory as it, ResolvedConfig$1 as j, GenerateExtensionsOptions as jn, WeappViteHostMeta as jr, WeappAppPreludeMode as jt, PluginOption as k, DeprecatedInlineDynamicImports as kn, WeappWebConfig as kr, ScanWxmlOptions as kt, defineConfig as l, WxmlValidationDiagnostic as ln, StyleConfigObject as lr, WeappCompilerSourceRequest as lt, Theme$1 as m, WxmlSourceLocation as mn, SubPackageStyleConfigObject as mr, WeappAnalyzeBudgetConfig as mt, UserConfigExport as n, WeappWebRuntimeConfig as nn, NpmSubPackageConfig as nr, WeappCompilerPluginContext as nt, UserConfigFnObject as o, WxmlRemoveOptions as on, SharedChunkOverride as or, WeappCompilerPluginPhase as ot, Sitemap$1 as p, WxmlElementInfo as pn, SubPackageStyleConfigEntry as pr, UserConfig$2 as pt, ComponentsMap as q, JsonMergeStage as qn, isWebPlatform as qr, WeappReactCompilerConfig as qt, UserConfigFn as r, WeappWevuConfig as rn, ResolvedAlias as rr, WeappCompilerPluginController as rt, UserConfigFnObjectPlain as s, WxmlValidate as sn, SharedChunkStrategy as sr, WeappCompilerResourceKind as st, UserConfig$1 as t, WeappVueTemplateConfig as tn, NpmStrategy as tr, WeappCompilerPluginCapabilities as tt, App$1 as u, WxmlValidationVisitor as un, StyleEntry as ur, WeappCompilerTransformResult as ut, defineSitemapJson as v, WxmlTransformResult as vn, WeappLibConfig as vr, WeappForwardConsoleConfig as vt, ComputedDefinitions$1 as w, AlipayNpmMode as wn, WeappManagedAppTsconfigConfig as wr, AutoImportComponentsOption as wt, WeappVitePluginApi as x, MultiPlatformProjectConfigs as xn, WeappLibFileName as xr, WeappUploadConfig as xt, defineThemeJson as y, WxmlTransformVisitor as yn, WeappLibDtsOptions as yr, WeappForwardConsoleLogLevel as yt, ViteDevServer$1 as z, GenerateTemplateFileSource as zn, WeappVitePlatform as zr, WeappInjectRequestGlobalsTarget as zt };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as WeappI18nConfig } from "./types-
|
|
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 };
|
|
1
|
+
import { Ar as WEAPP_VITE_HOST_NAME, Br as WeappViteRuntime, Fr as resolveWeappViteHostMeta, Gn as JsonMergeContext, Jn as JsonMergeStrategy, Kn as JsonMergeFunction, Mr as applyWeappViteHostMeta, Nr as createWeappViteHostMeta, Pr as isWeappViteHost, Q as WeappCompilerHmrRequest, St as WeappViteConfig, Wn as JsonConfig, X as WeappCompilerHmrAsset, Z as WeappCompilerHmrPreparation, _ as definePageJson, _n as WxmlTransformNode, a as UserConfigFnNoEnvPlain, an as WxmlRemoveAttrRule, at as WeappCompilerPluginOption, bn as MultiPlatformProjectConfig, c as UserConfigFnPromise, cn as WxmlValidationContext, d as Component, dn as WxmlAttribute, et as WeappCompilerPlugin, f as Page, fn as WxmlAttributeValue, g as defineComponentJson, gn as WxmlTransformContext, h as defineAppJson, hn as WxmlTransform, i as UserConfigFnNoEnv, jr as WeappViteHostMeta, l as defineConfig, ln as WxmlValidationDiagnostic, m as Theme, mn as WxmlSourceLocation, n as UserConfigExport, nt as WeappCompilerPluginContext, o as UserConfigFnObject, on as WxmlRemoveOptions, p as Sitemap, pn as WxmlElementInfo, qn as JsonMergeStage, r as UserConfigFn, rt as WeappCompilerPluginController, s as UserConfigFnObjectPlain, sn as WxmlValidate, t as UserConfig, tt as WeappCompilerPluginCapabilities, u as App, un as WxmlValidationVisitor, v as defineSitemapJson, vn as WxmlTransformResult, xn as MultiPlatformProjectConfigs, y as defineThemeJson, yn as WxmlTransformVisitor } from "./config-Bf6DWhyb.mjs";
|
|
2
|
+
import { t as WeappI18nConfig } from "./types-D-kfuyVa.mjs";
|
|
3
|
+
export { type App, type Component, type JsonConfig, type JsonMergeContext, type JsonMergeFunction, type JsonMergeStage, type JsonMergeStrategy, type MultiPlatformProjectConfig, type MultiPlatformProjectConfigs, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappCompilerHmrAsset, type WeappCompilerHmrPreparation, type WeappCompilerHmrRequest, type WeappCompilerPlugin, type WeappCompilerPluginCapabilities, type WeappCompilerPluginContext, type WeappCompilerPluginController, type WeappCompilerPluginOption, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, type WxmlAttribute, type WxmlAttributeValue, type WxmlElementInfo, type WxmlRemoveAttrRule, type WxmlRemoveOptions, type WxmlSourceLocation, type WxmlTransform, type WxmlTransformContext, type WxmlTransformNode, type WxmlTransformResult, type WxmlTransformVisitor, type WxmlValidate, type WxmlValidationContext, type WxmlValidationDiagnostic, type WxmlValidationVisitor, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
2
1
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
+
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DRGcCi3h.mjs";
|
|
4
4
|
export { WEAPP_VITE_HOST_NAME, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-
|
|
1
|
+
import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-CcHrsYaj.mjs";
|
|
2
2
|
//#region src/platforms/sourceAssets.ts
|
|
3
3
|
const PORTABLE_TEMPLATE_EXTENSIONS = ["wxml", "html"];
|
|
4
4
|
const PORTABLE_STYLE_EXTENSIONS = [
|