@voidzero-dev/vite-plus-core 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +30 -1
  2. package/dist/rolldown/cli.mjs +14 -10
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +5 -5
  6. package/dist/rolldown/experimental-index.mjs +11 -9
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +2 -2
  9. package/dist/rolldown/index.mjs +4 -4
  10. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  11. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  13. package/dist/rolldown/parse-ast-index.mjs +1 -1
  14. package/dist/rolldown/plugins-index.d.mts +3 -3
  15. package/dist/rolldown/plugins-index.mjs +2 -2
  16. package/dist/rolldown/shared/{binding-CVtkJvyl.d.mts → binding-Bvw14S3g.d.mts} +70 -1
  17. package/dist/rolldown/shared/binding-C__LJDBG.mjs +675 -0
  18. package/dist/rolldown/shared/{bindingify-input-options-B03y7DfJ.mjs → bindingify-input-options-V9YvAjrr.mjs} +6 -10
  19. package/dist/rolldown/shared/{constructors-ALilxAii.d.mts → constructors-CRumnw21.d.mts} +2 -2
  20. package/dist/rolldown/shared/{constructors-COwFYQna.mjs → constructors-DklcHr18.mjs} +1 -1
  21. package/dist/rolldown/shared/{create-bundler-option-B-tSTZRt.mjs → create-bundler-option-DbV2ud0B.mjs} +5 -4
  22. package/dist/rolldown/shared/{define-config-DSMNXceb.d.mts → define-config-DwTNhgWB.d.mts} +12 -10
  23. package/dist/rolldown/shared/{error-nLggAzpQ.mjs → error-NcRuXAVN.mjs} +1 -1
  24. package/dist/rolldown/shared/{load-config-O4G7NVNA.mjs → load-config-Dd7jKGUy.mjs} +1 -1
  25. package/dist/rolldown/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-CFtim40S.mjs} +1 -1
  26. package/dist/rolldown/shared/{parse-CQfUbVuN.mjs → parse-rvxTD36n.mjs} +2 -2
  27. package/dist/rolldown/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-D2vSIIkR.mjs} +2 -2
  28. package/dist/rolldown/shared/{rolldown-qV_fUwyM.mjs → rolldown-Bblizyw1.mjs} +4 -4
  29. package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform--WSMLt1x.d.mts} +1 -1
  30. package/dist/rolldown/shared/{watch-BNIsji74.mjs → watch-DPvOlccK.mjs} +5 -5
  31. package/dist/rolldown/utils-index.d.mts +3 -3
  32. package/dist/rolldown/utils-index.mjs +15 -13
  33. package/dist/tsdown/{build-D_enfyvD-X5SFXZZc.js → build-D_enfyvD-tOzhITac.js} +1076 -20
  34. package/dist/tsdown/{debug-CKcBYQLP-avlAPNcV.js → debug-CKcBYQLP-By_AQqN8.js} +3 -3
  35. package/dist/tsdown/{detect-DGhJGEqb-CGd2brAW.js → detect-DGhJGEqb-LL52mV6u.js} +1 -1
  36. package/dist/tsdown/{dist-BZO8q3c0.js → dist-BsS7BOcb.js} +5 -5
  37. package/dist/tsdown/index-types.d.ts +4 -4
  38. package/dist/tsdown/index.js +4 -4
  39. package/dist/tsdown/internal-DSmmwu4u.js +3 -0
  40. package/dist/tsdown/{main-Jz_9T-KA.js → main-Bcv7jU2b.js} +210 -196
  41. package/dist/tsdown/npm_entry_picomatch.cjs +10 -6
  42. package/dist/tsdown/npm_entry_tree-kill.cjs +4 -2
  43. package/dist/tsdown/{resolver-cwLsPb2o-BqQjnCbF.js → resolver-cwLsPb2o-Bb9SDBm6.js} +2 -2
  44. package/dist/tsdown/run.js +6 -6
  45. package/dist/tsdown/{src-D5keKqGd.js → src-JVSpR8xt.js} +5 -5
  46. package/dist/tsdown/{target-Bab3CUeB-CERZYTwS.js → target-Bab3CUeB-8PBzMh3p.js} +5 -5
  47. package/dist/tsdown/{tsc-DmzrnJwy.js → tsc-B8FD48Oc.js} +3 -3
  48. package/dist/tsdown/tsdown-css.js +5 -5
  49. package/dist/tsdown/tsdown-exe.js +4 -4
  50. package/dist/vite/client/bundledDevClient.mjs +393 -27
  51. package/dist/vite/client/client.mjs +20 -14
  52. package/dist/vite/node/chunks/build.js +70 -64
  53. package/dist/vite/node/chunks/dist.js +36 -29
  54. package/dist/vite/node/chunks/dist2.js +193 -149
  55. package/dist/vite/node/chunks/node.js +1047 -875
  56. package/dist/vite/node/chunks/postcss-import.js +23 -25
  57. package/dist/vite/node/index.d.ts +63 -58
  58. package/dist/vite/node/module-runner.d.ts +13 -13
  59. package/dist/vite/node/module-runner.js +24 -19
  60. package/package.json +32 -26
  61. package/dist/rolldown/shared/binding-DwUQWZOo.mjs +0 -662
  62. package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
  63. package/dist/tsdown/internal-DyaNxVWW.js +0 -3
