weapp-vite 5.4.0 → 5.5.1
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/dist/auto-routes.cjs +2 -2
- package/dist/auto-routes.mjs +1 -1
- package/dist/{chunk-UT7K35VH.mjs → chunk-2BJRVKKW.mjs} +4383 -3862
- package/dist/{chunk-KW3QAG67.mjs → chunk-IFYXRQC3.mjs} +1 -1
- package/dist/{chunk-XEHEGODS.cjs → chunk-PONRZBHY.cjs} +4355 -3834
- package/dist/{chunk-LX2OMRQ4.cjs → chunk-XMPAHTOR.cjs} +4 -4
- package/dist/cli.cjs +42 -36
- package/dist/cli.mjs +9 -3
- package/dist/{config-jhY9Idrt.d.ts → config-CUFqPmXh.d.ts} +30 -2
- package/dist/{config-DNP6NeTc.d.cts → config-Qcwf5OzO.d.cts} +30 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/json.d.cts +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +8 -8
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPONRZBHYcjs = require('./chunk-PONRZBHY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
|
|
@@ -12,10 +12,10 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
|
|
|
12
12
|
async function createCompilerContext(options) {
|
|
13
13
|
const key = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.key]), () => ( "default"));
|
|
14
14
|
if (!_optionalChain([options, 'optionalAccess', _2 => _2.key])) {
|
|
15
|
-
|
|
15
|
+
_chunkPONRZBHYcjs.resetCompilerContext.call(void 0, key);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
const ctx =
|
|
17
|
+
_chunkPONRZBHYcjs.setActiveCompilerContextKey.call(void 0, key);
|
|
18
|
+
const ctx = _chunkPONRZBHYcjs.getCompilerContext.call(void 0, key);
|
|
19
19
|
const { configService, scanService, autoRoutesService } = ctx;
|
|
20
20
|
await configService.load(options);
|
|
21
21
|
if (autoRoutesService) {
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXMPAHTORcjs = require('./chunk-XMPAHTOR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ var _chunkLX2OMRQ4cjs = require('./chunk-LX2OMRQ4.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkPONRZBHYcjs = require('./chunk-PONRZBHY.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
|
|
@@ -606,7 +606,7 @@ var CAC = class extends _events.EventEmitter {
|
|
|
606
606
|
};
|
|
607
607
|
var cac = (name = "") => new CAC(name);
|
|
608
608
|
|
|
609
|
-
// ../../node_modules/.pnpm/package-manager-detector@1.
|
|
609
|
+
// ../../node_modules/.pnpm/package-manager-detector@1.5.0/node_modules/package-manager-detector/dist/commands.mjs
|
|
610
610
|
_chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
|
|
611
611
|
function dashDashArg(agent, agentCommand) {
|
|
612
612
|
return (args) => {
|
|
@@ -631,6 +631,7 @@ var npm = {
|
|
|
631
631
|
"add": ["npm", "i", 0],
|
|
632
632
|
"upgrade": ["npm", "update", 0],
|
|
633
633
|
"upgrade-interactive": null,
|
|
634
|
+
"dedupe": ["npm", "dedupe", 0],
|
|
634
635
|
"execute": ["npx", 0],
|
|
635
636
|
"execute-local": ["npx", 0],
|
|
636
637
|
"uninstall": ["npm", "uninstall", 0],
|
|
@@ -645,6 +646,7 @@ var yarn = {
|
|
|
645
646
|
"add": ["yarn", "add", 0],
|
|
646
647
|
"upgrade": ["yarn", "upgrade", 0],
|
|
647
648
|
"upgrade-interactive": ["yarn", "upgrade-interactive", 0],
|
|
649
|
+
"dedupe": null,
|
|
648
650
|
"execute": ["npx", 0],
|
|
649
651
|
"execute-local": dashDashArg("yarn", "exec"),
|
|
650
652
|
"uninstall": ["yarn", "remove", 0],
|
|
@@ -655,6 +657,7 @@ var yarnBerry = {
|
|
|
655
657
|
"frozen": ["yarn", "install", "--immutable", 0],
|
|
656
658
|
"upgrade": ["yarn", "up", 0],
|
|
657
659
|
"upgrade-interactive": ["yarn", "up", "-i", 0],
|
|
660
|
+
"dedupe": ["yarn", "dedupe", 0],
|
|
658
661
|
"execute": ["yarn", "dlx", 0],
|
|
659
662
|
"execute-local": ["yarn", "exec", 0],
|
|
660
663
|
// Yarn 2+ removed 'global', see https://github.com/yarnpkg/berry/issues/821
|
|
@@ -670,6 +673,7 @@ var pnpm = {
|
|
|
670
673
|
"add": ["pnpm", "add", 0],
|
|
671
674
|
"upgrade": ["pnpm", "update", 0],
|
|
672
675
|
"upgrade-interactive": ["pnpm", "update", "-i", 0],
|
|
676
|
+
"dedupe": ["pnpm", "dedupe", 0],
|
|
673
677
|
"execute": ["pnpm", "dlx", 0],
|
|
674
678
|
"execute-local": ["pnpm", "exec", 0],
|
|
675
679
|
"uninstall": ["pnpm", "remove", 0],
|
|
@@ -684,6 +688,7 @@ var bun = {
|
|
|
684
688
|
"add": ["bun", "add", 0],
|
|
685
689
|
"upgrade": ["bun", "update", 0],
|
|
686
690
|
"upgrade-interactive": ["bun", "update", "-i", 0],
|
|
691
|
+
"dedupe": null,
|
|
687
692
|
"execute": ["bun", "x", 0],
|
|
688
693
|
"execute-local": ["bun", "x", 0],
|
|
689
694
|
"uninstall": ["bun", "remove", 0],
|
|
@@ -698,6 +703,7 @@ var deno = {
|
|
|
698
703
|
"add": ["deno", "add", 0],
|
|
699
704
|
"upgrade": ["deno", "outdated", "--update", 0],
|
|
700
705
|
"upgrade-interactive": ["deno", "outdated", "--update", 0],
|
|
706
|
+
"dedupe": null,
|
|
701
707
|
"execute": denoExecute(),
|
|
702
708
|
"execute-local": ["deno", "task", "--eval", 0],
|
|
703
709
|
"uninstall": ["deno", "remove", 0],
|
|
@@ -811,7 +817,7 @@ async function generate(options) {
|
|
|
811
817
|
for (const { code, fileName: fileName2 } of files) {
|
|
812
818
|
if (code !== void 0) {
|
|
813
819
|
await _fsextra2.default.outputFile(_pathe2.default.resolve(basepath, fileName2), code, "utf8");
|
|
814
|
-
|
|
820
|
+
_chunkPONRZBHYcjs.logger_default.success(`${composePath(outDir, fileName2)} \u521B\u5EFA\u6210\u529F\uFF01`);
|
|
815
821
|
}
|
|
816
822
|
}
|
|
817
823
|
}
|
|
@@ -849,7 +855,7 @@ async function readTemplateFile(templatePath, context) {
|
|
|
849
855
|
// src/cli.ts
|
|
850
856
|
var cli = cac("weapp-vite");
|
|
851
857
|
try {
|
|
852
|
-
|
|
858
|
+
_chunkPONRZBHYcjs.checkRuntime.call(void 0, {
|
|
853
859
|
bun: "0.0.0",
|
|
854
860
|
deno: "0.0.0",
|
|
855
861
|
node: "20.19.0"
|
|
@@ -867,7 +873,7 @@ async function loadConfig(configFile) {
|
|
|
867
873
|
mode: "development"
|
|
868
874
|
};
|
|
869
875
|
const loaded = await _vite.loadConfigFromFile.call(void 0, configEnv, resolvedConfigFile, cwd);
|
|
870
|
-
const weappConfigFilePath = await
|
|
876
|
+
const weappConfigFilePath = await _chunkPONRZBHYcjs.resolveWeappConfigFile.call(void 0, {
|
|
871
877
|
root: cwd,
|
|
872
878
|
specified: resolvedConfigFile
|
|
873
879
|
});
|
|
@@ -915,15 +921,15 @@ function logBuildAppFinish(configService, webServer, options = {}) {
|
|
|
915
921
|
const urls = webServer.resolvedUrls;
|
|
916
922
|
const candidates = urls ? [..._nullishCoalesce(urls.local, () => ( [])), ..._nullishCoalesce(urls.network, () => ( []))] : [];
|
|
917
923
|
if (candidates.length > 0) {
|
|
918
|
-
|
|
924
|
+
_chunkPONRZBHYcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
|
|
919
925
|
for (const url of candidates) {
|
|
920
|
-
|
|
926
|
+
_chunkPONRZBHYcjs.logger_default.info(` \u279C ${url}`);
|
|
921
927
|
}
|
|
922
928
|
} else {
|
|
923
|
-
|
|
929
|
+
_chunkPONRZBHYcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
924
930
|
}
|
|
925
931
|
} else {
|
|
926
|
-
|
|
932
|
+
_chunkPONRZBHYcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
927
933
|
}
|
|
928
934
|
logBuildAppFinishOnlyShowOnce = true;
|
|
929
935
|
return;
|
|
@@ -937,19 +943,19 @@ function logBuildAppFinish(configService, webServer, options = {}) {
|
|
|
937
943
|
args: ["run", "open"]
|
|
938
944
|
}));
|
|
939
945
|
const devCommand = `${command} ${args.join(" ")}`;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
946
|
+
_chunkPONRZBHYcjs.logger_default.success("\u5E94\u7528\u6784\u5EFA\u5B8C\u6210\uFF01\u9884\u89C8\u65B9\u5F0F ( `2` \u79CD\u9009\u5176\u4E00\u5373\u53EF)\uFF1A");
|
|
947
|
+
_chunkPONRZBHYcjs.logger_default.info(`\u6267\u884C \`${devCommand}\` \u53EF\u4EE5\u76F4\u63A5\u5728 \`\u5FAE\u4FE1\u5F00\u53D1\u8005\u5DE5\u5177\` \u91CC\u6253\u5F00\u5F53\u524D\u5E94\u7528`);
|
|
948
|
+
_chunkPONRZBHYcjs.logger_default.info("\u6216\u624B\u52A8\u6253\u5F00\u5FAE\u4FE1\u5F00\u53D1\u8005\u5DE5\u5177\uFF0C\u5BFC\u5165\u6839\u76EE\u5F55(`project.config.json` \u6587\u4EF6\u6240\u5728\u7684\u76EE\u5F55)\uFF0C\u5373\u53EF\u9884\u89C8\u6548\u679C");
|
|
943
949
|
if (!skipWeb && webServer) {
|
|
944
950
|
const urls = webServer.resolvedUrls;
|
|
945
951
|
const candidates = urls ? [..._nullishCoalesce(urls.local, () => ( [])), ..._nullishCoalesce(urls.network, () => ( []))] : [];
|
|
946
952
|
if (candidates.length > 0) {
|
|
947
|
-
|
|
953
|
+
_chunkPONRZBHYcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
|
|
948
954
|
for (const url of candidates) {
|
|
949
|
-
|
|
955
|
+
_chunkPONRZBHYcjs.logger_default.info(` \u279C ${url}`);
|
|
950
956
|
}
|
|
951
957
|
} else {
|
|
952
|
-
|
|
958
|
+
_chunkPONRZBHYcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
953
959
|
}
|
|
954
960
|
}
|
|
955
961
|
logBuildAppFinishOnlyShowOnce = true;
|
|
@@ -979,11 +985,11 @@ async function openIde() {
|
|
|
979
985
|
try {
|
|
980
986
|
await _weappidecli.parse.call(void 0, ["open", "-p"]);
|
|
981
987
|
} catch (error) {
|
|
982
|
-
|
|
988
|
+
_chunkPONRZBHYcjs.logger_default.error(error);
|
|
983
989
|
}
|
|
984
990
|
}
|
|
985
991
|
function logRuntimeTarget(targets) {
|
|
986
|
-
|
|
992
|
+
_chunkPONRZBHYcjs.logger_default.info(`\u76EE\u6807\u5E73\u53F0\uFF1A${targets.label}`);
|
|
987
993
|
}
|
|
988
994
|
function resolveRuntimeTargets(options) {
|
|
989
995
|
const rawPlatform = typeof options.platform === "string" ? options.platform : typeof options.p === "string" ? options.p : void 0;
|
|
@@ -991,17 +997,17 @@ function resolveRuntimeTargets(options) {
|
|
|
991
997
|
return {
|
|
992
998
|
runMini: true,
|
|
993
999
|
runWeb: false,
|
|
994
|
-
mpPlatform:
|
|
995
|
-
label:
|
|
1000
|
+
mpPlatform: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM,
|
|
1001
|
+
label: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM
|
|
996
1002
|
};
|
|
997
1003
|
}
|
|
998
|
-
const normalized =
|
|
1004
|
+
const normalized = _chunkPONRZBHYcjs.normalizeMiniPlatform.call(void 0, rawPlatform);
|
|
999
1005
|
if (!normalized) {
|
|
1000
1006
|
return {
|
|
1001
1007
|
runMini: true,
|
|
1002
1008
|
runWeb: false,
|
|
1003
|
-
mpPlatform:
|
|
1004
|
-
label:
|
|
1009
|
+
mpPlatform: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM,
|
|
1010
|
+
label: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM
|
|
1005
1011
|
};
|
|
1006
1012
|
}
|
|
1007
1013
|
if (normalized === "h5" || normalized === "web") {
|
|
@@ -1012,7 +1018,7 @@ function resolveRuntimeTargets(options) {
|
|
|
1012
1018
|
label: normalized === "h5" ? "h5" : "web"
|
|
1013
1019
|
};
|
|
1014
1020
|
}
|
|
1015
|
-
const mpPlatform =
|
|
1021
|
+
const mpPlatform = _chunkPONRZBHYcjs.resolveMiniPlatform.call(void 0, normalized);
|
|
1016
1022
|
if (mpPlatform) {
|
|
1017
1023
|
return {
|
|
1018
1024
|
runMini: true,
|
|
@@ -1021,12 +1027,12 @@ function resolveRuntimeTargets(options) {
|
|
|
1021
1027
|
label: mpPlatform
|
|
1022
1028
|
};
|
|
1023
1029
|
}
|
|
1024
|
-
|
|
1030
|
+
_chunkPONRZBHYcjs.logger_default.warn(`\u672A\u8BC6\u522B\u7684\u5E73\u53F0 "${rawPlatform}"\uFF0C\u5DF2\u56DE\u9000\u5230 ${_chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM}`);
|
|
1025
1031
|
return {
|
|
1026
1032
|
runMini: true,
|
|
1027
1033
|
runWeb: false,
|
|
1028
|
-
mpPlatform:
|
|
1029
|
-
label:
|
|
1034
|
+
mpPlatform: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM,
|
|
1035
|
+
label: _chunkPONRZBHYcjs.DEFAULT_MP_PLATFORM
|
|
1030
1036
|
};
|
|
1031
1037
|
}
|
|
1032
1038
|
function createInlineConfig(mpPlatform) {
|
|
@@ -1048,7 +1054,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
1048
1054
|
const targets = resolveRuntimeTargets(options);
|
|
1049
1055
|
logRuntimeTarget(targets);
|
|
1050
1056
|
const inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1051
|
-
const { buildService, configService, webService } = await
|
|
1057
|
+
const { buildService, configService, webService } = await _chunkXMPAHTORcjs.createCompilerContext.call(void 0, {
|
|
1052
1058
|
cwd: root,
|
|
1053
1059
|
mode: _nullishCoalesce(options.mode, () => ( "development")),
|
|
1054
1060
|
isDev: true,
|
|
@@ -1063,7 +1069,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
1063
1069
|
try {
|
|
1064
1070
|
webServer = await _optionalChain([webService, 'optionalAccess', _15 => _15.startDevServer, 'call', _16 => _16()]);
|
|
1065
1071
|
} catch (error) {
|
|
1066
|
-
|
|
1072
|
+
_chunkPONRZBHYcjs.logger_default.error(error);
|
|
1067
1073
|
throw error;
|
|
1068
1074
|
}
|
|
1069
1075
|
}
|
|
@@ -1091,7 +1097,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
1091
1097
|
const targets = resolveRuntimeTargets(options);
|
|
1092
1098
|
logRuntimeTarget(targets);
|
|
1093
1099
|
const inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1094
|
-
const { buildService, configService, webService } = await
|
|
1100
|
+
const { buildService, configService, webService } = await _chunkXMPAHTORcjs.createCompilerContext.call(void 0, {
|
|
1095
1101
|
cwd: root,
|
|
1096
1102
|
mode: _nullishCoalesce(options.mode, () => ( "production")),
|
|
1097
1103
|
configFile,
|
|
@@ -1104,9 +1110,9 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
1104
1110
|
if (targets.runWeb && _optionalChain([webConfig, 'optionalAccess', _17 => _17.enabled])) {
|
|
1105
1111
|
try {
|
|
1106
1112
|
await _optionalChain([webService, 'optionalAccess', _18 => _18.build, 'call', _19 => _19()]);
|
|
1107
|
-
|
|
1113
|
+
_chunkPONRZBHYcjs.logger_default.success(`Web \u6784\u5EFA\u5B8C\u6210\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF1A${configService.relativeCwd(webConfig.outDir)}`);
|
|
1108
1114
|
} catch (error) {
|
|
1109
|
-
|
|
1115
|
+
_chunkPONRZBHYcjs.logger_default.error(error);
|
|
1110
1116
|
throw error;
|
|
1111
1117
|
}
|
|
1112
1118
|
}
|
|
@@ -1123,7 +1129,7 @@ cli.command("init").action(async () => {
|
|
|
1123
1129
|
command: "weapp-vite"
|
|
1124
1130
|
});
|
|
1125
1131
|
} catch (error) {
|
|
1126
|
-
|
|
1132
|
+
_chunkPONRZBHYcjs.logger_default.error(error);
|
|
1127
1133
|
}
|
|
1128
1134
|
});
|
|
1129
1135
|
cli.command("open").action(async () => {
|
|
@@ -1133,7 +1139,7 @@ cli.command("npm").alias("build:npm").alias("build-npm").action(async () => {
|
|
|
1133
1139
|
try {
|
|
1134
1140
|
await _weappidecli.parse.call(void 0, ["build-npm", "-p"]);
|
|
1135
1141
|
} catch (error) {
|
|
1136
|
-
|
|
1142
|
+
_chunkPONRZBHYcjs.logger_default.error(error);
|
|
1137
1143
|
}
|
|
1138
1144
|
});
|
|
1139
1145
|
cli.command("g [filepath]", "generate component").alias("generate").option("-a, --app", "type app").option("-p, --page", "type app").option("-n, --name <name>", "filename").action(async (filepath, options) => {
|
|
@@ -1148,7 +1154,7 @@ cli.command("g [filepath]", "generate component").alias("generate").option("-a,
|
|
|
1148
1154
|
fileName = "app";
|
|
1149
1155
|
}
|
|
1150
1156
|
if (filepath === void 0) {
|
|
1151
|
-
|
|
1157
|
+
_chunkPONRZBHYcjs.logger_default.error("weapp-vite generate <outDir> \u547D\u4EE4\u5FC5\u987B\u4F20\u5165\u8DEF\u5F84\u53C2\u6570 outDir");
|
|
1152
1158
|
return;
|
|
1153
1159
|
}
|
|
1154
1160
|
if (options.page) {
|
|
@@ -1168,5 +1174,5 @@ cli.command("create [outDir]", "create project").option("-t, --template <type>",
|
|
|
1168
1174
|
await _init.createProject.call(void 0, outDir, options.template);
|
|
1169
1175
|
});
|
|
1170
1176
|
cli.help();
|
|
1171
|
-
cli.version(
|
|
1177
|
+
cli.version(_chunkPONRZBHYcjs.VERSION);
|
|
1172
1178
|
cli.parse();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IFYXRQC3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_MP_PLATFORM,
|
|
6
6
|
VERSION,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
normalizeMiniPlatform,
|
|
10
10
|
resolveMiniPlatform,
|
|
11
11
|
resolveWeappConfigFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2BJRVKKW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_esm_shims
|
|
15
15
|
} from "./chunk-7MAZ2JUY.mjs";
|
|
@@ -606,7 +606,7 @@ var CAC = class extends EventEmitter {
|
|
|
606
606
|
};
|
|
607
607
|
var cac = (name = "") => new CAC(name);
|
|
608
608
|
|
|
609
|
-
// ../../node_modules/.pnpm/package-manager-detector@1.
|
|
609
|
+
// ../../node_modules/.pnpm/package-manager-detector@1.5.0/node_modules/package-manager-detector/dist/commands.mjs
|
|
610
610
|
init_esm_shims();
|
|
611
611
|
function dashDashArg(agent, agentCommand) {
|
|
612
612
|
return (args) => {
|
|
@@ -631,6 +631,7 @@ var npm = {
|
|
|
631
631
|
"add": ["npm", "i", 0],
|
|
632
632
|
"upgrade": ["npm", "update", 0],
|
|
633
633
|
"upgrade-interactive": null,
|
|
634
|
+
"dedupe": ["npm", "dedupe", 0],
|
|
634
635
|
"execute": ["npx", 0],
|
|
635
636
|
"execute-local": ["npx", 0],
|
|
636
637
|
"uninstall": ["npm", "uninstall", 0],
|
|
@@ -645,6 +646,7 @@ var yarn = {
|
|
|
645
646
|
"add": ["yarn", "add", 0],
|
|
646
647
|
"upgrade": ["yarn", "upgrade", 0],
|
|
647
648
|
"upgrade-interactive": ["yarn", "upgrade-interactive", 0],
|
|
649
|
+
"dedupe": null,
|
|
648
650
|
"execute": ["npx", 0],
|
|
649
651
|
"execute-local": dashDashArg("yarn", "exec"),
|
|
650
652
|
"uninstall": ["yarn", "remove", 0],
|
|
@@ -655,6 +657,7 @@ var yarnBerry = {
|
|
|
655
657
|
"frozen": ["yarn", "install", "--immutable", 0],
|
|
656
658
|
"upgrade": ["yarn", "up", 0],
|
|
657
659
|
"upgrade-interactive": ["yarn", "up", "-i", 0],
|
|
660
|
+
"dedupe": ["yarn", "dedupe", 0],
|
|
658
661
|
"execute": ["yarn", "dlx", 0],
|
|
659
662
|
"execute-local": ["yarn", "exec", 0],
|
|
660
663
|
// Yarn 2+ removed 'global', see https://github.com/yarnpkg/berry/issues/821
|
|
@@ -670,6 +673,7 @@ var pnpm = {
|
|
|
670
673
|
"add": ["pnpm", "add", 0],
|
|
671
674
|
"upgrade": ["pnpm", "update", 0],
|
|
672
675
|
"upgrade-interactive": ["pnpm", "update", "-i", 0],
|
|
676
|
+
"dedupe": ["pnpm", "dedupe", 0],
|
|
673
677
|
"execute": ["pnpm", "dlx", 0],
|
|
674
678
|
"execute-local": ["pnpm", "exec", 0],
|
|
675
679
|
"uninstall": ["pnpm", "remove", 0],
|
|
@@ -684,6 +688,7 @@ var bun = {
|
|
|
684
688
|
"add": ["bun", "add", 0],
|
|
685
689
|
"upgrade": ["bun", "update", 0],
|
|
686
690
|
"upgrade-interactive": ["bun", "update", "-i", 0],
|
|
691
|
+
"dedupe": null,
|
|
687
692
|
"execute": ["bun", "x", 0],
|
|
688
693
|
"execute-local": ["bun", "x", 0],
|
|
689
694
|
"uninstall": ["bun", "remove", 0],
|
|
@@ -698,6 +703,7 @@ var deno = {
|
|
|
698
703
|
"add": ["deno", "add", 0],
|
|
699
704
|
"upgrade": ["deno", "outdated", "--update", 0],
|
|
700
705
|
"upgrade-interactive": ["deno", "outdated", "--update", 0],
|
|
706
|
+
"dedupe": null,
|
|
701
707
|
"execute": denoExecute(),
|
|
702
708
|
"execute-local": ["deno", "task", "--eval", 0],
|
|
703
709
|
"uninstall": ["deno", "remove", 0],
|
|
@@ -206,6 +206,21 @@ interface BuildNpmPackageMeta {
|
|
|
206
206
|
entry: InputOption;
|
|
207
207
|
}
|
|
208
208
|
type JsFormat = 'cjs' | 'esm';
|
|
209
|
+
type SharedChunkStrategy = 'hoist' | 'duplicate';
|
|
210
|
+
interface ChunksConfig {
|
|
211
|
+
/**
|
|
212
|
+
* @description 控制跨分包共享代码的输出策略
|
|
213
|
+
* - `duplicate`: 默认策略,将共享代码复制到各自的分包中
|
|
214
|
+
* - `hoist`: 将共享代码提炼到主包中
|
|
215
|
+
* @default 'duplicate'
|
|
216
|
+
*/
|
|
217
|
+
sharedStrategy?: SharedChunkStrategy;
|
|
218
|
+
/**
|
|
219
|
+
* @description 是否输出分包优化日志,帮助确认共享模块被复制或回退的位置
|
|
220
|
+
* @default true
|
|
221
|
+
*/
|
|
222
|
+
logOptimization?: boolean;
|
|
223
|
+
}
|
|
209
224
|
interface WeappViteConfig {
|
|
210
225
|
/**
|
|
211
226
|
* @description 应用入口目录 (app.json 所在的目录)
|
|
@@ -331,6 +346,10 @@ interface WeappViteConfig {
|
|
|
331
346
|
*/
|
|
332
347
|
entry?: string | string[];
|
|
333
348
|
};
|
|
349
|
+
/**
|
|
350
|
+
* @description 共享代码拆分策略配置
|
|
351
|
+
*/
|
|
352
|
+
chunks?: ChunksConfig;
|
|
334
353
|
}
|
|
335
354
|
type UserConfig = UserConfig$1 & {
|
|
336
355
|
weapp?: WeappViteConfig;
|
|
@@ -463,6 +482,7 @@ interface ConfigService {
|
|
|
463
482
|
mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
464
483
|
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
|
|
465
484
|
mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
|
|
485
|
+
mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
466
486
|
readonly defineImportMetaEnv: Record<string, any>;
|
|
467
487
|
readonly cwd: string;
|
|
468
488
|
readonly isDev: boolean;
|
|
@@ -498,6 +518,12 @@ interface ResolvedWeappWebConfig {
|
|
|
498
518
|
source?: WeappWebConfig;
|
|
499
519
|
}
|
|
500
520
|
|
|
521
|
+
interface JsonResolvableEntry {
|
|
522
|
+
json?: any;
|
|
523
|
+
jsonPath?: string;
|
|
524
|
+
type?: 'app' | 'page' | 'component' | 'plugin';
|
|
525
|
+
}
|
|
526
|
+
|
|
501
527
|
type HashInput = string | Buffer;
|
|
502
528
|
declare class FileCache<T extends object> {
|
|
503
529
|
cache: LRUCache<string, T>;
|
|
@@ -514,7 +540,7 @@ declare class FileCache<T extends object> {
|
|
|
514
540
|
|
|
515
541
|
interface JsonService {
|
|
516
542
|
read: (filepath: string) => Promise<any>;
|
|
517
|
-
resolve: (entry:
|
|
543
|
+
resolve: (entry: JsonResolvableEntry) => string | undefined;
|
|
518
544
|
cache: FileCache<any>;
|
|
519
545
|
}
|
|
520
546
|
|
|
@@ -625,6 +651,7 @@ interface RuntimeState {
|
|
|
625
651
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
626
652
|
appEntry?: AppEntry;
|
|
627
653
|
pluginJson?: Plugin;
|
|
654
|
+
pluginJsonPath?: string;
|
|
628
655
|
isDirty: boolean;
|
|
629
656
|
independentDirtyRoots: Set<string>;
|
|
630
657
|
};
|
|
@@ -639,6 +666,7 @@ interface RuntimeState {
|
|
|
639
666
|
interface ScanService {
|
|
640
667
|
appEntry?: AppEntry;
|
|
641
668
|
pluginJson?: Plugin;
|
|
669
|
+
pluginJsonPath?: string;
|
|
642
670
|
subPackageMap: Map<string, SubPackageMetaValue>;
|
|
643
671
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
644
672
|
loadAppEntry: () => Promise<AppEntry>;
|
|
@@ -747,4 +775,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
|
|
|
747
775
|
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
748
776
|
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
749
777
|
|
|
750
|
-
export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type
|
|
778
|
+
export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type ChunksConfig as D, type EnhanceWxmlOptions as E, type SubPackageMetaValue as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type WxmlDep as I, type JsFormat as J, type ScanComponentItem as K, type LoadConfigOptions as L, type MpPlatform as M, type ComponentsMap as N, type BaseEntry as O, type ProjectConfig as P, type Entry as Q, type ResolvedAlias as R, type SubPackage as S, type AppEntry as T, type UserConfig as U, type PageEntry as V, type WeappViteConfig as W, type ComponentEntry as X, type EntryJsonFragment as Y, type WeappVitePluginApi as Z, type ChangeEvent as _, defineAppJson as a, definePageJson as b, defineComponentJson as c, defineConfig as d, defineSitemapJson as e, defineThemeJson as f, type AliasOptions as g, type GenerateDirsOptions as h, type GenerateFilenamesOptions as i, type GenerateFileType as j, type GenerateTemplateContext as k, type GenerateTemplateFileSource as l, type GenerateTemplateInlineSource as m, type GenerateTemplateFactory as n, type GenerateTemplate as o, type GenerateTemplateEntry as p, type GenerateTemplateScope as q, type GenerateTemplatesConfig as r, type GenerateOptions as s, type CopyOptions as t, type CopyGlobs as u, type WeappWebConfig as v, type AutoImportComponents as w, type ScanWxmlOptions as x, type EnhanceOptions as y, type SharedChunkStrategy as z };
|
|
@@ -206,6 +206,21 @@ interface BuildNpmPackageMeta {
|
|
|
206
206
|
entry: InputOption;
|
|
207
207
|
}
|
|
208
208
|
type JsFormat = 'cjs' | 'esm';
|
|
209
|
+
type SharedChunkStrategy = 'hoist' | 'duplicate';
|
|
210
|
+
interface ChunksConfig {
|
|
211
|
+
/**
|
|
212
|
+
* @description 控制跨分包共享代码的输出策略
|
|
213
|
+
* - `duplicate`: 默认策略,将共享代码复制到各自的分包中
|
|
214
|
+
* - `hoist`: 将共享代码提炼到主包中
|
|
215
|
+
* @default 'duplicate'
|
|
216
|
+
*/
|
|
217
|
+
sharedStrategy?: SharedChunkStrategy;
|
|
218
|
+
/**
|
|
219
|
+
* @description 是否输出分包优化日志,帮助确认共享模块被复制或回退的位置
|
|
220
|
+
* @default true
|
|
221
|
+
*/
|
|
222
|
+
logOptimization?: boolean;
|
|
223
|
+
}
|
|
209
224
|
interface WeappViteConfig {
|
|
210
225
|
/**
|
|
211
226
|
* @description 应用入口目录 (app.json 所在的目录)
|
|
@@ -331,6 +346,10 @@ interface WeappViteConfig {
|
|
|
331
346
|
*/
|
|
332
347
|
entry?: string | string[];
|
|
333
348
|
};
|
|
349
|
+
/**
|
|
350
|
+
* @description 共享代码拆分策略配置
|
|
351
|
+
*/
|
|
352
|
+
chunks?: ChunksConfig;
|
|
334
353
|
}
|
|
335
354
|
type UserConfig = UserConfig$1 & {
|
|
336
355
|
weapp?: WeappViteConfig;
|
|
@@ -463,6 +482,7 @@ interface ConfigService {
|
|
|
463
482
|
mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
464
483
|
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
|
|
465
484
|
mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
|
|
485
|
+
mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
466
486
|
readonly defineImportMetaEnv: Record<string, any>;
|
|
467
487
|
readonly cwd: string;
|
|
468
488
|
readonly isDev: boolean;
|
|
@@ -498,6 +518,12 @@ interface ResolvedWeappWebConfig {
|
|
|
498
518
|
source?: WeappWebConfig;
|
|
499
519
|
}
|
|
500
520
|
|
|
521
|
+
interface JsonResolvableEntry {
|
|
522
|
+
json?: any;
|
|
523
|
+
jsonPath?: string;
|
|
524
|
+
type?: 'app' | 'page' | 'component' | 'plugin';
|
|
525
|
+
}
|
|
526
|
+
|
|
501
527
|
type HashInput = string | Buffer;
|
|
502
528
|
declare class FileCache<T extends object> {
|
|
503
529
|
cache: LRUCache<string, T>;
|
|
@@ -514,7 +540,7 @@ declare class FileCache<T extends object> {
|
|
|
514
540
|
|
|
515
541
|
interface JsonService {
|
|
516
542
|
read: (filepath: string) => Promise<any>;
|
|
517
|
-
resolve: (entry:
|
|
543
|
+
resolve: (entry: JsonResolvableEntry) => string | undefined;
|
|
518
544
|
cache: FileCache<any>;
|
|
519
545
|
}
|
|
520
546
|
|
|
@@ -625,6 +651,7 @@ interface RuntimeState {
|
|
|
625
651
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
626
652
|
appEntry?: AppEntry;
|
|
627
653
|
pluginJson?: Plugin;
|
|
654
|
+
pluginJsonPath?: string;
|
|
628
655
|
isDirty: boolean;
|
|
629
656
|
independentDirtyRoots: Set<string>;
|
|
630
657
|
};
|
|
@@ -639,6 +666,7 @@ interface RuntimeState {
|
|
|
639
666
|
interface ScanService {
|
|
640
667
|
appEntry?: AppEntry;
|
|
641
668
|
pluginJson?: Plugin;
|
|
669
|
+
pluginJsonPath?: string;
|
|
642
670
|
subPackageMap: Map<string, SubPackageMetaValue>;
|
|
643
671
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
644
672
|
loadAppEntry: () => Promise<AppEntry>;
|
|
@@ -747,4 +775,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
|
|
|
747
775
|
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
748
776
|
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
749
777
|
|
|
750
|
-
export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type
|
|
778
|
+
export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type ChunksConfig as D, type EnhanceWxmlOptions as E, type SubPackageMetaValue as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type WxmlDep as I, type JsFormat as J, type ScanComponentItem as K, type LoadConfigOptions as L, type MpPlatform as M, type ComponentsMap as N, type BaseEntry as O, type ProjectConfig as P, type Entry as Q, type ResolvedAlias as R, type SubPackage as S, type AppEntry as T, type UserConfig as U, type PageEntry as V, type WeappViteConfig as W, type ComponentEntry as X, type EntryJsonFragment as Y, type WeappVitePluginApi as Z, type ChangeEvent as _, defineAppJson as a, definePageJson as b, defineComponentJson as c, defineConfig as d, defineSitemapJson as e, defineThemeJson as f, type AliasOptions as g, type GenerateDirsOptions as h, type GenerateFilenamesOptions as i, type GenerateFileType as j, type GenerateTemplateContext as k, type GenerateTemplateFileSource as l, type GenerateTemplateInlineSource as m, type GenerateTemplateFactory as n, type GenerateTemplate as o, type GenerateTemplateEntry as p, type GenerateTemplateScope as q, type GenerateTemplatesConfig as r, type GenerateOptions as s, type CopyOptions as t, type CopyGlobs as u, type WeappWebConfig as v, type AutoImportComponents as w, type ScanWxmlOptions as x, type EnhanceOptions as y, type SharedChunkStrategy as z };
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
2
|
-
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
2
|
+
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
|
|
3
3
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
4
4
|
import 'rolldown';
|
|
5
5
|
import './routes-C9hKJjXs.cjs';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
2
|
-
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
2
|
+
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
|
|
3
3
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
4
4
|
import 'rolldown';
|
|
5
5
|
import './routes-C9hKJjXs.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkXMPAHTORcjs = require('./chunk-XMPAHTOR.cjs');
|
|
4
|
+
require('./chunk-PONRZBHY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkDVVMF6NDcjs = require('./chunk-DVVMF6ND.cjs');
|
|
@@ -27,4 +27,4 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
exports.createCompilerContext =
|
|
30
|
+
exports.createCompilerContext = _chunkXMPAHTORcjs.createCompilerContext; exports.defineAppJson = _chunkBT7FLFCCcjs.defineAppJson; exports.defineComponentJson = _chunkBT7FLFCCcjs.defineComponentJson; exports.defineConfig = _chunkDVVMF6NDcjs.defineConfig; exports.definePageJson = _chunkBT7FLFCCcjs.definePageJson; exports.defineSitemapJson = _chunkBT7FLFCCcjs.defineSitemapJson; exports.defineThemeJson = _chunkBT7FLFCCcjs.defineThemeJson;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoadConfigOptions, C as CompilerContext } from './config-
|
|
2
|
-
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
1
|
+
import { L as LoadConfigOptions, C as CompilerContext } from './config-Qcwf5OzO.cjs';
|
|
2
|
+
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
|
|
3
3
|
export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
|
|
4
4
|
export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFnObject, ViteDevServer } from 'vite';
|
|
5
5
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoadConfigOptions, C as CompilerContext } from './config-
|
|
2
|
-
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
1
|
+
import { L as LoadConfigOptions, C as CompilerContext } from './config-CUFqPmXh.js';
|
|
2
|
+
export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
|
|
3
3
|
export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
|
|
4
4
|
export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFnObject, ViteDevServer } from 'vite';
|
|
5
5
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
package/dist/index.mjs
CHANGED
package/dist/json.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
2
|
-
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
2
|
+
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
|
|
3
3
|
import 'rolldown';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import './routes-C9hKJjXs.cjs';
|
package/dist/json.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
2
|
-
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-
|
|
2
|
+
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
|
|
3
3
|
import 'rolldown';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import './routes-C9hKJjXs.js';
|
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Alias, g as AliasOptions,
|
|
1
|
+
export { A as Alias, g as AliasOptions, T as AppEntry, w as AutoImportComponents, O as BaseEntry, B as BuildNpmPackageMeta, _ as ChangeEvent, D as ChunksConfig, X as ComponentEntry, N as ComponentsMap, u as CopyGlobs, t as CopyOptions, y as EnhanceOptions, E as EnhanceWxmlOptions, Q as Entry, Y as EntryJsonFragment, h as GenerateDirsOptions, G as GenerateExtensionsOptions, j as GenerateFileType, i as GenerateFilenamesOptions, s as GenerateOptions, o as GenerateTemplate, k as GenerateTemplateContext, p as GenerateTemplateEntry, n as GenerateTemplateFactory, l as GenerateTemplateFileSource, m as GenerateTemplateInlineSource, q as GenerateTemplateScope, r as GenerateTemplatesConfig, H as HandleWxmlOptions, J as JsFormat, M as MpPlatform, V as PageEntry, P as ProjectConfig, R as ResolvedAlias, K as ScanComponentItem, x as ScanWxmlOptions, z as SharedChunkStrategy, S as SubPackage, F as SubPackageMetaValue, U as UserConfig, W as WeappViteConfig, Z as WeappVitePluginApi, v as WeappWebConfig, I as WxmlDep } from './config-Qcwf5OzO.cjs';
|
|
2
2
|
export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
|
|
3
3
|
export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
|
|
4
4
|
export { A as AutoRoutes, a as AutoRoutesSubPackage } from './routes-C9hKJjXs.cjs';
|