@voidzero-dev/vite-plus-core 0.1.19-alpha.0 → 0.1.19-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +4 -4
  5. package/dist/rolldown/experimental-index.mjs +8 -8
  6. package/dist/rolldown/filter-index.d.mts +1 -1
  7. package/dist/rolldown/index.d.mts +2 -2
  8. package/dist/rolldown/index.mjs +4 -4
  9. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  10. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  11. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.mjs +1 -1
  13. package/dist/rolldown/plugins-index.d.mts +3 -3
  14. package/dist/rolldown/plugins-index.mjs +2 -2
  15. package/dist/rolldown/shared/{binding-s-V_wTpj.mjs → binding-DI_PGVIh.mjs} +1 -1
  16. package/dist/rolldown/shared/{binding-DUEnSb0A.d.mts → binding-zH1vcmbM.d.mts} +27 -0
  17. package/dist/rolldown/shared/{bindingify-input-options-BZsZ-nl1.mjs → bindingify-input-options-CQLSwbb0.mjs} +24 -48
  18. package/dist/rolldown/shared/{constructors-DYemMpPL.d.mts → constructors-C29s6i8O.d.mts} +2 -2
  19. package/dist/rolldown/shared/{constructors-BaEBnHl3.mjs → constructors-Dzji6NUq.mjs} +1 -1
  20. package/dist/rolldown/shared/{define-config-DhJZwTRw.d.mts → define-config-DmrIgjVV.d.mts} +22 -1
  21. package/dist/rolldown/shared/{error-w0u7biK-.mjs → error-DAA7ncC5.mjs} +1 -1
  22. package/dist/rolldown/shared/{load-config-CmWRh-jo.mjs → load-config-DKK5aKL7.mjs} +1 -1
  23. package/dist/rolldown/shared/{normalize-string-or-regex-CVvpepxa.mjs → normalize-string-or-regex-E9GT23QI.mjs} +1 -1
  24. package/dist/rolldown/shared/{parse-Bd1l_BRJ.mjs → parse-BC6EwEdS.mjs} +2 -2
  25. package/dist/rolldown/shared/{prompt-DZIXsnf9.mjs → prompt-Bm9aMQjm.mjs} +4 -2
  26. package/dist/rolldown/shared/{resolve-tsconfig-CNjJwuKB.mjs → resolve-tsconfig-BVTabsge.mjs} +2 -2
  27. package/dist/rolldown/shared/{rolldown-CWkl-K9Q.mjs → rolldown-DN-NFVZl.mjs} +1 -1
  28. package/dist/rolldown/shared/{rolldown-build-BIk0DnUJ.mjs → rolldown-build-B-H35squ.mjs} +10 -6
  29. package/dist/rolldown/shared/{transform-Kz3D2LbX.d.mts → transform-DgZ3paSD.d.mts} +1 -1
  30. package/dist/rolldown/shared/{watch-CTRlKkoe.mjs → watch-DKEzXLor.mjs} +4 -4
  31. package/dist/rolldown/utils-index.d.mts +3 -3
  32. package/dist/rolldown/utils-index.mjs +5 -5
  33. package/dist/tsdown/{build-y6nUUkVJ-BUtpLkpw.js → build-OX8uszs6-4hNTeOrB.js} +143 -92
  34. package/dist/tsdown/{chunk-CSNpwdVU.js → chunk-N93fKeF6.js} +1 -1
  35. package/dist/tsdown/{debug-CLlnG64L-CvIUyX2c.js → debug-CLlnG64L-CuCVzZmG.js} +2 -2
  36. package/dist/tsdown/{detect-DN3DXXYt-DDr6LAmT.js → detect-DN3DXXYt-DtgPLlRO.js} +1 -1
  37. package/dist/tsdown/{dist-Cqme3mtE.js → dist-CrrE8ZBn.js} +1 -1
  38. package/dist/tsdown/{dist-PpqQ55q2.js → dist-DSi2MWPQ.js} +7 -6
  39. package/dist/tsdown/index-types.d.ts +64 -16
  40. package/dist/tsdown/index.js +4 -4
  41. package/dist/tsdown/{main-Ccx2FDJq.js → main-BsfiKQP8.js} +5 -5
  42. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +1 -1
  43. package/dist/tsdown/run.js +4 -4
  44. package/dist/tsdown/{tsc-o1MoGgGA.js → tsc-Cm8giMT9.js} +1 -1
  45. package/dist/vite/client/client.mjs +4 -4
  46. package/dist/vite/node/chunks/build.js +5381 -2
  47. package/dist/vite/node/chunks/chunk.js +11 -2
  48. package/dist/vite/node/chunks/dist.js +21 -11
  49. package/dist/vite/node/chunks/dist2.js +4 -3
  50. package/dist/vite/node/chunks/logger.js +1 -1
  51. package/dist/vite/node/chunks/node.js +115 -59
  52. package/dist/vite/node/chunks/postcss-import.js +1 -1
  53. package/dist/vite/node/cli.js +6 -6
  54. package/dist/vite/node/index.d.ts +2 -2
  55. package/dist/vite/node/index.js +1 -1
  56. package/dist/vite/node/module-runner.js +2 -2
  57. package/package.json +12 -12
  58. package/dist/tsdown/build-y6nUUkVJ-B9JhNMeu.js +0 -2
  59. package/dist/vite/node/chunks/build2.js +0 -5378
  60. package/dist/vite/node/chunks/config.js +0 -2
  61. package/dist/vite/node/chunks/optimizer.js +0 -2
  62. package/dist/vite/node/chunks/preview.js +0 -2
  63. package/dist/vite/node/chunks/server.js +0 -2
  64. /package/dist/tsdown/{dist-D8aGMhnG.js → dist-JaOach5K.js} +0 -0
  65. /package/dist/tsdown/{resolver-DkvdaW3s-CCXGyGZ3.js → resolver-DkvdaW3s-BeVUoOo-.js} +0 -0
  66. /package/dist/tsdown/{tsc-context-C2cC1Bhi.js → tsc-context-B1O6kHlu.js} +0 -0
