weapp-vite 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _chunkLX2OMRQ4cjs = require('./chunk-LX2OMRQ4.cjs');
3
+ var _chunkOWCDSB6Fcjs = require('./chunk-OWCDSB6F.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 _chunkXEHEGODScjs = require('./chunk-XEHEGODS.cjs');
12
+ var _chunk5GG5TEGRcjs = require('./chunk-5GG5TEGR.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.4.1/node_modules/package-manager-detector/dist/commands.mjs
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
- _chunkXEHEGODScjs.logger_default.success(`${composePath(outDir, fileName2)} \u521B\u5EFA\u6210\u529F\uFF01`);
820
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.checkRuntime.call(void 0, {
858
+ _chunk5GG5TEGRcjs.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 _chunkXEHEGODScjs.resolveWeappConfigFile.call(void 0, {
876
+ const weappConfigFilePath = await _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
924
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.info(` \u279C ${url}`);
926
+ _chunk5GG5TEGRcjs.logger_default.info(` \u279C ${url}`);
921
927
  }
922
928
  } else {
923
- _chunkXEHEGODScjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
929
+ _chunk5GG5TEGRcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
924
930
  }
925
931
  } else {
926
- _chunkXEHEGODScjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
932
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.success("\u5E94\u7528\u6784\u5EFA\u5B8C\u6210\uFF01\u9884\u89C8\u65B9\u5F0F ( `2` \u79CD\u9009\u5176\u4E00\u5373\u53EF)\uFF1A");
941
- _chunkXEHEGODScjs.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`);
942
- _chunkXEHEGODScjs.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");
946
+ _chunk5GG5TEGRcjs.logger_default.success("\u5E94\u7528\u6784\u5EFA\u5B8C\u6210\uFF01\u9884\u89C8\u65B9\u5F0F ( `2` \u79CD\u9009\u5176\u4E00\u5373\u53EF)\uFF1A");
947
+ _chunk5GG5TEGRcjs.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
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
953
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.info(` \u279C ${url}`);
955
+ _chunk5GG5TEGRcjs.logger_default.info(` \u279C ${url}`);
950
956
  }
951
957
  } else {
952
- _chunkXEHEGODScjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
958
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.error(error);
988
+ _chunk5GG5TEGRcjs.logger_default.error(error);
983
989
  }
984
990
  }
985
991
  function logRuntimeTarget(targets) {
986
- _chunkXEHEGODScjs.logger_default.info(`\u76EE\u6807\u5E73\u53F0\uFF1A${targets.label}`);
992
+ _chunk5GG5TEGRcjs.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: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM,
995
- label: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM
1000
+ mpPlatform: _chunk5GG5TEGRcjs.DEFAULT_MP_PLATFORM,
1001
+ label: _chunk5GG5TEGRcjs.DEFAULT_MP_PLATFORM
996
1002
  };
997
1003
  }
998
- const normalized = _chunkXEHEGODScjs.normalizeMiniPlatform.call(void 0, rawPlatform);
1004
+ const normalized = _chunk5GG5TEGRcjs.normalizeMiniPlatform.call(void 0, rawPlatform);
999
1005
  if (!normalized) {
1000
1006
  return {
1001
1007
  runMini: true,
1002
1008
  runWeb: false,
1003
- mpPlatform: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM,
1004
- label: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM
1009
+ mpPlatform: _chunk5GG5TEGRcjs.DEFAULT_MP_PLATFORM,
1010
+ label: _chunk5GG5TEGRcjs.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 = _chunkXEHEGODScjs.resolveMiniPlatform.call(void 0, normalized);
1021
+ const mpPlatform = _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.warn(`\u672A\u8BC6\u522B\u7684\u5E73\u53F0 "${rawPlatform}"\uFF0C\u5DF2\u56DE\u9000\u5230 ${_chunkXEHEGODScjs.DEFAULT_MP_PLATFORM}`);
1030
+ _chunk5GG5TEGRcjs.logger_default.warn(`\u672A\u8BC6\u522B\u7684\u5E73\u53F0 "${rawPlatform}"\uFF0C\u5DF2\u56DE\u9000\u5230 ${_chunk5GG5TEGRcjs.DEFAULT_MP_PLATFORM}`);
1025
1031
  return {
1026
1032
  runMini: true,
1027
1033
  runWeb: false,
1028
- mpPlatform: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM,
1029
- label: _chunkXEHEGODScjs.DEFAULT_MP_PLATFORM
1034
+ mpPlatform: _chunk5GG5TEGRcjs.DEFAULT_MP_PLATFORM,
1035
+ label: _chunk5GG5TEGRcjs.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 _chunkLX2OMRQ4cjs.createCompilerContext.call(void 0, {
1057
+ const { buildService, configService, webService } = await _chunkOWCDSB6Fcjs.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
- _chunkXEHEGODScjs.logger_default.error(error);
1072
+ _chunk5GG5TEGRcjs.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 _chunkLX2OMRQ4cjs.createCompilerContext.call(void 0, {
1100
+ const { buildService, configService, webService } = await _chunkOWCDSB6Fcjs.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
- _chunkXEHEGODScjs.logger_default.success(`Web \u6784\u5EFA\u5B8C\u6210\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF1A${configService.relativeCwd(webConfig.outDir)}`);
1113
+ _chunk5GG5TEGRcjs.logger_default.success(`Web \u6784\u5EFA\u5B8C\u6210\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF1A${configService.relativeCwd(webConfig.outDir)}`);
1108
1114
  } catch (error) {
1109
- _chunkXEHEGODScjs.logger_default.error(error);
1115
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.error(error);
1132
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.error(error);
1142
+ _chunk5GG5TEGRcjs.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
- _chunkXEHEGODScjs.logger_default.error("weapp-vite generate <outDir> \u547D\u4EE4\u5FC5\u987B\u4F20\u5165\u8DEF\u5F84\u53C2\u6570 outDir");
1157
+ _chunk5GG5TEGRcjs.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(_chunkXEHEGODScjs.VERSION);
1177
+ cli.version(_chunk5GG5TEGRcjs.VERSION);
1172
1178
  cli.parse();
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCompilerContext
3
- } from "./chunk-KW3QAG67.mjs";
3
+ } from "./chunk-QCLEMTCV.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-UT7K35VH.mjs";
12
+ } from "./chunk-T4MUKDMP.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.4.1/node_modules/package-manager-detector/dist/commands.mjs
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,16 @@ 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
+ }
209
219
  interface WeappViteConfig {
210
220
  /**
211
221
  * @description 应用入口目录 (app.json 所在的目录)
@@ -331,6 +341,10 @@ interface WeappViteConfig {
331
341
  */
332
342
  entry?: string | string[];
333
343
  };
344
+ /**
345
+ * @description 共享代码拆分策略配置
346
+ */
347
+ chunks?: ChunksConfig;
334
348
  }
335
349
  type UserConfig = UserConfig$1 & {
336
350
  weapp?: WeappViteConfig;
@@ -747,4 +761,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
747
761
  declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
748
762
  declare function defineConfig(config: UserConfigExport): UserConfigExport;
749
763
 
750
- export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type WxmlDep as D, type EnhanceWxmlOptions as E, type ScanComponentItem as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type ComponentsMap as I, type JsFormat as J, type BaseEntry as K, type LoadConfigOptions as L, type MpPlatform as M, type Entry as N, type AppEntry as O, type ProjectConfig as P, type PageEntry as Q, type ResolvedAlias as R, type SubPackage as S, type ComponentEntry as T, type UserConfig as U, type EntryJsonFragment as V, type WeappViteConfig as W, type WeappVitePluginApi as X, type ChangeEvent as Y, 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 SubPackageMetaValue as z };
764
+ 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,16 @@ 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
+ }
209
219
  interface WeappViteConfig {
210
220
  /**
211
221
  * @description 应用入口目录 (app.json 所在的目录)
@@ -331,6 +341,10 @@ interface WeappViteConfig {
331
341
  */
332
342
  entry?: string | string[];
333
343
  };
344
+ /**
345
+ * @description 共享代码拆分策略配置
346
+ */
347
+ chunks?: ChunksConfig;
334
348
  }
335
349
  type UserConfig = UserConfig$1 & {
336
350
  weapp?: WeappViteConfig;
@@ -747,4 +761,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
747
761
  declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
748
762
  declare function defineConfig(config: UserConfigExport): UserConfigExport;
749
763
 
750
- export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type WxmlDep as D, type EnhanceWxmlOptions as E, type ScanComponentItem as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type ComponentsMap as I, type JsFormat as J, type BaseEntry as K, type LoadConfigOptions as L, type MpPlatform as M, type Entry as N, type AppEntry as O, type ProjectConfig as P, type PageEntry as Q, type ResolvedAlias as R, type SubPackage as S, type ComponentEntry as T, type UserConfig as U, type EntryJsonFragment as V, type WeappViteConfig as W, type WeappVitePluginApi as X, type ChangeEvent as Y, 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 SubPackageMetaValue as z };
764
+ 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-DNP6NeTc.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-CzCzK7Jh.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-jhY9Idrt.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-DepC4j8j.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 _chunkLX2OMRQ4cjs = require('./chunk-LX2OMRQ4.cjs');
4
- require('./chunk-XEHEGODS.cjs');
3
+ var _chunkOWCDSB6Fcjs = require('./chunk-OWCDSB6F.cjs');
4
+ require('./chunk-5GG5TEGR.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 = _chunkLX2OMRQ4cjs.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;
30
+ exports.createCompilerContext = _chunkOWCDSB6Fcjs.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-DNP6NeTc.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-DNP6NeTc.cjs';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-CzCzK7Jh.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-CzCzK7Jh.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-jhY9Idrt.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-jhY9Idrt.js';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-DepC4j8j.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-DepC4j8j.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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCompilerContext
3
- } from "./chunk-KW3QAG67.mjs";
4
- import "./chunk-UT7K35VH.mjs";
3
+ } from "./chunk-QCLEMTCV.mjs";
4
+ import "./chunk-T4MUKDMP.mjs";
5
5
  import {
6
6
  defineConfig
7
7
  } from "./chunk-HVMR6H5Z.mjs";
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-DNP6NeTc.cjs';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CzCzK7Jh.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-jhY9Idrt.js';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-DepC4j8j.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, O as AppEntry, w as AutoImportComponents, K as BaseEntry, B as BuildNpmPackageMeta, Y as ChangeEvent, T as ComponentEntry, I as ComponentsMap, u as CopyGlobs, t as CopyOptions, y as EnhanceOptions, E as EnhanceWxmlOptions, N as Entry, V 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, Q as PageEntry, P as ProjectConfig, R as ResolvedAlias, F as ScanComponentItem, x as ScanWxmlOptions, S as SubPackage, z as SubPackageMetaValue, U as UserConfig, W as WeappViteConfig, X as WeappVitePluginApi, v as WeappWebConfig, D as WxmlDep } from './config-DNP6NeTc.cjs';
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-CzCzK7Jh.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';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Alias, g as AliasOptions, O as AppEntry, w as AutoImportComponents, K as BaseEntry, B as BuildNpmPackageMeta, Y as ChangeEvent, T as ComponentEntry, I as ComponentsMap, u as CopyGlobs, t as CopyOptions, y as EnhanceOptions, E as EnhanceWxmlOptions, N as Entry, V 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, Q as PageEntry, P as ProjectConfig, R as ResolvedAlias, F as ScanComponentItem, x as ScanWxmlOptions, S as SubPackage, z as SubPackageMetaValue, U as UserConfig, W as WeappViteConfig, X as WeappVitePluginApi, v as WeappWebConfig, D as WxmlDep } from './config-jhY9Idrt.js';
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-DepC4j8j.js';
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.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "5.4.0",
4
+ "version": "5.5.0",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -98,19 +98,19 @@
98
98
  "pathe": "^2.0.3",
99
99
  "picomatch": "^4.0.3",
100
100
  "postcss": "^8.5.6",
101
- "rolldown": "1.0.0-beta.43",
102
- "tsdown": "^0.15.7",
103
- "vite": "npm:rolldown-vite@^7.1.17",
101
+ "rolldown": "1.0.0-beta.44",
102
+ "tsdown": "^0.15.9",
103
+ "vite": "npm:rolldown-vite@^7.1.19",
104
104
  "vite-tsconfig-paths": "^5.1.4",
105
105
  "@weapp-core/init": "3.0.1",
106
- "@weapp-core/shared": "2.0.1",
107
106
  "@weapp-core/logger": "2.0.0",
107
+ "@weapp-core/schematics": "4.0.0",
108
108
  "@weapp-vite/volar": "0.0.1",
109
- "@weapp-vite/web": "0.0.2",
109
+ "@weapp-core/shared": "2.0.1",
110
110
  "rolldown-require": "1.0.4",
111
+ "@weapp-vite/web": "0.0.2",
111
112
  "vite-plugin-performance": "1.0.0",
112
- "weapp-ide-cli": "4.0.0",
113
- "@weapp-core/schematics": "4.0.0"
113
+ "weapp-ide-cli": "4.0.0"
114
114
  },
115
115
  "publishConfig": {
116
116
  "access": "public",
@@ -130,7 +130,7 @@
130
130
  "lru-cache": "^11.2.2",
131
131
  "magic-string": "^0.30.19",
132
132
  "p-queue": "^9.0.0",
133
- "package-manager-detector": "^1.4.1",
133
+ "package-manager-detector": "^1.5.0",
134
134
  "resolve.exports": "^2.0.3",
135
135
  "rimraf": "6.0.1",
136
136
  "semver": "^7.7.3",