@@ -1,6 +1,6 @@
1
1
  import { mt as __require, pt as __commonJSMin } from "./node.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/format-import-prelude.js
4
4
  var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  module.exports = function formatImportPrelude(layer, media, supports) {
6
6
  const parts = [];
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
15
15
  };
16
16
  }));
17
17
  //#endregion
18
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/base64-encoded-import.js
19
19
  var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20
20
  const formatImportPrelude = require_format_import_prelude();
21
21
  module.exports = function base64EncodedConditionalImport(prelude, conditions) {
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
28
28
  };
29
29
  }));
30
30
  //#endregion
31
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-conditions.js
32
32
  var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
33
  const base64EncodedConditionalImport = require_base64_encoded_import();
34
34
  module.exports = function applyConditions(bundle, atRule) {
@@ -103,21 +103,18 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
103
103
  };
104
104
  }));
105
105
  //#endregion
106
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-raws.js
107
107
  var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108
108
  module.exports = function applyRaws(bundle) {
109
109
  bundle.forEach((stmt, index) => {
110
110
  if (index === 0) return;
111
- if (stmt.parent) {
112
- const { before } = stmt.parent.node.raws;
113
- if (stmt.type === "nodes") stmt.nodes[0].raws.before = before;
114
- else stmt.node.raws.before = before;
115
- } else if (stmt.type === "nodes") stmt.nodes[0].raws.before = stmt.nodes[0].raws.before || "\n";
111
+ if (stmt.type === "nodes") delete stmt.nodes[0].raws.before;
112
+ else if (stmt.parent) delete stmt.node.raws.before;
116
113
  });
117
114
  };
118
115
  }));
119
116
  //#endregion
120
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/apply-styles.js
117
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-styles.js
121
118
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
119
  module.exports = function applyStyles(bundle, styles) {
123
120
  styles.nodes = [];
@@ -137,7 +134,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
134
  };
138
135
  }));
139
136
  //#endregion
140
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/data-url.js
137
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/data-url.js
141
138
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
139
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
143
140
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -156,7 +153,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
156
153
  };
157
154
  }));
158
155
  //#endregion
159
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/parse-statements.js
156
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/parse-statements.js
160
157
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
158
  const valueParser = require_lib();
162
159
  const { stringify } = valueParser;
@@ -215,7 +212,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
215
212
  prev = prev.prev();
216
213
  continue;
217
214
  }
218
- return result.warn("@import must precede all other statements (besides @charset or empty @layer)", { node: atRule });
215
+ return result.warn("@import statements must precede all other statements (besides @charset or empty @layer) and be consecutive", { node: atRule });
219
216
  } while (prev);
220
217
  if (atRule.nodes) return result.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.", { node: atRule });
221
218
  const params = valueParser(atRule.params).nodes;
@@ -281,7 +278,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
281
278
  }
282
279
  }));
283
280
  //#endregion
284
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/process-content.js
281
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/process-content.js
285
282
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
283
  const path$2 = __require("path");
287
284
  let sugarss;
@@ -315,7 +312,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
315
312
  }
316
313
  }));
317
314
  //#endregion
318
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/parse-styles.js
315
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/parse-styles.js
319
316
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
317
  const path$1 = __require("path");
321
318
  const dataURL = require_data_url();
@@ -341,15 +338,16 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
341
338
  }
342
339
  statements.forEach((stmt) => {
343
340
  if (stmt.type === "charset") handleCharset(stmt);
344
- else if (stmt.type === "import") if (stmt.children) stmt.children.forEach((child, index) => {
345
- if (child.type === "import") beforeBundle.push(child);
346
- else if (child.type === "layer") beforeBundle.push(child);
347
- else if (child.type === "charset") handleCharset(child);
348
- else bundle.push(child);
349
- if (index === 0) child.parent = stmt;
350
- });
351
- else beforeBundle.push(stmt);
352
- else if (stmt.type === "layer") beforeBundle.push(stmt);
341
+ else if (stmt.type === "import") {
342
+ if (stmt.children) stmt.children.forEach((child, index) => {
343
+ if (child.type === "import") beforeBundle.push(child);
344
+ else if (child.type === "layer") beforeBundle.push(child);
345
+ else if (child.type === "charset") handleCharset(child);
346
+ else bundle.push(child);
347
+ if (index === 0) child.parent = stmt;
348
+ });
349
+ else beforeBundle.push(stmt);
350
+ } else if (stmt.type === "layer") beforeBundle.push(stmt);
353
351
  else if (stmt.type === "nodes") bundle.push(stmt);
354
352
  });