@@ -6,7 +6,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
+ var __exportAll = (all, no_symbols) => {
11
+ let target = {};
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
+ return target;
18
+ };
10
19
  var __copyProps = (to, from, except, desc) => {
11
20
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
21
  key = keys[i];
@@ -23,4 +32,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
32
  }) : target, mod));
24
33
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
25
34
  //#endregion
26
- export { __require as n, __toESM as r, __commonJSMin as t };
35
+ export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
@@ -2598,11 +2598,13 @@ var Tokenizer = class {
2598
2598
  case CODE_POINTS.HYPHEN_MINUS:
2599
2599
  this.state = State.COMMENT_START_DASH;
2600
2600
  break;
2601
- case CODE_POINTS.GREATER_THAN_SIGN:
2601
+ case CODE_POINTS.GREATER_THAN_SIGN: {
2602
2602
  this._err(ERR.abruptClosingOfEmptyComment);
2603
2603
  this.state = State.DATA;
2604
- this.emitCurrentComment(this.currentToken);
2604
+ const token = this.currentToken;
2605
+ this.emitCurrentComment(token);
2605
2606
  break;
2607
+ }
2606
2608
  default:
2607
2609
  this.state = State.COMMENT;
2608
2610
  this._stateComment(cp);
@@ -4305,7 +4307,7 @@ var Parser = class {
4305
4307
  var _a;
4306
4308
  if (!this.onParseError) return;
4307
4309
  const loc = (_a = token.location) !== null && _a !== void 0 ? _a : BASE_LOC;
4308
- this.onParseError({
4310
+ const err = {
4309
4311
  code,
4310
4312
  startLine: loc.startLine,
4311
4313
  startCol: loc.startCol,
@@ -4313,7 +4315,8 @@ var Parser = class {
4313
4315
  endLine: beforeToken ? loc.startLine : loc.endLine,
4314
4316
  endCol: beforeToken ? loc.startCol : loc.endCol,
4315
4317
  endOffset: beforeToken ? loc.startOffset : loc.endOffset
4316
- });
4318
+ };
4319
+ this.onParseError(err);
4317
4320
  }
4318
4321
  /** @internal */
4319
4322
  onItemPush(node, tid, isTop) {
@@ -4394,7 +4397,10 @@ var Parser = class {
4394
4397
  }
4395
4398
  /** @protected */
4396
4399
  _setDocumentType(token) {
4397
- this.treeAdapter.setDocumentType(this.document, token.name || "", token.publicId || "", token.systemId || "");
4400
+ const name = token.name || "";
4401
+ const publicId = token.publicId || "";
4402
+ const systemId = token.systemId || "";
4403
+ this.treeAdapter.setDocumentType(this.document, name, publicId, systemId);
4398
4404
  if (token.location) {
4399
4405
  const docTypeNode = this.treeAdapter.getChildNodes(this.document).find((node) => this.treeAdapter.isDocumentTypeNode(node));
4400
4406
  if (docTypeNode) this.treeAdapter.setNodeSourceCodeLocation(docTypeNode, token.location);
@@ -4402,10 +4408,13 @@ var Parser = class {
4402
4408
  }
4403
4409
  /** @protected */
4404
4410
  _attachElementToTree(element, location) {
4405
- if (this.options.sourceCodeLocationInfo) this.treeAdapter.setNodeSourceCodeLocation(element, location && {
4406
- ...location,
4407
- startTag: location
4408
- });
4411
+ if (this.options.sourceCodeLocationInfo) {
4412
+ const loc = location && {
4413
+ ...location,
4414
+ startTag: location
4415
+ };
4416
+ this.treeAdapter.setNodeSourceCodeLocation(element, loc);
4417
+ }
4409
4418
  if (this._shouldFosterParentOnInsertion()) this._fosterParentElement(element);
4410
4419
  else {
4411
4420
  const parent = this.openElements.currentTmplContentOrNode;
@@ -4491,7 +4500,7 @@ var Parser = class {
4491
4500
  if (this.treeAdapter.getNodeSourceCodeLocation(element) && closingToken.location) {
4492
4501
  const ctLoc = closingToken.location;
4493
4502
  const tn = this.treeAdapter.getTagName(element);
4494
- this.treeAdapter.updateNodeSourceCodeLocation(element, closingToken.type === TokenType.END_TAG && tn === closingToken.tagName ? {
4503
+ const endLoc = closingToken.type === TokenType.END_TAG && tn === closingToken.tagName ? {
4495
4504
  endTag: { ...ctLoc },
4496
4505
  endLine: ctLoc.endLine,
4497
4506
  endCol: ctLoc.endCol,
@@ -4500,7 +4509,8 @@ var Parser = class {
4500
4509
  endLine: ctLoc.startLine,
4501
4510
  endCol: ctLoc.startCol,
4502
4511
  endOffset: ctLoc.startOffset
4503
- });
4512
+ };
4513
+ this.treeAdapter.updateNodeSourceCodeLocation(element, endLoc);
4504
4514
  }
4505
4515
  }
4506
4516
  shouldProcessStartTagTokenInForeignContent(token) {
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJSMin } from "./chunk.js";
1
+ import { r as __require, t as __commonJSMin } from "./chunk.js";
2
2
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.js
3
3
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  const ALIAS = Symbol.for("yaml.alias");
@@ -2965,7 +2965,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
2965
2965
  }
2966
2966
  const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {};
2967
2967
  const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
2968
- const node = createNode.createNode(value, tag, {
2968
+ const ctx = {
2969
2969
  aliasDuplicateObjects: aliasDuplicateObjects ?? true,
2970
2970
  keepUndefined: keepUndefined ?? false,
2971
2971
  onAnchor,
@@ -2973,7 +2973,8 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
2973
2973
  replacer: _replacer,
2974
2974
  schema: this.schema,
2975
2975
  sourceObjects
2976
- });
2976
+ };
2977
+ const node = createNode.createNode(value, tag, ctx);
2977
2978
  if (flow && identity.isCollection(node)) node.flow = true;
2978
2979
  setAnchors();
2979
2980
  return node;
@@ -1,4 +1,4 @@
1
- import { r as __toESM, t as __commonJSMin } from "./chunk.js";
1
+ import { i as __toESM, t as __commonJSMin } from "./chunk.js";
2
2
  import "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
@@ -1,4 +1,4 @@
1
- import { n as __require$1, r as __toESM, t as __commonJSMin } from "./chunk.js";
1
+ import { i as __toESM, n as __exportAll, r as __require$1, t as __commonJSMin } from "./chunk.js";
2
2
  import { A as OPTIMIZABLE_ENTRY_RE, C as ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, D as JS_TYPES_RE, E as FS_PREFIX, I as defaultAllowedOrigins, L as loopbackHosts, M as SPECIAL_QUERY_RE, N as VERSION, O as KNOWN_ASSET_TYPES, P as VITE_PACKAGE_DIR, R as wildcardHosts, S as ENV_PUBLIC_PATH, T as ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, _ as DEFAULT_SERVER_CONDITIONS, a as CLIENT_ENTRY, b as DEV_PROD_CONDITION, c as DEFAULT_ASSETS_INLINE_LIMIT, d as DEFAULT_CLIENT_MAIN_FIELDS, f as DEFAULT_CONFIG_FILES, g as DEFAULT_PREVIEW_PORT, h as DEFAULT_EXTERNAL_CONDITIONS, i as CLIENT_DIR, j as ROLLUP_HOOKS, k as METADATA_FILENAME, l as DEFAULT_ASSETS_RE, m as DEFAULT_EXTENSIONS, n as createLogger, o as CLIENT_PUBLIC_PATH, p as DEFAULT_DEV_PORT, r as printServerUrls, s as CSS_LANGS_RE, t as LogLevels, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS, w as ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, x as ENV_ENTRY, y as DEP_VERSION_RE, z as require_picocolors } from "./logger.js";
3
3
  import { builtinModules, createRequire } from "node:module";
4
4
  import { parseAst, parseAstAsync } from "@voidzero-dev/vite-plus-core/rolldown/parseAst";
@@ -14605,7 +14605,8 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
14605
14605
  const ign = this.options.ignored;
14606
14606
  const ignored = ign && ign.map(normalizeIgnored(cwd));
14607
14607
  const paths = arrify(ignored).filter((path) => typeof path === STRING_TYPE && !isGlob(path)).map((path) => path + SLASH_GLOBSTAR);
14608
- this._userIgnored = anymatch(this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths), void 0, ANYMATCH_OPTS);
14608
+ const list = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths);
14609
+ this._userIgnored = anymatch(list, void 0, ANYMATCH_OPTS);
14609
14610
  }
14610
14611
  return this._userIgnored([path, stats]);
14611
14612
  }
@@ -18894,7 +18895,8 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18894
18895
  this._state = DEFLATING;
18895
18896
  perMessageDeflate.compress(data, options.fin, (_, buf) => {
18896
18897
  if (this._socket.destroyed) {
18897
- callCallbacks(this, /* @__PURE__ */ new Error("The socket was closed while data was being compressed"), cb);
18898
+ const err = /* @__PURE__ */ new Error("The socket was closed while data was being compressed");
18899
+ callCallbacks(this, err, cb);
18898
18900
  return;
18899
18901
  }
18900
18902
  this._bufferedBytes -= options[kByteLength];
@@ -22194,14 +22196,16 @@ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module)
22194
22196
  spreadUrlObject(redirectUrl, this._options);
22195
22197
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
22196
22198
  if (isFunction(beforeRedirect)) {
22197
- beforeRedirect(this._options, {
22199
+ var responseDetails = {
22198
22200
  headers: response.headers,
22199
22201
  statusCode
22200
- }, {
22202
+ };
22203
+ var requestDetails = {
22201
22204
  url: currentUrl,
22202
22205
  method,
22203
22206
  headers: requestHeaders
22204
- });
22207
+ };
22208
+ beforeRedirect(this._options, responseDetails, requestDetails);
22205
22209
  this._sanitizeOptions(this._options);
22206
22210
  }
22207
22211
  this._performRequest();
@@ -25903,18 +25907,6 @@ const functionCallRE = /^[A-Z_][.\w-]*\(/i;
25903
25907
  const transformOnlyRE = /[?&]transform-only\b/;
25904
25908
  const nonEscapedDoubleQuoteRe = /(?<!\\)"/g;
25905
25909
  const defaultCssBundleName = "style.css";
25906
- var PreprocessLang = /* @__PURE__ */ function(PreprocessLang) {
25907
- PreprocessLang["less"] = "less";
25908
- PreprocessLang["sass"] = "sass";
25909
- PreprocessLang["scss"] = "scss";
25910
- PreprocessLang["styl"] = "styl";
25911
- PreprocessLang["stylus"] = "stylus";
25912
- return PreprocessLang;
25913
- }(PreprocessLang || {});
25914
- var PostCssDialectLang = /* @__PURE__ */ function(PostCssDialectLang) {
25915
- PostCssDialectLang["sss"] = "sugarss";
25916
- return PostCssDialectLang;
25917
- }(PostCssDialectLang || {});
25918
25910
  const isModuleCSSRequest = (request) => cssModuleRE.test(request);
25919
25911
  const isDirectCSSRequest = (request) => CSS_LANGS_RE.test(request) && directRequestRE.test(request);
25920
25912
  const isDirectRequest = (request) => directRequestRE.test(request);
@@ -26624,7 +26616,7 @@ function createCachedImport(imp) {
26624
26616
  };
26625
26617
  }
26626
26618
  const importPostcssImport = createCachedImport(() => import("./postcss-import.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
26627
- const importPostcssModules = createCachedImport(() => import("./build2.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
26619
+ const importPostcssModules = createCachedImport(() => import("./build.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
26628
26620
  const importPostcss = createCachedImport(() => import("postcss"));
26629
26621
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
26630
26622
  let alwaysFakeWorkerWorkerControllerCache;
@@ -26909,7 +26901,7 @@ function loadSassPackage(root, skipEmbedded = false) {
26909
26901
  try {
26910
26902
  return {
26911
26903
  name: "sass",
26912
- path: loadPreprocessorPath(PreprocessLang.sass, root)
26904
+ path: loadPreprocessorPath("sass", root)
26913
26905
  };
26914
26906
  } catch {
26915
26907
  throw e1;
@@ -26917,13 +26909,13 @@ function loadSassPackage(root, skipEmbedded = false) {
26917
26909
  }
26918
26910
  return {
26919
26911
  name: "sass",
26920
- path: loadPreprocessorPath(PreprocessLang.sass, root)
26912
+ path: loadPreprocessorPath("sass", root)
26921
26913
  };
26922
26914
  }
26923
26915
  let cachedSss;
26924
26916
  async function loadSss(root) {
26925
26917
  if (!cachedSss) cachedSss = (async () => {
26926
- return cachedSss = (await import(pathToFileURL(loadPreprocessorPath(PostCssDialectLang.sss, root)).href)).default;
26918
+ return cachedSss = (await import(pathToFileURL(loadPreprocessorPath("sugarss", root)).href)).default;
26927
26919
  })();
26928
26920
  return cachedSss;
26929
26921
  }
@@ -27150,7 +27142,7 @@ const lessProcessor = (maxWorkers) => {
27150
27142
  worker?.stop();
27151
27143
  },
27152
27144
  async process(environment, source, root, options, resolvers) {
27153
- const lessPath = loadPreprocessorPath(PreprocessLang.less, root);
27145
+ const lessPath = loadPreprocessorPath("less", root);
27154
27146
  worker ??= makeLessWorker(environment, resolvers, maxWorkers);
27155
27147
  const { content, map: additionalMap } = await getSource(source, options.filename, options.additionalData, options.enableSourcemap);
27156
27148
  let result;
@@ -27219,7 +27211,7 @@ const stylProcessor = (maxWorkers) => {
27219
27211
  worker?.stop();
27220
27212
  },
27221
27213
  async process(_environment, source, root, options, _resolvers) {
27222
- const stylusPath = loadPreprocessorPath(PreprocessLang.stylus, root);
27214
+ const stylusPath = loadPreprocessorPath("stylus", root);
27223
27215
  worker ??= makeStylWorker(maxWorkers);
27224
27216
  const { content, map: additionalMap } = await getSource(source, options.filename, options.additionalData, options.enableSourcemap, "\n");
27225
27217
  const importsDeps = (options.imports ?? []).map((dep) => path.resolve(dep));
@@ -27290,11 +27282,11 @@ const createPreprocessorWorkerController = (maxWorkers) => {
27290
27282
  styl.close();
27291
27283
  };
27292
27284
  return {
27293
- [PreprocessLang.less]: less.process,
27294
- [PreprocessLang.scss]: scss.process,
27295
- [PreprocessLang.sass]: sassProcess,
27296
- [PreprocessLang.styl]: styl.process,
27297
- [PreprocessLang.stylus]: styl.process,
27285
+ ["less"]: less.process,
27286
+ ["scss"]: scss.process,
27287
+ ["sass"]: sassProcess,
27288
+ ["styl"]: styl.process,
27289
+ ["stylus"]: styl.process,
27298
27290
  close
27299
27291
  };
27300
27292
  };
@@ -27304,11 +27296,11 @@ const normalizeMaxWorkers = (maxWorker) => {
27304
27296
  return maxWorker;
27305
27297
  };
27306
27298
  const preprocessorSet = new Set([
27307
- PreprocessLang.less,
27308
- PreprocessLang.sass,
27309
- PreprocessLang.scss,
27310
- PreprocessLang.styl,
27311
- PreprocessLang.stylus
27299
+ "less",
27300
+ "sass",
27301
+ "scss",
27302
+ "styl",
27303
+ "stylus"
27312
27304
  ]);
27313
27305
  function isPreProcessor(lang) {
27314
27306
  return lang && preprocessorSet.has(lang);
@@ -31530,6 +31522,15 @@ function rejectNoCorsRequestMiddleware() {
31530
31522
  }
31531
31523
  //#endregion
31532
31524
  //#region ../../vite/packages/vite/src/node/server/index.ts
31525
+ var server_exports = /* @__PURE__ */ __exportAll({
31526
+ _createServer: () => _createServer,
31527
+ createServer: () => createServer$2,
31528
+ createServerCloseFn: () => createServerCloseFn,
31529
+ resolveForwardConsoleOptions: () => resolveForwardConsoleOptions,
31530
+ resolveServerOptions: () => resolveServerOptions,
31531
+ restartServerWithUrls: () => restartServerWithUrls,
31532
+ serverConfigDefaults: () => serverConfigDefaults
31533
+ });
31533
31534
  var import_connect = /* @__PURE__ */ __toESM(require_connect(), 1);
31534
31535
  var import_lib = /* @__PURE__ */ __toESM(require_lib$1(), 1);
31535
31536
  var import_chokidar = /* @__PURE__ */ __toESM(require_chokidar(), 1);
@@ -32431,14 +32432,6 @@ function handlePrunedModules(mods, { hot }) {
32431
32432
  paths: [...mods].map((m) => m.url)
32432
32433
  });
32433
32434
  }
32434
- var LexerState = /* @__PURE__ */ function(LexerState) {
32435
- LexerState[LexerState["inCall"] = 0] = "inCall";
32436
- LexerState[LexerState["inSingleQuoteString"] = 1] = "inSingleQuoteString";
32437
- LexerState[LexerState["inDoubleQuoteString"] = 2] = "inDoubleQuoteString";
32438
- LexerState[LexerState["inTemplateString"] = 3] = "inTemplateString";
32439
- LexerState[LexerState["inArray"] = 4] = "inArray";
32440
- return LexerState;
32441
- }(LexerState || {});
32442
32435
  /**
32443
32436
  * Lex import.meta.hot.accept() for accepted deps.
32444
32437
  * Since hot.accept() can only accept string literals or array of string
@@ -32447,8 +32440,8 @@ var LexerState = /* @__PURE__ */ function(LexerState) {
32447
32440
  * @returns selfAccepts
32448
32441
  */
32449
32442
  function lexAcceptedHmrDeps(code, start, urls) {
32450
- let state = LexerState.inCall;
32451
- let prevState = LexerState.inCall;
32443
+ let state = 0;
32444
+ let prevState = 0;
32452
32445
  let currentDep = "";
32453
32446
  function addDep(index) {
32454
32447
  urls.add({
@@ -32461,42 +32454,42 @@ function lexAcceptedHmrDeps(code, start, urls) {
32461
32454
  for (let i = start; i < code.length; i++) {
32462
32455
  const char = code.charAt(i);
32463
32456
  switch (state) {
32464
- case LexerState.inCall:
32465
- case LexerState.inArray:
32457
+ case 0:
32458
+ case 4:
32466
32459
  if (char === `'`) {
32467
32460
  prevState = state;
32468
- state = LexerState.inSingleQuoteString;
32461
+ state = 1;
32469
32462
  } else if (char === `"`) {
32470
32463
  prevState = state;
32471
- state = LexerState.inDoubleQuoteString;
32464
+ state = 2;
32472
32465
  } else if (char === "`") {
32473
32466
  prevState = state;
32474
- state = LexerState.inTemplateString;
32467
+ state = 3;
32475
32468
  } else if (whitespaceRE.test(char)) continue;
32476
- else if (state === LexerState.inCall) if (char === `[`) state = LexerState.inArray;
32469
+ else if (state === 0) if (char === `[`) state = 4;
32477
32470
  else return true;
32478
32471
  else if (char === `]`) return false;
32479
32472
  else if (char === ",") continue;
32480
32473
  else error(i);
32481
32474
  break;
32482
- case LexerState.inSingleQuoteString:
32475
+ case 1:
32483
32476
  if (char === `'`) {
32484
32477
  addDep(i);
32485
- if (prevState === LexerState.inCall) return false;
32478
+ if (prevState === 0) return false;
32486
32479
  else state = prevState;
32487
32480
  } else currentDep += char;
32488
32481
  break;
32489
- case LexerState.inDoubleQuoteString:
32482
+ case 2:
32490
32483
  if (char === `"`) {
32491
32484
  addDep(i);
32492
- if (prevState === LexerState.inCall) return false;
32485
+ if (prevState === 0) return false;
32493
32486
  else state = prevState;
32494
32487
  } else currentDep += char;
32495
32488
  break;
32496
- case LexerState.inTemplateString:
32489
+ case 3:
32497
32490
  if (char === "`") {
32498
32491
  addDep(i);
32499
- if (prevState === LexerState.inCall) return false;
32492
+ if (prevState === 0) return false;
32500
32493
  else state = prevState;
32501
32494
  } else if (char === "$" && code.charAt(i + 1) === "{") error(i);
32502
32495
  else currentDep += char;
@@ -35272,7 +35265,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
35272
35265
  const isBuild = config.command === "build";
35273
35266
  const isBundled = config.isBundled;
35274
35267
  const isWorker = config.isWorker;
35275
- const buildPlugins = isBundled ? await (await import("./build.js")).resolveBuildPlugins(config) : {
35268
+ const buildPlugins = isBundled ? await (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
35276
35269
  pre: [],
35277
35270
  post: []
35278
35271
  };
@@ -36818,6 +36811,29 @@ module.exports = ${isNodeBuiltin(idWithoutNamespace) ? "m.default" : "{ ...m }"}
36818
36811
  }
36819
36812
  //#endregion
36820
36813
  //#region ../../vite/packages/vite/src/node/optimizer/index.ts
36814
+ var optimizer_exports = /* @__PURE__ */ __exportAll({
36815
+ addManuallyIncludedOptimizeDeps: () => addManuallyIncludedOptimizeDeps,
36816
+ addOptimizedDepInfo: () => addOptimizedDepInfo,
36817
+ cleanupDepsCacheStaleDirs: () => cleanupDepsCacheStaleDirs,
36818
+ createIsOptimizedDepFile: () => createIsOptimizedDepFile,
36819
+ createIsOptimizedDepUrl: () => createIsOptimizedDepUrl,
36820
+ depsFromOptimizedDepInfo: () => depsFromOptimizedDepInfo,
36821
+ depsLogString: () => depsLogString,
36822
+ discoverProjectDependencies: () => discoverProjectDependencies,
36823
+ extractExportsData: () => extractExportsData,
36824
+ getDepsCacheDir: () => getDepsCacheDir,
36825
+ getOptimizedDepPath: () => getOptimizedDepPath,
36826
+ initDepsOptimizerMetadata: () => initDepsOptimizerMetadata,
36827
+ isDepOptimizationDisabled: () => isDepOptimizationDisabled,
36828
+ loadCachedDepOptimizationMetadata: () => loadCachedDepOptimizationMetadata,
36829
+ optimizeDeps: () => optimizeDeps,
36830
+ optimizeExplicitEnvironmentDeps: () => optimizeExplicitEnvironmentDeps,
36831
+ optimizedDepInfoFromFile: () => optimizedDepInfoFromFile,
36832
+ optimizedDepInfoFromId: () => optimizedDepInfoFromId,
36833
+ optimizedDepNeedsInterop: () => optimizedDepNeedsInterop,
36834
+ runOptimizeDeps: () => runOptimizeDeps,
36835
+ toDiscoveredDependencies: () => toDiscoveredDependencies
36836
+ });
36821
36837
  const debug$2 = createDebugger("vite:deps");
36822
36838
  const jsExtensionRE = /\.js$/i;
36823
36839
  function isDepOptimizationDisabled(optimizeDeps) {
@@ -38285,6 +38301,30 @@ function areSeparateFolders(a, b) {
38285
38301
  }
38286
38302
  //#endregion
38287
38303
  //#region ../../vite/packages/vite/src/node/build.ts
38304
+ var build_exports = /* @__PURE__ */ __exportAll({
38305
+ BuildEnvironment: () => BuildEnvironment,
38306
+ ChunkMetadataMap: () => ChunkMetadataMap,
38307
+ build: () => build,
38308
+ buildEnvironmentOptionsDefaults: () => buildEnvironmentOptionsDefaults,
38309
+ builderOptionsDefaults: () => builderOptionsDefaults,
38310
+ clearLine: () => clearLine,
38311
+ createBuilder: () => createBuilder,
38312
+ createToImportMetaURLBasedRelativeRuntime: () => createToImportMetaURLBasedRelativeRuntime,
38313
+ enhanceRollupError: () => enhanceRollupError,
38314
+ injectEnvironmentToHooks: () => injectEnvironmentToHooks,
38315
+ onRollupLog: () => onRollupLog,
38316
+ resolveBuildEnvironmentOptions: () => resolveBuildEnvironmentOptions,
38317
+ resolveBuildOutputs: () => resolveBuildOutputs,
38318
+ resolveBuildPlugins: () => resolveBuildPlugins,
38319
+ resolveBuilderOptions: () => resolveBuilderOptions,
38320
+ resolveLibFilename: () => resolveLibFilename,
38321
+ resolveRolldownOptions: () => resolveRolldownOptions,
38322
+ resolveUserExternal: () => resolveUserExternal,
38323
+ toOutputFilePathInCss: () => toOutputFilePathInCss,
38324
+ toOutputFilePathInHtml: () => toOutputFilePathInHtml,
38325
+ toOutputFilePathInJS: () => toOutputFilePathInJS,
38326
+ toOutputFilePathWithoutRuntime: () => toOutputFilePathWithoutRuntime
38327
+ });
38288
38328
  const _buildEnvironmentOptionsDefaults = Object.freeze({
38289
38329
  target: "baseline-widely-available",
38290
38330
  polyfillModulePreload: true,
@@ -39004,7 +39044,8 @@ var RunnableDevEnvironment = class extends DevEnvironment {
39004
39044
  }
39005
39045
  get runner() {
39006
39046
  if (this._runner) return this._runner;
39007
- this._runner = (this._runnerFactory || createServerModuleRunner)(this, this._runnerOptions);
39047
+ const factory = this._runnerFactory || createServerModuleRunner;
39048
+ this._runner = factory(this, this._runnerOptions);
39008
39049
  return this._runner;
39009
39050
  }
39010
39051
  async close() {
@@ -39097,6 +39138,10 @@ function build_default({ threshold = 1024, level = -1, brotli = false, gzip = tr
39097
39138
  }
39098
39139
  //#endregion
39099
39140
  //#region ../../vite/packages/vite/src/node/preview.ts
39141
+ var preview_exports = /* @__PURE__ */ __exportAll({
39142
+ preview: () => preview,
39143
+ resolvePreviewOptions: () => resolvePreviewOptions
39144
+ });
39100
39145
  function resolvePreviewOptions(preview, server) {
39101
39146
  return {
39102
39147
  port: preview?.port ?? 4173,
@@ -39408,6 +39453,17 @@ function idToPathAndNamespace(id) {
39408
39453
  }
39409
39454
  //#endregion
39410
39455
  //#region ../../vite/packages/vite/src/node/config.ts
39456
+ var config_exports = /* @__PURE__ */ __exportAll({
39457
+ defineConfig: () => defineConfig,
39458
+ getDefaultEnvironmentOptions: () => getDefaultEnvironmentOptions,
39459
+ isResolvedConfig: () => isResolvedConfig,
39460
+ loadConfigFromFile: () => loadConfigFromFile,
39461
+ resolveBaseUrl: () => resolveBaseUrl,
39462
+ resolveConfig: () => resolveConfig,
39463
+ resolveDevEnvironmentOptions: () => resolveDevEnvironmentOptions,
39464
+ resolveDevToolsConfig: () => resolveDevToolsConfig,
39465
+ sortUserPlugins: () => sortUserPlugins
39466
+ });
39411
39467
  const debug = createDebugger("vite:config", { depth: 10 });
39412
39468
  const promisifiedRealpath = promisify(fs.realpath);
39413
39469
  const SYMBOL_RESOLVED_CONFIG = Symbol("vite:resolved-config");
@@ -40343,4 +40399,4 @@ const parseAst$1 = parseAst;
40343
40399
  const parseAstAsync$1 = parseAstAsync;
40344
40400
  const esbuildVersion = "0.25.0";
40345
40401
  //#endregion
40346
- export { depsFromOptimizedDepInfo as $, builderOptionsDefaults as A, searchForWorkspaceRoot as At, resolveBuilderOptions as B, transformWithEsbuild as Bt, resolvePreviewOptions as C, DevEnvironment as Ct, ChunkMetadataMap as D, fetchModule as Dt, BuildEnvironment as E, isFileServingAllowed as Et, injectEnvironmentToHooks as F, createServerModuleRunnerTransport as Ft, toOutputFilePathInHtml as G, mergeConfig as Gt, resolveRolldownOptions as H, createFilter$1 as Ht, onRollupLog as I, buildErrorMessage as It, addManuallyIncludedOptimizeDeps as J, rollupVersion as Jt, toOutputFilePathInJS as K, normalizePath$1 as Kt, resolveBuildEnvironmentOptions as L, loadEnv as Lt, createBuilder as M, perEnvironmentState as Mt, createToImportMetaURLBasedRelativeRuntime as N, ssrTransform as Nt, build as O, formatPostcssSourceMap as Ot, enhanceRollupError as P, createServerModuleRunner as Pt, createIsOptimizedDepUrl as Q, resolveBuildOutputs as R, resolveEnvPrefix as Rt, preview as S, serverConfigDefaults as St, isRunnableDevEnvironment as T, isFileLoadingAllowed as Tt, resolveUserExternal as U, isCSSRequest as Ut, resolveLibFilename as V, perEnvironmentPlugin as Vt, toOutputFilePathInCss as W, mergeAlias as Wt, cleanupDepsCacheStaleDirs as X, addOptimizedDepInfo as Y, withFilter as Yt, createIsOptimizedDepFile as Z, resolveConfig as _, createServer$2 as _t, minifySync as a, initDepsOptimizerMetadata as at, sortUserPlugins as b, resolveServerOptions as bt, parseAstAsync$1 as c, optimizeDeps as ct, isFetchableDevEnvironment as d, optimizedDepInfoFromId as dt, depsLogString as et, defineConfig as f, optimizedDepNeedsInterop as ft, resolveBaseUrl as g, _createServer as gt, loadConfigFromFile as h, createServerHotChannel as ht, minify as i, getOptimizedDepPath as it, clearLine as j, createIdResolver as jt, buildEnvironmentOptionsDefaults as k, preprocessCSS as kt, parseSync as l, optimizeExplicitEnvironmentDeps as lt, isResolvedConfig as m, toDiscoveredDependencies as mt, esbuildVersion as n, extractExportsData as nt, parse as o, isDepOptimizationDisabled as ot, getDefaultEnvironmentOptions as p, runOptimizeDeps as pt, toOutputFilePathWithoutRuntime as q, rolldownVersion as qt, esmExternalRequirePlugin$1 as r, getDepsCacheDir as rt, parseAst$1 as s, loadCachedDepOptimizationMetadata as st, Visitor as t, discoverProjectDependencies as tt, createFetchableDevEnvironment as u, optimizedDepInfoFromFile as ut, resolveDevEnvironmentOptions as v, createServerCloseFn as vt, createRunnableDevEnvironment as w, send as wt, runnerImport as x, restartServerWithUrls as xt, resolveDevToolsConfig as y, resolveForwardConsoleOptions as yt, resolveBuildPlugins as z, transformWithOxc as zt };
40402
+ export { mergeConfig as $, server_exports as A, perEnvironmentState as B, build as C, optimizer_exports as D, optimizeDeps as E, fetchModule as F, loadEnv as G, createServerModuleRunner as H, formatPostcssSourceMap as I, transformWithEsbuild as J, resolveEnvPrefix as K, preprocessCSS as L, send as M, isFileLoadingAllowed as N, createServerHotChannel as O, isFileServingAllowed as P, mergeAlias as Q, searchForWorkspaceRoot as R, BuildEnvironment as S, createBuilder as T, createServerModuleRunnerTransport as U, ssrTransform as V, buildErrorMessage as W, createFilter$1 as X, perEnvironmentPlugin as Y, isCSSRequest as Z, runnerImport as _, minifySync as a, createRunnableDevEnvironment as b, parseAstAsync$1 as c, isFetchableDevEnvironment as d, normalizePath$1 as et, config_exports as f, sortUserPlugins as g, resolveConfig as h, minify as i, DevEnvironment as j, createServer$2 as k, parseSync as l, loadConfigFromFile as m, esbuildVersion as n, rollupVersion as nt, parse as o, defineConfig as p, transformWithOxc as q, esmExternalRequirePlugin$1 as r, withFilter as rt, parseAst$1 as s, Visitor as t, rolldownVersion as tt, createFetchableDevEnvironment as u, preview as v, build_exports as w, isRunnableDevEnvironment as x, preview_exports as y, createIdResolver as z };
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJSMin } from "./chunk.js";
1
+ import { r as __require, t as __commonJSMin } from "./chunk.js";
2
2
  import { t as require_lib } from "./lib.js";
3
3
  //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/format-import-prelude.js
4
4
  var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { r as __toESM } from "./chunks/chunk.js";
1
+ import { i as __toESM } from "./chunks/chunk.js";
2
2
  import { F as VITE_PLUS_VERSION, n as createLogger, z as require_picocolors } from "./chunks/logger.js";
3
3
  import fs from "node:fs";
4
4
  import path from "node:path";
@@ -704,7 +704,7 @@ const convertBase = (v) => {
704
704
  cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with Rolldown, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
705
705
  cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).option("--experimentalBundle", `[boolean] use experimental full bundle mode (this is highly experimental)`).action(async (root, options) => {
706
706
  filterDuplicateOptions(options);
707
- const { createServer } = await import("./chunks/server.js");
707
+ const { createServer } = await import("./chunks/node.js").then((n) => n.A);
708
708
  try {
709
709
  const server = await createServer({
710
710
  root,
@@ -761,7 +761,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
761
761
  });
762
762
  cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
763
763
  filterDuplicateOptions(options);
764
- const { createBuilder } = await import("./chunks/build.js");
764
+ const { createBuilder } = await import("./chunks/node.js").then((n) => n.w);
765
765
  const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
766
766
  try {
767
767
  const builder = await createBuilder({
@@ -786,8 +786,8 @@ cli.command("build [root]", "build for production").option("--target <target>",
786
786
  });
787
787
  cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bundle process runs automatically and does not need to be called)").option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
788
788
  filterDuplicateOptions(options);
789
- const { resolveConfig } = await import("./chunks/config.js");
790
- const { optimizeDeps } = await import("./chunks/optimizer.js");
789
+ const { resolveConfig } = await import("./chunks/node.js").then((n) => n.f);
790
+ const { optimizeDeps } = await import("./chunks/node.js").then((n) => n.D);
791
791
  try {
792
792
  await optimizeDeps(await resolveConfig({
793
793
  root,
@@ -804,7 +804,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
804
804
  });
805
805
  cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(async (root, options) => {
806
806
  filterDuplicateOptions(options);
807
- const { preview } = await import("./chunks/preview.js");
807
+ const { preview } = await import("./chunks/node.js").then((n) => n.y);
808
808
  try {
809
809
  const server = await preview({
810
810
  root,
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
31
31
 
32
32
  //#region \0rolldown/runtime.js
33
33
  //#endregion
34
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.13_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.14_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
35
35
  //#region src/node/cli-commands.d.ts
36
36
  interface StartOptions {
37
37
  root?: string;
@@ -41,7 +41,7 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.13_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.14_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/config.d.ts
45
45
  //#region src/node/config.d.ts
46
46
  interface DevToolsConfig extends Partial<StartOptions> {
47
47
  enabled: boolean;
@@ -1,3 +1,3 @@
1
1
  import { I as defaultAllowedOrigins, N as VERSION, _ as DEFAULT_SERVER_CONDITIONS, d as DEFAULT_CLIENT_MAIN_FIELDS, h as DEFAULT_EXTERNAL_CONDITIONS, n as createLogger, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS } from "./chunks/logger.js";
2
- import { At as searchForWorkspaceRoot, Bt as transformWithEsbuild, Ct as DevEnvironment, Dt as fetchModule, E as BuildEnvironment, Et as isFileServingAllowed, Ft as createServerModuleRunnerTransport, Gt as mergeConfig, Ht as createFilter, It as buildErrorMessage, Jt as rollupVersion, Kt as normalizePath, Lt as loadEnv, M as createBuilder, Mt as perEnvironmentState, Nt as ssrTransform, O as build, Ot as formatPostcssSourceMap, Pt as createServerModuleRunner, Rt as resolveEnvPrefix, S as preview, T as isRunnableDevEnvironment, Tt as isFileLoadingAllowed, Ut as isCSSRequest, Vt as perEnvironmentPlugin, Wt as mergeAlias, Yt as withFilter, _ as resolveConfig, _t as createServer, a as minifySync, b as sortUserPlugins, c as parseAstAsync, ct as optimizeDeps, d as isFetchableDevEnvironment, f as defineConfig, h as loadConfigFromFile, ht as createServerHotChannel, i as minify, jt as createIdResolver, kt as preprocessCSS, l as parseSync, n as esbuildVersion, o as parse, qt as rolldownVersion, r as esmExternalRequirePlugin, s as parseAst, t as Visitor, u as createFetchableDevEnvironment, w as createRunnableDevEnvironment, wt as send, x as runnerImport, zt as transformWithOxc } from "./chunks/node.js";
2
+ import { $ as mergeConfig, B as perEnvironmentState, C as build, E as optimizeDeps, F as fetchModule, G as loadEnv, H as createServerModuleRunner, I as formatPostcssSourceMap, J as transformWithEsbuild, K as resolveEnvPrefix, L as preprocessCSS, M as send, N as isFileLoadingAllowed, O as createServerHotChannel, P as isFileServingAllowed, Q as mergeAlias, R as searchForWorkspaceRoot, S as BuildEnvironment, T as createBuilder, U as createServerModuleRunnerTransport, V as ssrTransform, W as buildErrorMessage, X as createFilter, Y as perEnvironmentPlugin, Z as isCSSRequest, _ as runnerImport, a as minifySync, b as createRunnableDevEnvironment, c as parseAstAsync, d as isFetchableDevEnvironment, et as normalizePath, g as sortUserPlugins, h as resolveConfig, i as minify, j as DevEnvironment, k as createServer, l as parseSync, m as loadConfigFromFile, n as esbuildVersion, nt as rollupVersion, o as parse, p as defineConfig, q as transformWithOxc, r as esmExternalRequirePlugin, rt as withFilter, s as parseAst, t as Visitor, tt as rolldownVersion, u as createFetchableDevEnvironment, v as preview, x as isRunnableDevEnvironment, z as createIdResolver } from "./chunks/node.js";
3
3
  export { BuildEnvironment, DevEnvironment, Visitor, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, esbuildVersion, esmExternalRequirePlugin, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, minify, minifySync, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, parse, parseAst, parseAstAsync, parseSync, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rolldownVersion, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, transformWithEsbuild, transformWithOxc, VERSION as version, withFilter };
@@ -1090,8 +1090,8 @@ var ModuleRunner = class {
1090
1090
  closed = !1;
1091
1091
  constructor(options, evaluator = new ESModulesEvaluator(), debug) {
1092
1092
  if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
1093
- let optionsHmr = options.hmr ?? !0;
1094
- if (this.hmrClient = new HMRClient(optionsHmr === !0 || optionsHmr.logger === void 0 ? hmrLogger : optionsHmr.logger === !1 ? silentConsole : optionsHmr.logger, this.transport, ({ acceptedPath }) => this.import(acceptedPath)), !this.transport.connect) throw Error("HMR is not supported by this runner transport, but `hmr` option was set to true");
1093
+ let optionsHmr = options.hmr ?? !0, resolvedHmrLogger = optionsHmr === !0 || optionsHmr.logger === void 0 ? hmrLogger : optionsHmr.logger === !1 ? silentConsole : optionsHmr.logger;
1094
+ if (this.hmrClient = new HMRClient(resolvedHmrLogger, this.transport, ({ acceptedPath }) => this.import(acceptedPath)), !this.transport.connect) throw Error("HMR is not supported by this runner transport, but `hmr` option was set to true");
1095
1095
  this.transport.connect(createHMRHandlerForRunner(this));
1096
1096
  } else this.transport.connect?.();
1097
1097
  options.sourcemapInterceptor !== !1 && (this.resetSourceMapSupport = enableSourceMapSupport(this));