355
353
  return charset ? [charset, ...beforeBundle.concat(bundle)] : beforeBundle.concat(bundle);
@@ -418,7 +416,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
416
  module.exports = parseStyles;
419
417
  }));
420
418
  //#endregion
421
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/index.js
419
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/index.js
422
420
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
421
  const path = __require("path");
424
422
  const applyConditions = require_apply_conditions();
@@ -30,7 +30,7 @@ import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPre
30
30
  import { withFilter } from "@voidzero-dev/vite-plus-core/rolldown/filter";
31
31
  import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap, KnownQueryTypeMap } from "#types/importGlob";
32
32
  //#endregion
33
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.4.10_crossws@0.4.10_srvx@0.12.5__srvx@0.12.5_typescript@6.0.3_valibo_6dd09e987cdcfce7e76f9fde407b07b8/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
33
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.7__srvx@0.12.7_typescript@6.0.3_valibo_212c25c677dc4c91e7a5bf451a5f1bc5/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
34
  //#region src/node/cli-commands.d.ts
35
35
  interface StartOptions {
36
36
  root?: string;
@@ -40,7 +40,7 @@ interface StartOptions {
40
40
  open?: boolean;
41
41
  }
42
42
  //#endregion
43
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.4.10_crossws@0.4.10_srvx@0.12.5__srvx@0.12.5_typescript@6.0.3_valibo_6dd09e987cdcfce7e76f9fde407b07b8/node_modules/@vitejs/devtools/dist/config.d.ts
43
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.7__srvx@0.12.7_typescript@6.0.3_valibo_212c25c677dc4c91e7a5bf451a5f1bc5/node_modules/@vitejs/devtools/dist/config.d.ts
44
44
  //#region src/node/config.d.ts
45
45
  interface DevToolsConfig extends Partial<StartOptions> {
46
46
  enabled: boolean;
@@ -345,7 +345,7 @@ declare namespace Connect {
345
345
  }
346
346
  }
347
347
  //#endregion
348
- //#region ../../../node_modules/.pnpm/http-proxy-3@1.23.3/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
348
+ //#region ../../../node_modules/.pnpm/http-proxy-3@1.23.3_supports-color@8.1.1/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
349
349
  interface ProxyTargetDetailed {
350
350
  host: string;
351
351
  port: number;
@@ -533,7 +533,7 @@ declare class ProxyServer<TIncomingMessage extends typeof http.IncomingMessage =
533
533
  after: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
534
534
  }
535
535
  //#endregion
536
- //#region ../../../node_modules/.pnpm/http-proxy-3@1.23.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
536
+ //#region ../../../node_modules/.pnpm/http-proxy-3@1.23.3_supports-color@8.1.1/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
537
537
  declare function numOpenSockets(): number;
538
538
  declare namespace index_d_exports {
539
539
  export { ErrorCallback, ProxyServer, ProxyTarget, ProxyTargetUrl, ServerOptions$3 as ServerOptions, createProxyServer as createProxy, createProxyServer, createProxyServer as createServer, ProxyServer as default, numOpenSockets };
@@ -602,7 +602,7 @@ interface LoggerOptions {
602
602
  customLogger?: Logger;
603
603
  console?: Console;
604
604
  }
605
- declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
605
+ export declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
606
606
  //#endregion
607
607
  //#region src/node/http.d.ts
608
608
  interface CommonServerOptions {
@@ -762,7 +762,7 @@ type PreviewServerHook = (this: MinimalPluginContextWithoutEnvironment, server:
762
762
  /**
763
763
  * Starts the Vite server in preview mode, to simulate a production deployment
764
764
  */
765
- declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
765
+ export declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
766
766
  //#endregion
767
767
  //#region src/node/shortcuts.d.ts
768
768
  type BindCLIShortcutsOptions<Server = ViteDevServer | PreviewServer> = {
@@ -1013,7 +1013,7 @@ interface DepOptimizationMetadata {
1013
1013
  *
1014
1014
  * @deprecated the optimization process runs automatically and does not need to be called
1015
1015
  */
1016
- declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<DepOptimizationMetadata>;
1016
+ export declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<DepOptimizationMetadata>;
1017
1017
  //#endregion
1018
1018
  //#region src/node/server/transformRequest.d.ts
1019
1019
  interface TransformResult {
@@ -1306,7 +1306,7 @@ type ServerHotChannelApi = {
1306
1306
  };
1307
1307
  type ServerHotChannel = HotChannel<ServerHotChannelApi>;
1308
1308
  type NormalizedServerHotChannel = NormalizedHotChannel<ServerHotChannelApi>;
1309
- declare function createServerHotChannel(): ServerHotChannel;
1309
+ export declare function createServerHotChannel(): ServerHotChannel;
1310
1310
  //#endregion
1311
1311
  //#region src/types/ws.d.ts
1312
1312
  // WebSocket socket.
@@ -1636,6 +1636,7 @@ declare class MemoryFiles {
1636
1636
  declare class BundledDev {
1637
1637
  private environment;
1638
1638
  private _devEngine;
1639
+ private viteRuntime?;
1639
1640
  private initialBuildCompleted;
1640
1641
  private _closed;
1641
1642
  private clients;
@@ -1648,6 +1649,7 @@ declare class BundledDev {
1648
1649
  constructor(environment: DevEnvironment);
1649
1650
  private get devEngine();
1650
1651
  private pendingPayloadFilenames;
1652
+ get hasBuildOutput(): boolean;
1651
1653
  listen(): Promise<void>;
1652
1654
  private waitForInitialBuildFinish;
1653
1655
  private ensureOutputAndFlushReloadNeeded;
@@ -1680,7 +1682,7 @@ interface DevEnvironmentContext {
1680
1682
  };
1681
1683
  depsOptimizer?: DepsOptimizer;
1682
1684
  }
1683
- declare class DevEnvironment extends BaseEnvironment {
1685
+ export declare class DevEnvironment extends BaseEnvironment {
1684
1686
  mode: "dev";
1685
1687
  moduleGraph: EnvironmentModuleGraph;
1686
1688
  depsOptimizer?: DepsOptimizer;
@@ -2148,6 +2150,9 @@ interface BuildEnvironmentOptions {
2148
2150
  * a niche browser that comes with most modern JavaScript features
2149
2151
  * but has poor CSS support, e.g. Android WeChat WebView, which
2150
2152
  * doesn't support the #RGBA syntax.
2153
+ * When `build.cssMinify` is `lightningcss` (the default), this
2154
+ * option takes precedence over `css.lightningcss.targets` for the
2155
+ * minification step.
2151
2156
  * @default target
2152
2157
  */
2153
2158
  cssTarget?: EsbuildTarget | false;
@@ -2168,7 +2173,7 @@ interface BuildEnvironmentOptions {
2168
2173
  /**
2169
2174
  * Set to `false` to disable minification, or specify the minifier to use.
2170
2175
  * Available options are 'oxc' or 'terser' or 'esbuild'.
2171
- * @default 'oxc'
2176
+ * @default 'oxc' for client build, false for SSR build
2172
2177
  */
2173
2178
  minify?: boolean | "oxc" | "terser" | "esbuild";
2174
2179
  /**
@@ -2360,7 +2365,7 @@ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModu
2360
2365
  * Bundles a single environment for production.
2361
2366
  * Returns a Promise containing the build result.
2362
2367
  */
2363
- declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2368
+ export declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2364
2369
  type RenderBuiltAssetUrl = (filename: string, type: {
2365
2370
  type: "asset" | "public";
2366
2371
  hostId: string;
@@ -2370,7 +2375,7 @@ type RenderBuiltAssetUrl = (filename: string, type: {
2370
2375
  relative?: boolean;
2371
2376
  runtime?: string;
2372
2377
  } | undefined;
2373
- declare class BuildEnvironment extends BaseEnvironment {
2378
+ export declare class BuildEnvironment extends BaseEnvironment {
2374
2379
  mode: "build";
2375
2380
  isBuilt: boolean;
2376
2381
  constructor(name: string, config: ResolvedConfig, setup?: {
@@ -2407,7 +2412,7 @@ type ResolvedBuilderOptions = Required<BuilderOptions>;
2407
2412
  * Creates a ViteBuilder to orchestrate building multiple environments.
2408
2413
  * @experimental
2409
2414
  */
2410
- declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: null | boolean): Promise<ViteBuilder>;
2415
+ export declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: null | boolean): Promise<ViteBuilder>;
2411
2416
  type BuildAppHook = (this: MinimalPluginContextWithoutEnvironment, builder: ViteBuilder) => Promise<void>;
2412
2417
  //#endregion
2413
2418
  //#region src/node/environment.d.ts
@@ -2419,7 +2424,7 @@ type Environment = DevEnvironment | BuildEnvironment | ScanEnvironment | Unknown
2419
2424
  *
2420
2425
  * @experimental
2421
2426
  */
2422
- declare function perEnvironmentState<State>(initial: (environment: Environment) => State): (context: PluginContext) => State;
2427
+ export declare function perEnvironmentState<State>(initial: (environment: Environment) => State): (context: PluginContext) => State;
2423
2428
  //#endregion
2424
2429
  //#region src/node/server/pluginContainer.d.ts
2425
2430
  type SkipInformation = {
@@ -2787,7 +2792,7 @@ interface ResolvedServerUrls {
2787
2792
  */
2788
2793
  networkInterfaceNames?: (string | undefined)[];
2789
2794
  }
2790
- declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
2795
+ export declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
2791
2796
  //#endregion
2792
2797
  //#region src/node/plugins/html.d.ts
2793
2798
  interface HtmlTagDescriptor {
@@ -3100,7 +3105,7 @@ type PluginOption = Thenable<Plugin | {
3100
3105
  /**
3101
3106
  * @experimental
3102
3107
  */
3103
- declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
3108
+ export declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
3104
3109
  //#endregion
3105
3110
  //#region src/node/idResolver.d.ts
3106
3111
  type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
@@ -3108,9 +3113,9 @@ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: stri
3108
3113
  * Create an internal resolver to be used in special scenarios, e.g.
3109
3114
  * optimizer and handling css @imports
3110
3115
  */
3111
- declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3116
+ export declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3112
3117
  //#endregion
3113
- //#region ../../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.25_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
3118
+ //#region ../../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.26_tsx@4.23.12_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
3114
3119
  type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
3115
3120
  interface Config {
3116
3121
  parser?: string | ProcessOptions['parser'] | false;
@@ -3195,8 +3200,8 @@ interface PreprocessCSSResult {
3195
3200
  /**
3196
3201
  * @experimental
3197
3202
  */
3198
- declare function preprocessCSS(code: string, filename: string, config: ResolvedConfig): Promise<PreprocessCSSResult>;
3199
- declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): Promise<ExistingRawSourceMap>;
3203
+ export declare function preprocessCSS(code: string, filename: string, config: ResolvedConfig): Promise<PreprocessCSSResult>;
3204
+ export declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): Promise<ExistingRawSourceMap>;
3200
3205
  type PreprocessorAdditionalDataResult = string | {
3201
3206
  content: string;
3202
3207
  map?: ExistingRawSourceMap;
@@ -3225,7 +3230,7 @@ interface ESBuildOptions extends esbuildOptions_EsbuildTransformOptions {
3225
3230
  type ESBuildTransformResult = Omit<EsbuildTransformResult, "map"> & {
3226
3231
  map: SourceMap;
3227
3232
  };
3228
- declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
3233
+ export declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
3229
3234
  //#endregion
3230
3235
  //#region src/node/plugins/json.d.ts
3231
3236
  interface JsonOptions {
@@ -3323,7 +3328,7 @@ interface OxcOptions extends Omit<rolldown_utils_TransformOptions, "cwd" | "sour
3323
3328
  jsxRefreshInclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3324
3329
  jsxRefreshExclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3325
3330
  }
3326
- declare function transformWithOxc(code: string, filename: string, options?: rolldown_utils_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_utils_TransformResult, "errors">>;
3331
+ export declare function transformWithOxc(code: string, filename: string, options?: rolldown_utils_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_utils_TransformResult, "errors">>;
3327
3332
  //#endregion
3328
3333
  //#region src/node/config.d.ts
3329
3334
  interface ConfigEnv {
@@ -3353,12 +3358,12 @@ type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFnObject |
3353
3358
  * accepts a direct {@link UserConfig} object, or a function that returns it.
3354
3359
  * The function receives a {@link ConfigEnv} object.
3355
3360
  */
3356
- declare function defineConfig(config: UserConfig): UserConfig;
3357
- declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
3358
- declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
3359
- declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
3360
- declare function defineConfig(config: UserConfigFn): UserConfigFn;
3361
- declare function defineConfig(config: UserConfigExport): UserConfigExport;
3361
+ export declare function defineConfig(config: UserConfig): UserConfig;
3362
+ export declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
3363
+ export declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
3364
+ export declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
3365
+ export declare function defineConfig(config: UserConfigFn): UserConfigFn;
3366
+ export declare function defineConfig(config: UserConfigExport): UserConfigExport;
3362
3367
  interface CreateDevEnvironmentContext {
3363
3368
  ws: WebSocketServer;
3364
3369
  }
@@ -3849,16 +3854,16 @@ interface PluginHookUtils {
3849
3854
  getSortedPluginHooks: <K extends keyof Plugin>(hookName: K) => NonNullable<HookHandler<Plugin[K]>>[];
3850
3855
  }
3851
3856
  type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
3852
- declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
3853
- declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
3854
- declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
3857
+ export declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
3858
+ export declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
3859
+ export declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
3855
3860
  path: string;
3856
3861
  config: UserConfig;
3857
3862
  dependencies: string[];
3858
3863
  } | null>;
3859
3864
  //#endregion
3860
3865
  //#region src/node/server/middlewares/error.d.ts
3861
- declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
3866
+ export declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
3862
3867
  //#endregion
3863
3868
  //#region src/node/ssr/runtime/serverModuleRunner.d.ts
3864
3869
  /**
@@ -3876,23 +3881,23 @@ interface ServerModuleRunnerOptions extends Omit<ModuleRunnerOptions, "root" | "
3876
3881
  */
3877
3882
  evaluator?: ModuleEvaluator;
3878
3883
  }
3879
- declare const createServerModuleRunnerTransport: (options: {
3884
+ export declare const createServerModuleRunnerTransport: (options: {
3880
3885
  channel: NormalizedServerHotChannel;
3881
3886
  }) => ModuleRunnerTransport;
3882
3887
  /**
3883
3888
  * Create an instance of the Vite SSR runtime that support HMR.
3884
3889
  * @experimental
3885
3890
  */
3886
- declare function createServerModuleRunner(environment: DevEnvironment, options?: ServerModuleRunnerOptions): ModuleRunner;
3891
+ export declare function createServerModuleRunner(environment: DevEnvironment, options?: ServerModuleRunnerOptions): ModuleRunner;
3887
3892
  //#endregion
3888
3893
  //#region src/node/server/environments/runnableEnvironment.d.ts
3889
- declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
3894
+ export declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
3890
3895
  interface RunnableDevEnvironmentContext extends Omit<DevEnvironmentContext, "hot"> {
3891
3896
  runner?: (environment: RunnableDevEnvironment, options?: ServerModuleRunnerOptions) => ModuleRunner;
3892
3897
  runnerOptions?: ServerModuleRunnerOptions;
3893
3898
  hot?: boolean;
3894
3899
  }
3895
- declare function isRunnableDevEnvironment(environment: Environment): environment is RunnableDevEnvironment;
3900
+ export declare function isRunnableDevEnvironment(environment: Environment): environment is RunnableDevEnvironment;
3896
3901
  declare class RunnableDevEnvironment extends DevEnvironment {
3897
3902
  private _runner;
3898
3903
  private _runnerFactory;
@@ -3906,8 +3911,8 @@ declare class RunnableDevEnvironment extends DevEnvironment {
3906
3911
  interface FetchableDevEnvironmentContext extends DevEnvironmentContext {
3907
3912
  handleRequest(request: Request): Promise<Response> | Response;
3908
3913
  }
3909
- declare function createFetchableDevEnvironment(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext): FetchableDevEnvironment;
3910
- declare function isFetchableDevEnvironment(environment: Environment): environment is FetchableDevEnvironment;
3914
+ export declare function createFetchableDevEnvironment(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext): FetchableDevEnvironment;
3915
+ export declare function isFetchableDevEnvironment(environment: Environment): environment is FetchableDevEnvironment;
3911
3916
  declare class FetchableDevEnvironment extends DevEnvironment {
3912
3917
  private _handleRequest;
3913
3918
  constructor(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext);
@@ -3923,7 +3928,7 @@ interface RunnerImportResult<T> {
3923
3928
  * Import any file using the default Vite environment.
3924
3929
  * @experimental
3925
3930
  */
3926
- declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
3931
+ export declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
3927
3932
  //#endregion
3928
3933
  //#region src/node/ssr/fetchModule.d.ts
3929
3934
  interface FetchModuleOptions {
@@ -3935,7 +3940,7 @@ interface FetchModuleOptions {
3935
3940
  * Fetch module information for Vite module runner.
3936
3941
  * @experimental
3937
3942
  */
3938
- declare function fetchModule(environment: DevEnvironment, url: string, importer?: string, options?: FetchModuleOptions): Promise<moduleRunner_FetchResult>;
3943
+ export declare function fetchModule(environment: DevEnvironment, url: string, importer?: string, options?: FetchModuleOptions): Promise<moduleRunner_FetchResult>;
3939
3944
  //#endregion
3940
3945
  //#region src/node/ssr/ssrTransform.d.ts
3941
3946
  interface ModuleRunnerTransformOptions {
@@ -3954,21 +3959,21 @@ declare const DEFAULT_SERVER_MAIN_FIELDS: readonly string[];
3954
3959
  declare const DEFAULT_CLIENT_CONDITIONS: readonly string[];
3955
3960
  declare const DEFAULT_SERVER_CONDITIONS: readonly string[];
3956
3961
  declare const DEFAULT_EXTERNAL_CONDITIONS: readonly string[];
3957
- declare const defaultAllowedOrigins: RegExp;
3962
+ export declare const defaultAllowedOrigins: RegExp;
3958
3963
  //#endregion
3959
3964
  //#region src/node/utils.d.ts
3960
3965
  /**
3961
3966
  * Inlined to keep `@rollup/pluginutils` in devDependencies
3962
3967
  */
3963
3968
  type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
3964
- declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3969
+ export declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3965
3970
  resolve?: string | false | null;
3966
3971
  }) => (id: unknown) => boolean;
3967
- declare const rollupVersion = "4.23.0";
3968
- declare function normalizePath(id: string): string;
3969
- declare const isCSSRequest: (request: string) => boolean;
3970
- declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
3971
- declare function mergeAlias(a?: AliasOptions, b?: AliasOptions): AliasOptions | undefined;
3972
+ export declare const rollupVersion = "4.23.0";
3973
+ export declare function normalizePath(id: string): string;
3974
+ export declare const isCSSRequest: (request: string) => boolean;
3975
+ export declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
3976
+ export declare function mergeAlias(a?: AliasOptions, b?: AliasOptions): AliasOptions | undefined;
3972
3977
  //#endregion
3973
3978
  //#region src/node/server/send.d.ts
3974
3979
  interface SendOptions {
@@ -3979,33 +3984,33 @@ interface SendOptions {
3979
3984
  mappings: "";
3980
3985
  } | null;
3981
3986
  }
3982
- declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
3987
+ export declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
3983
3988
  //#endregion
3984
3989
  //#region src/node/server/searchRoot.d.ts
3985
3990
  /**
3986
3991
  * Search up for the nearest workspace root
3987
3992
  */
3988
- declare function searchForWorkspaceRoot(current: string, root?: string): string;
3993
+ export declare function searchForWorkspaceRoot(current: string, root?: string): string;
3989
3994
  //#endregion
3990
3995
  //#region src/node/server/middlewares/static.d.ts
3991
3996
  /**
3992
3997
  * Check if the url is allowed to be served, via the `server.fs` config.
3993
3998
  * @deprecated Use the `isFileLoadingAllowed` function instead.
3994
3999
  */
3995
- declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
3996
- declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
4000
+ export declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
4001
+ export declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
3997
4002
  /**
3998
4003
  * Warning: parameters are not validated, only works with normalized absolute paths
3999
4004
  */
4000
- declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
4005
+ export declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
4001
4006
  //#endregion
4002
4007
  //#region src/node/env.d.ts
4003
4008
  /**
4004
4009
  * Load `.env` files within the `envDir` and merge them with the matching
4005
4010
  * variables already present in `process.env`.
4006
4011
  */
4007
- declare function loadEnv(mode: string, envDir: string | false, prefixes?: string | string[]): Record<string, string>;
4008
- declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
4012
+ export declare function loadEnv(mode: string, envDir: string | false, prefixes?: string | string[]): Record<string, string>;
4013
+ export declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
4009
4014
  //#endregion
4010
4015
  //#region src/node/plugins/manifest.d.ts
4011
4016
  type Manifest = Record<string, ManifestChunk>;
@@ -4056,9 +4061,9 @@ interface ManifestChunk {
4056
4061
  //#endregion
4057
4062
  //#region src/node/index.d.ts
4058
4063
  /** @deprecated - use `parseSync` instead */
4059
- declare const parseAst: typeof parseAst$1;
4064
+ export declare const parseAst: typeof parseAst$1;
4060
4065
  /** @deprecated - use `parse` instead */
4061
- declare const parseAstAsync: typeof parseAstAsync$1;
4062
- declare const esbuildVersion = "0.25.0";
4066
+ export declare const parseAstAsync: typeof parseAstAsync$1;
4067
+ export declare const esbuildVersion = "0.25.0";
4063
4068
  //#endregion
4064
- export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESTree, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlAssetSource, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type KnownQueryTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinifyOptions, type MinifyResult, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type OxcOptions, type ParseResult, type ParserOptions, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type Config as PostcssUserConfig, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rolldown, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, Visitor, type VisitorObject, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, type WsOptions, 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 };
4069
+ export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESTree, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlAssetSource, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type KnownQueryTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinifyOptions, type MinifyResult, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type OxcOptions, type ParseResult, type ParserOptions, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type Config as PostcssUserConfig, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rolldown, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, Visitor, type VisitorObject, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, type WsOptions, 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, esmExternalRequirePlugin, minify, minifySync, ssrTransform as moduleRunnerTransform, parse, parseSync, rolldownVersion, VERSION as version, withFilter };
@@ -88,18 +88,18 @@ interface SSRImportMetadata extends DefineImportMetadata {
88
88
  }
89
89
  //#endregion
90
90
  //#region src/module-runner/constants.d.ts
91
- declare const ssrModuleExportsKey = "__vite_ssr_exports__";
92
- declare const ssrImportKey = "__vite_ssr_import__";
93
- declare const ssrDynamicImportKey = "__vite_ssr_dynamic_import__";
94
- declare const ssrExportAllKey = "__vite_ssr_exportAll__";
95
- declare const ssrExportNameKey = "__vite_ssr_exportName__";
96
- declare const ssrImportMetaKey = "__vite_ssr_import_meta__";
91
+ export declare const ssrModuleExportsKey = "__vite_ssr_exports__";
92
+ export declare const ssrImportKey = "__vite_ssr_import__";
93
+ export declare const ssrDynamicImportKey = "__vite_ssr_dynamic_import__";
94
+ export declare const ssrExportAllKey = "__vite_ssr_exportAll__";
95
+ export declare const ssrExportNameKey = "__vite_ssr_exportName__";
96
+ export declare const ssrImportMetaKey = "__vite_ssr_import_meta__";
97
97
  //#endregion
98
98
  //#region src/module-runner/runner.d.ts
99
99
  interface ModuleRunnerDebugger {
100
100
  (formatter: unknown, ...args: unknown[]): void;
101
101
  }
102
- declare class ModuleRunner {
102
+ export declare class ModuleRunner {
103
103
  options: ModuleRunnerOptions;
104
104
  evaluator: ModuleEvaluator;
105
105
  private debug?;
@@ -252,7 +252,7 @@ declare class EvaluatedModuleNode {
252
252
  map: DecodedMap | undefined;
253
253
  constructor(id: string, url: string);
254
254
  }
255
- declare class EvaluatedModules {
255
+ export declare class EvaluatedModules {
256
256
  readonly idToModuleMap: Map<string, EvaluatedModuleNode>;
257
257
  readonly fileToModulesMap: Map<string, Set<EvaluatedModuleNode>>;
258
258
  readonly urlToIdModuleMap: Map<string, EvaluatedModuleNode>;
@@ -294,20 +294,20 @@ declare class EvaluatedModules {
294
294
  getModuleSourceMapById(id: string): DecodedMap | null;
295
295
  clear(): void;
296
296
  }
297
- declare function normalizeModuleId(file: string): string;
297
+ export declare function normalizeModuleId(file: string): string;
298
298
  //#endregion
299
299
  //#region src/module-runner/esmEvaluator.d.ts
300
- declare class ESModulesEvaluator implements ModuleEvaluator {
300
+ export declare class ESModulesEvaluator implements ModuleEvaluator {
301
301
  readonly startOffset: number;
302
302
  runInlinedModule(context: ModuleRunnerContext, code: string): Promise<any>;
303
303
  runExternalModule(filepath: string): Promise<any>;
304
304
  }
305
305
  //#endregion
306
306
  //#region src/module-runner/createImportMeta.d.ts
307
- declare function createDefaultImportMeta(modulePath: string): ModuleRunnerImportMeta;
307
+ export declare function createDefaultImportMeta(modulePath: string): ModuleRunnerImportMeta;
308
308
  /**
309
309
  * Create import.meta object for Node.js.
310
310
  */
311
- declare function createNodeImportMeta(modulePath: string): ModuleRunnerImportMeta;
311
+ export declare function createNodeImportMeta(modulePath: string): ModuleRunnerImportMeta;
312
312
  //#endregion
313
- export { ESModulesEvaluator, type EvaluatedModuleNode, EvaluatedModules, type FetchFunction, type FetchFunctionOptions, type FetchResult, type HMRLogger, type InterceptorOptions, type ModuleEvaluator, ModuleRunner, type ModuleRunnerContext, type ModuleRunnerHmr, type ModuleRunnerImportMeta, type ModuleRunnerOptions, type ModuleRunnerTransport, type ModuleRunnerTransportHandlers, type ResolvedResult, type SSRImportMetadata, createDefaultImportMeta, createNodeImportMeta, createWebSocketModuleRunnerTransport, normalizeModuleId, ssrDynamicImportKey, ssrExportAllKey, ssrExportNameKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };
313
+ export { type EvaluatedModuleNode, type FetchFunction, type FetchFunctionOptions, type FetchResult, type HMRLogger, type InterceptorOptions, type ModuleEvaluator, type ModuleRunnerContext, type ModuleRunnerHmr, type ModuleRunnerImportMeta, type ModuleRunnerOptions, type ModuleRunnerTransport, type ModuleRunnerTransportHandlers, type ResolvedResult, type SSRImportMetadata, createWebSocketModuleRunnerTransport };