@voidzero-dev/vite-plus-core 0.2.7 → 0.2.9

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 (75) hide show
  1. package/LICENSE +65 -1
  2. package/dist/rolldown/cli.mjs +17 -14
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-default-runtime.mjs +116 -0
  6. package/dist/rolldown/experimental-index.d.mts +10 -4
  7. package/dist/rolldown/experimental-index.mjs +32 -16
  8. package/dist/rolldown/experimental-runtime-base.mjs +95 -0
  9. package/dist/rolldown/experimental-runtime.d.ts +177 -0
  10. package/dist/rolldown/experimental-runtime.mjs +257 -0
  11. package/dist/rolldown/filter-index.d.mts +1 -1
  12. package/dist/rolldown/filter-index.mjs +1 -3
  13. package/dist/rolldown/index.d.mts +3 -3
  14. package/dist/rolldown/index.mjs +4 -4
  15. package/dist/rolldown/parallel-plugin-worker.mjs +3 -3
  16. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  17. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  18. package/dist/rolldown/parse-ast-index.mjs +2 -2
  19. package/dist/rolldown/plugins-index.d.mts +3 -3
  20. package/dist/rolldown/plugins-index.mjs +2 -2
  21. package/dist/rolldown/shared/binding-CKyeQZen.mjs +673 -0
  22. package/dist/rolldown/shared/{binding-Dbbi0RbO.d.mts → binding-CVtkJvyl.d.mts} +11 -0
  23. package/dist/rolldown/shared/{bindingify-input-options-DVQ4K-zY.mjs → bindingify-input-options-44iPAymO.mjs} +449 -273
  24. package/dist/rolldown/shared/{constructors-CuGa75s-.mjs → constructors-6Zc-JFd7.mjs} +10 -6
  25. package/dist/rolldown/shared/{constructors-CSWbNgBZ.d.mts → constructors-XaIbWpwJ.d.mts} +2 -2
  26. package/dist/rolldown/shared/{rolldown-build-BGXNOfvH.mjs → create-bundler-option-e1FU0w0P.mjs} +72 -179
  27. package/dist/rolldown/shared/{define-config-B-IDOhDz.d.mts → define-config-DVsXPNaU.d.mts} +85 -26
  28. package/dist/rolldown/shared/{error-DFGNOCle.mjs → error-BzLGqhSQ.mjs} +1 -1
  29. package/dist/rolldown/shared/{load-config-R0z2olkB.mjs → load-config-C6QXSnoS.mjs} +2 -2
  30. package/dist/rolldown/shared/{logs-ZGEh6uhb.mjs → logs-DmYCAKcW.mjs} +8 -1
  31. package/dist/rolldown/shared/{misc-CoQm4NHO.mjs → misc-DOSKtd97.mjs} +9 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-SiXbePVH.mjs → normalize-string-or-regex-DYjJ67tj.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-D5dkElpf.mjs → parse-uDDyc1el.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-pZFoa1TT.mjs → prompt-uaCPq0_A.mjs} +2 -6
  35. package/dist/rolldown/shared/{resolve-tsconfig-2TXRF_zr.mjs → resolve-tsconfig-Bcd82vVT.mjs} +2 -2
  36. package/dist/rolldown/shared/rolldown-CCbQNGZt.mjs +178 -0
  37. package/dist/rolldown/shared/{transform-Cs2bUDRH.d.mts → transform-WmU_cI8e.d.mts} +1 -1
  38. package/dist/rolldown/shared/{watch-DVucf-VG.mjs → watch-vuOCmvFs.mjs} +17 -14
  39. package/dist/rolldown/utils-index.d.mts +3 -3
  40. package/dist/rolldown/utils-index.mjs +15 -13
  41. package/dist/tsdown/{build-D_enfyvD-DX5mX46j.js → build-D_enfyvD-Dg1eKRD4.js} +22 -19
  42. package/dist/tsdown/{debug-CKcBYQLP-GQrJ--dM.js → debug-CKcBYQLP-C3NhYhrk.js} +4 -6
  43. package/dist/tsdown/{detect-DGhJGEqb-Cz6qOZuP.js → detect-DGhJGEqb-6CTf16BW.js} +1 -1
  44. package/dist/tsdown/{dist-DCMiHFrJ.js → dist-CMKwGGNp.js} +1 -3
  45. package/dist/tsdown/{dist-CWolxbYK.js → dist-DyXLnzyh.js} +43 -10
  46. package/dist/tsdown/index-types.d.ts +6 -6
  47. package/dist/tsdown/index.js +4 -4
  48. package/dist/tsdown/internal-DKworeK4.js +3 -0
  49. package/dist/tsdown/{main-DI8qthUB.js → main-DiierkER.js} +211 -197
  50. package/dist/tsdown/npm_entry_picomatch.cjs +11 -7
  51. package/dist/tsdown/npm_entry_tree-kill.cjs +15 -15
  52. package/dist/tsdown/{resolver-cwLsPb2o-DvUqSYux.js → resolver-cwLsPb2o-Dk4xdAGE.js} +3 -3
  53. package/dist/tsdown/run.js +6 -6
  54. package/dist/tsdown/{src-CPDzmpAq.js → src-drVPfX63.js} +5 -5
  55. package/dist/tsdown/{target-Bab3CUeB-Di6tCARH.js → target-Bab3CUeB-DQ0pKhCv.js} +6 -6
  56. package/dist/tsdown/{tsc-BQoNcjeB.js → tsc-JnMl2z7d.js} +4 -5
  57. package/dist/tsdown/tsdown-css.js +7 -9
  58. package/dist/tsdown/tsdown-exe.js +4 -4
  59. package/dist/vite/client/bundledDevClient.mjs +1781 -0
  60. package/dist/vite/client/client.mjs +67 -92
  61. package/dist/vite/node/chunks/build.js +98 -88
  62. package/dist/vite/node/chunks/dist.js +62 -114
  63. package/dist/vite/node/chunks/dist2.js +198 -159
  64. package/dist/vite/node/chunks/node.js +3690 -3135
  65. package/dist/vite/node/chunks/postcss-import.js +20 -19
  66. package/dist/vite/node/index.d.ts +73 -17
  67. package/dist/vite/node/module-runner.js +42 -26
  68. package/dist/vite/types/customEvent.d.ts +3 -1
  69. package/dist/vite/types/hmrPayload.d.ts +20 -6
  70. package/package.json +36 -16
  71. package/dist/rolldown/shared/binding-Dby9rwGk.mjs +0 -588
  72. package/dist/rolldown/shared/rolldown-BnV7isAX.mjs +0 -40
  73. package/dist/tsdown/internal-DAh_SWnB.js +0 -3
  74. package/dist/tsdown/load-tsc-BKULZsrs-Bha6Vsu1.js +0 -18
  75. package/dist/tsdown/tsc-context-BhMGQ9Qr.js +0 -23
@@ -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.20/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/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.20/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/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.20/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/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,7 +103,7 @@ 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.20/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/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) => {
@@ -117,7 +117,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  };
118
118
  }));
119
119
  //#endregion
120
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/apply-styles.js
121
121
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
122
  module.exports = function applyStyles(bundle, styles) {
123
123
  styles.nodes = [];
@@ -137,7 +137,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  };
138
138
  }));
139
139
  //#endregion
140
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/data-url.js
141
141
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
142
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
143
143
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -156,7 +156,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
156
156
  };
157
157
  }));
158
158
  //#endregion
159
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/parse-statements.js
160
160
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  const valueParser = require_lib();
162
162
  const { stringify } = valueParser;
@@ -281,7 +281,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
281
281
  }
282
282
  }));
283
283
  //#endregion
284
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/process-content.js
285
285
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
286
  const path$2 = __require("path");
287
287
  let sugarss;
@@ -315,7 +315,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
315
315
  }
316
316
  }));
317
317
  //#endregion
318
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/lib/parse-styles.js
319
319
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  const path$1 = __require("path");
321
321
  const dataURL = require_data_url();
@@ -341,15 +341,16 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
341
341
  }
342
342
  statements.forEach((stmt) => {
343
343
  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);
344
+ else if (stmt.type === "import") {
345
+ if (stmt.children) stmt.children.forEach((child, index) => {
346
+ if (child.type === "import") beforeBundle.push(child);
347
+ else if (child.type === "layer") beforeBundle.push(child);
348
+ else if (child.type === "charset") handleCharset(child);
349
+ else bundle.push(child);
350
+ if (index === 0) child.parent = stmt;
351
+ });
352
+ else beforeBundle.push(stmt);
353
+ } else if (stmt.type === "layer") beforeBundle.push(stmt);
353
354
  else if (stmt.type === "nodes") bundle.push(stmt);
354
355
  });
355
356
  return charset ? [charset, ...beforeBundle.concat(bundle)] : beforeBundle.concat(bundle);
@@ -418,7 +419,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
419
  module.exports = parseStyles;
419
420
  }));
420
421
  //#endregion
421
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.20/node_modules/postcss-import/index.js
422
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.25/node_modules/postcss-import/index.js
422
423
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
424
  const path = __require("path");
424
425
  const applyConditions = require_apply_conditions();
@@ -24,12 +24,13 @@ import { ZlibOptions } from "node:zlib";
24
24
  import { ChunkMetadata, CustomPluginOptionsVite } from "#types/metadata";
25
25
  import { Terser, TerserMinifyOptions } from "#types/internal/terserOptions";
26
26
  import * as PostCSS from "postcss";
27
+ import { ProcessOptions, Processor, Transformer } from "postcss";
27
28
  import { LightningCSSOptions, LightningCSSOptions as lightningcssOptions_LightningCSSOptions } from "#types/internal/lightningcssOptions";
28
29
  import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPreprocessorBaseOptions } from "#types/internal/cssPreprocessorOptions";
29
30
  import { withFilter } from "@voidzero-dev/vite-plus-core/rolldown/filter";
30
31
  import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap, KnownQueryTypeMap } from "#types/importGlob";
31
32
  //#endregion
32
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.3.4_crossws@0.4.10_srvx@0.11.15__typescript@6.0.2_vite@packages+core/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.5__srvx@0.12.5_typescript@6.0.3_valibo_cab925285c1aff7a926a82387cecd3f1/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
33
34
  //#region src/node/cli-commands.d.ts
34
35
  interface StartOptions {
35
36
  root?: string;
@@ -39,7 +40,7 @@ interface StartOptions {
39
40
  open?: boolean;
40
41
  }
41
42
  //#endregion
42
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.3.4_crossws@0.4.10_srvx@0.11.15__typescript@6.0.2_vite@packages+core/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.5__srvx@0.12.5_typescript@6.0.3_valibo_cab925285c1aff7a926a82387cecd3f1/node_modules/@vitejs/devtools/dist/config.d.ts
43
44
  //#region src/node/config.d.ts
44
45
  interface DevToolsConfig extends Partial<StartOptions> {
45
46
  enabled: boolean;
@@ -64,6 +65,16 @@ interface DevToolsConfig extends Partial<StartOptions> {
64
65
  * will be auto-approved without a terminal prompt.
65
66
  */
66
67
  clientAuthTokens?: string[];
68
+ /**
69
+ * Origins allowed to open the DevTools WebSocket connection, in addition to the built-in
70
+ * loopback allowlist (`localhost`, `127.0.0.1`, etc).
71
+ *
72
+ * The loopback check is a plain string match against the `Origin` header, not a DNS/hosts-file
73
+ * resolution — a custom dev hostname that resolves to loopback via `/etc/hosts` or a local DNS
74
+ * override (e.g. `dev-my-app.example.com`) is invisible to it and gets rejected. List such
75
+ * hostnames here explicitly.
76
+ */
77
+ allowedOrigins?: string[];
67
78
  }
68
79
  interface ResolvedDevToolsConfig {
69
80
  config: Omit<DevToolsConfig, 'enabled'> & {
@@ -334,7 +345,7 @@ declare namespace Connect {
334
345
  }
335
346
  }
336
347
  //#endregion
337
- //#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
338
349
  interface ProxyTargetDetailed {
339
350
  host: string;
340
351
  port: number;
@@ -522,7 +533,7 @@ declare class ProxyServer<TIncomingMessage extends typeof http.IncomingMessage =
522
533
  after: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
523
534
  }
524
535
  //#endregion
525
- //#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
526
537
  declare function numOpenSockets(): number;
527
538
  declare namespace index_d_exports {
528
539
  export { ErrorCallback, ProxyServer, ProxyTarget, ProxyTargetUrl, ServerOptions$3 as ServerOptions, createProxyServer as createProxy, createProxyServer, createProxyServer as createServer, ProxyServer as default, numOpenSockets };
@@ -1625,25 +1636,36 @@ declare class MemoryFiles {
1625
1636
  declare class BundledDev {
1626
1637
  private environment;
1627
1638
  private _devEngine;
1639
+ private viteRuntime?;
1628
1640
  private initialBuildCompleted;
1629
1641
  private _closed;
1630
1642
  private clients;
1631
- private invalidateCalledModules;
1632
1643
  private debouncedFullReload;
1633
1644
  private fullReloadPending;
1645
+ private reloadNeededClientIds;
1646
+ private debouncedReloadNeededFlush;
1634
1647
  private lastBuildError;
1635
1648
  memoryFiles: MemoryFiles;
1636
1649
  constructor(environment: DevEnvironment);
1637
1650
  private get devEngine();
1651
+ private pendingPayloadFilenames;
1652
+ get hasBuildOutput(): boolean;
1638
1653
  listen(): Promise<void>;
1639
1654
  private waitForInitialBuildFinish;
1640
- invalidateModule(m: {
1641
- path: string;
1642
- message?: string;
1643
- firstInvalidatedBy: string;
1644
- }, client: NormalizedHotChannelClient): Promise<void>;
1655
+ private ensureOutputAndFlushReloadNeeded;
1645
1656
  triggerBundleRegenerationIfStale(): Promise<boolean>;
1646
- triggerLazyBundling(moduleId: string | null, clientId: string | null): Promise<string | undefined>;
1657
+ triggerLazyBundling(moduleId: string | null, clientId: string | null): Promise<{
1658
+ code: string;
1659
+ filename: string;
1660
+ } | undefined>;
1661
+ /**
1662
+ * Called by the serving middlewares when the response for a payload completed.
1663
+ * Only delivered payloads are recorded on the server's per-client ship map, so
1664
+ * later chunks may omit a module only if the payload carrying it was delivered.
1665
+ *
1666
+ * Note: the payload filename is unique across all clients.
1667
+ */
1668
+ markPayloadDelivered(filename: string): void;
1647
1669
  close(): Promise<void>;
1648
1670
  private storeOutputFiles;
1649
1671
  private getRolldownOptions;
@@ -2002,7 +2024,6 @@ interface ResolveOptions extends EnvironmentResolveOptions {
2002
2024
  * Enable tsconfig paths resolution
2003
2025
  *
2004
2026
  * @default false
2005
- * @experimental
2006
2027
  */
2007
2028
  tsconfigPaths?: boolean;
2008
2029
  }
@@ -2149,7 +2170,7 @@ interface BuildEnvironmentOptions {
2149
2170
  /**
2150
2171
  * Set to `false` to disable minification, or specify the minifier to use.
2151
2172
  * Available options are 'oxc' or 'terser' or 'esbuild'.
2152
- * @default 'oxc'
2173
+ * @default 'oxc' for client build, false for SSR build
2153
2174
  */
2154
2175
  minify?: boolean | "oxc" | "terser" | "esbuild";
2155
2176
  /**
@@ -2280,9 +2301,10 @@ interface BuildEnvironmentOptions {
2280
2301
  type BuildOptions = BuildEnvironmentOptions;
2281
2302
  interface LibraryOptions {
2282
2303
  /**
2283
- * Path of library entry
2304
+ * Path of library entry.
2305
+ * Defaults to the top-level `input` option when omitted.
2284
2306
  */
2285
- entry: InputOption;
2307
+ entry?: InputOption;
2286
2308
  /**
2287
2309
  * The name of the exposed global variable. Required when the `formats` option includes
2288
2310
  * `umd` or `iife`
@@ -2759,6 +2781,13 @@ interface ViteDevServer {
2759
2781
  interface ResolvedServerUrls {
2760
2782
  local: string[];
2761
2783
  network: string[];
2784
+ /**
2785
+ * Names of the network interface that each {@link ResolvedServerUrls.network}
2786
+ * URL is bound to, in the same order as `network`. An entry is `undefined`
2787
+ * when the interface name is not known, for example when an explicit `host`
2788
+ * is set.
2789
+ */
2790
+ networkInterfaceNames?: (string | undefined)[];
2762
2791
  }
2763
2792
  declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
2764
2793
  //#endregion
@@ -3083,6 +3112,18 @@ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: stri
3083
3112
  */
3084
3113
  declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3085
3114
  //#endregion
3115
+ //#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
3116
+ type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
3117
+ interface Config {
3118
+ parser?: string | ProcessOptions['parser'] | false;
3119
+ stringifier?: string | ProcessOptions['stringifier'] | false;
3120
+ syntax?: string | ProcessOptions['syntax'] | false;
3121
+ map?: string | false;
3122
+ from?: string;
3123
+ to?: string;
3124
+ plugins?: Array<ConfigPlugin | false> | Record<string, object | false>;
3125
+ }
3126
+ //#endregion
3086
3127
  //#region src/node/plugins/css.d.ts
3087
3128
  interface CSSOptions {
3088
3129
  /**
@@ -3376,6 +3417,12 @@ type AllResolveOptions = ResolveOptions & {
3376
3417
  alias?: AliasOptions;
3377
3418
  };
3378
3419
  interface SharedEnvironmentOptions {
3420
+ /**
3421
+ * Entry points of the application.
3422
+ *
3423
+ * Paths are resolved relative to the project root.
3424
+ */
3425
+ input?: InputOption;
3379
3426
  /**
3380
3427
  * Define global variable replacements.
3381
3428
  * Entries will be defined on `window` during dev and replaced during build.
@@ -3423,6 +3470,7 @@ interface EnvironmentOptions extends SharedEnvironmentOptions {
3423
3470
  }
3424
3471
  type ResolvedResolveOptions = Required<ResolveOptions>;
3425
3472
  type ResolvedEnvironmentOptions = {
3473
+ input?: InputOption;
3426
3474
  define?: Record<string, any>;
3427
3475
  resolve: ResolvedResolveOptions;
3428
3476
  consumer: "client" | "server";
@@ -3463,7 +3511,7 @@ interface UserConfig extends DefaultEnvironmentOptions {
3463
3511
  * the performance. You can use `--force` flag or manually delete the directory
3464
3512
  * to regenerate the cache files. The value can be either an absolute file
3465
3513
  * system path or a path relative to project root.
3466
- * Default to `.vite` when no `package.json` is detected.
3514
+ * Default to `.vite` when neither a `package.json` nor a `node_modules` directory is detected.
3467
3515
  * @default 'node_modules/.vite'
3468
3516
  */
3469
3517
  cacheDir?: string;
@@ -3680,6 +3728,14 @@ interface ExperimentalOptions {
3680
3728
  *
3681
3729
  * This is highly experimental.
3682
3730
  *
3731
+ * HMR semantics under full bundle mode differ from the middleware-based dev server
3732
+ * in two ways (boundaries are computed in the browser from runtime state, not
3733
+ * statically on the server):
3734
+ *
3735
+ * - Acceptance counts only when it executed: an `import.meta.hot.accept()` that
3736
+ * is in a dead branch does not suppress the update and falls back to a full reload.
3737
+ * - `hot.invalidate()` is handled fully client-side.
3738
+ *
3683
3739
  * @experimental
3684
3740
  * @default false
3685
3741
  */
@@ -4007,4 +4063,4 @@ declare const parseAst: typeof parseAst$1;
4007
4063
  declare const parseAstAsync: typeof parseAstAsync$1;
4008
4064
  declare const esbuildVersion = "0.25.0";
4009
4065
  //#endregion
4010
- 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 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 };
4066
+ 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 };
@@ -65,19 +65,22 @@ function normalizeString(path, allowAboveRoot) {
65
65
  else if (char === "/") break;
66
66
  else char = "/";
67
67
  if (char === "/") {
68
- if (lastSlash !== index - 1 && dots !== 1) if (dots === 2) {
69
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
70
- if (res.length > 2) {
71
- let lastSlashIndex = res.lastIndexOf("/");
72
- lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = index, dots = 0;
73
- continue;
74
- } else if (res.length > 0) {
75
- res = "", lastSegmentLength = 0, lastSlash = index, dots = 0;
76
- continue;
68
+ if (lastSlash !== index - 1 && dots !== 1) {
69
+ if (dots === 2) {
70
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
71
+ if (res.length > 2) {
72
+ let lastSlashIndex = res.lastIndexOf("/");
73
+ lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = index, dots = 0;
74
+ continue;
75
+ }
76
+ if (res.length > 0) {
77
+ res = "", lastSegmentLength = 0, lastSlash = index, dots = 0;
78
+ continue;
79
+ }
77
80
  }
78
- }
79
- allowAboveRoot && (res += res.length > 0 ? "/.." : "..", lastSegmentLength = 2);
80
- } else res.length > 0 ? res += `/${path.slice(lastSlash + 1, index)}` : res = path.slice(lastSlash + 1, index), lastSegmentLength = index - lastSlash - 1;
81
+ allowAboveRoot && (res += res.length > 0 ? "/.." : "..", lastSegmentLength = 2);
82
+ } else res.length > 0 ? res += `/${path.slice(lastSlash + 1, index)}` : res = path.slice(lastSlash + 1, index), lastSegmentLength = index - lastSlash - 1;
83
+ }
81
84
  lastSlash = index, dots = 0;
82
85
  } else char === "." && dots !== -1 ? ++dots : dots = -1;
83
86
  }
@@ -464,13 +467,17 @@ var HMRContext = class {
464
467
  this.hotModulesMap.clear(), this.disposeMap.clear(), this.pruneMap.clear(), this.dataMap.clear(), this.customListenersMap.clear(), this.ctxToListenersMap.clear();
465
468
  }
466
469
  async prunePaths(paths) {
467
- await Promise.all(paths.map((path) => {
468
- let disposer = this.disposeMap.get(path);
469
- if (disposer) return disposer(this.dataMap.get(path));
470
- })), await Promise.all(paths.map((path) => {
471
- let fn = this.pruneMap.get(path);
472
- if (fn) return fn(this.dataMap.get(path));
473
- }));
470
+ try {
471
+ await Promise.all(paths.map((path) => {
472
+ let disposer = this.disposeMap.get(path);
473
+ if (disposer) return disposer(this.dataMap.get(path));
474
+ })), await Promise.all(paths.map((path) => {
475
+ let fn = this.pruneMap.get(path);
476
+ if (fn) return fn(this.dataMap.get(path));
477
+ }));
478
+ } finally {
479
+ paths.forEach((path) => this.dataMap.delete(path));
480
+ }
474
481
  }
475
482
  warnFailedUpdate(err, path) {
476
483
  (!(err instanceof Error) || !err.message.includes("fetch")) && this.logger.error(err), this.logger.error(`Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)`);
@@ -647,14 +654,18 @@ const createInvokeableTransport = (transport) => {
647
654
  } } : {},
648
655
  async send(data) {
649
656
  if (invokeableTransport.send) {
650
- if (!isConnected) if (connectingPromise) await connectingPromise;
651
- else throw new SendBeforeConnectError("send was called before connect");
657
+ if (!isConnected) {
658
+ if (connectingPromise) await connectingPromise;
659
+ else throw new SendBeforeConnectError("send was called before connect");
660
+ }
652
661
  await invokeableTransport.send(data);
653
662
  }
654
663
  },
655
664
  async invoke(name, data) {
656
- if (!isConnected) if (connectingPromise) await connectingPromise;
657
- else throw new SendBeforeConnectError("invoke was called before connect");
665
+ if (!isConnected) {
666
+ if (connectingPromise) await connectingPromise;
667
+ else throw new SendBeforeConnectError("invoke was called before connect");
668
+ }
658
669
  return invokeableTransport.invoke(name, data);
659
670
  }
660
671
  };
@@ -787,6 +798,7 @@ function createHMRHandlerForRunner(runner) {
787
798
  break;
788
799
  }
789
800
  case "ping": break;
801
+ case "bundled-dev-update": break;
790
802
  default: return payload;
791
803
  }
792
804
  });
@@ -866,7 +878,11 @@ function retrieveSourceMap(source) {
866
878
  let sourceMappingURL = retrieveSourceMapURL(source);
867
879
  if (!sourceMappingURL) return null;
868
880
  let sourceMapData;
869
- return reSourceMap.test(sourceMappingURL) ? (sourceMapData = decodeBase64(sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1)), sourceMappingURL = source) : (sourceMappingURL = supportRelativeURL(source, sourceMappingURL), sourceMapData = retrieveFile(sourceMappingURL)), sourceMapData ? {
881
+ if (reSourceMap.test(sourceMappingURL)) {
882
+ let rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1);
883
+ sourceMapData = decodeBase64(rawData), sourceMappingURL = source;
884
+ } else sourceMappingURL = supportRelativeURL(source, sourceMappingURL), sourceMapData = retrieveFile(sourceMappingURL);
885
+ return sourceMapData ? {
870
886
  url: sourceMappingURL,
871
887
  map: sourceMapData
872
888
  } : null;
@@ -918,7 +934,7 @@ function CallSiteToString() {
918
934
  let fileName, fileLocation = "";
919
935
  if (this.isNative()) fileLocation = "native";
920
936
  else {
921
- fileName = this.getScriptNameOrSourceURL(), !fileName && this.isEval() && (fileLocation = this.getEvalOrigin(), fileLocation += ", "), fileName ? fileLocation += fileName : fileLocation += "<anonymous>";
937
+ fileName = this.getScriptNameOrSourceURL(), !fileName && this.isEval() && (fileLocation = this.getEvalOrigin(), fileLocation += ", "), fileLocation += fileName || "<anonymous>";
922
938
  let lineNumber = this.getLineNumber();
923
939
  if (lineNumber != null) {
924
940
  fileLocation += `:${lineNumber}`;
@@ -937,7 +953,7 @@ function CallSiteToString() {
937
953
  return addSuffix && (line += ` (${fileLocation})`), line;
938
954
  }
939
955
  function cloneCallSite(frame) {
940
- let object = {};
956
+ let object = Object.create(null);
941
957
  return Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach((name) => {
942
958
  let key = name;
943
959
  object[key] = /^(?:is|get)/.test(name) ? function() {
@@ -18,7 +18,9 @@ export interface CustomEventMap {
18
18
  /** @internal */
19
19
  'vite:forward-console': ForwardConsolePayload
20
20
  /** @internal */
21
- 'vite:module-loaded': { modules: string[]; clientId: string }
21
+ 'vite:client-connected': { clientId: string }
22
+ /** @internal */
23
+ 'vite:bundled-dev:reload-needed': { reason: string }
22
24
 
23
25
  // server events
24
26
  'vite:client:connect': undefined
@@ -4,6 +4,7 @@ export type HotPayload =
4
4
  | ConnectedPayload
5
5
  | PingPayload
6
6
  | UpdatePayload
7
+ | BundledDevUpdatePayload
7
8
  | FullReloadPayload
8
9
  | CustomPayload
9
10
  | ErrorPayload
@@ -22,14 +23,21 @@ export interface UpdatePayload {
22
23
  updates: Update[]
23
24
  }
24
25
 
26
+ /**
27
+ * Full-bundle-mode update notification. The client computes the HMR boundaries
28
+ * itself from `changedIds`.
29
+ */
30
+ export interface BundledDevUpdatePayload {
31
+ type: 'bundled-dev-update'
32
+ changedIds: string[]
33
+ /** URL of the per-client HMR patch chunk */
34
+ url: string
35
+ /** Per-client sequence number */
36
+ seq: number
37
+ }
38
+
25
39
  export interface Update {
26
40
  type: 'js-update' | 'css-update'
27
- /**
28
- * URL of HMR patch chunk
29
- *
30
- * This only exists when full-bundle mode is enabled.
31
- */
32
- url?: string
33
41
  path: string
34
42
  acceptedPath: string
35
43
  timestamp: number
@@ -53,6 +61,12 @@ export interface FullReloadPayload {
53
61
  path?: string
54
62
  /** @internal */
55
63
  triggeredBy?: string
64
+ /**
65
+ * When set, only the bundling-fallback page acts on the reload;
66
+ * other pages ignore the message.
67
+ * @internal
68
+ */
69
+ ifFallback?: boolean
56
70
  }
57
71
 
58
72
  export interface CustomPayload {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -62,6 +62,10 @@
62
62
  "default": "./dist/rolldown/experimental-index.mjs",
63
63
  "types": "./dist/rolldown/experimental-index.d.mts"
64
64
  },
65
+ "./rolldown/experimental/runtime": {
66
+ "types": "./dist/rolldown/experimental-runtime.d.ts",
67
+ "default": "./dist/rolldown/experimental-runtime.mjs"
68
+ },
65
69
  "./rolldown/experimental/runtime-types": {
66
70
  "types": "./dist/rolldown/experimental-runtime-types.d.ts"
67
71
  },
@@ -85,8 +89,14 @@
85
89
  "default": "./dist/rolldown/plugins-index.mjs",
86
90
  "types": "./dist/rolldown/plugins-index.d.mts"
87
91
  },
88
- "./rolldown/pluginutils": "./dist/pluginutils/index.mjs",
89
- "./rolldown/pluginutils/filter": "./dist/pluginutils/filter/index.mjs",
92
+ "./rolldown/pluginutils": {
93
+ "default": "./dist/pluginutils/index.mjs",
94
+ "types": "./dist/pluginutils/index.d.mts"
95
+ },
96
+ "./rolldown/pluginutils/filter": {
97
+ "default": "./dist/pluginutils/filter/index.mjs",
98
+ "types": "./dist/pluginutils/filter/index.d.mts"
99
+ },
90
100
  "./rolldown/utils": {
91
101
  "default": "./dist/rolldown/utils-index.mjs",
92
102
  "types": "./dist/rolldown/utils-index.d.mts"
@@ -97,8 +107,8 @@
97
107
  "./types/internal/*": null
98
108
  },
99
109
  "dependencies": {
100
- "@oxc-project/runtime": "=0.141.0",
101
- "@oxc-project/types": "=0.141.0",
110
+ "@oxc-project/runtime": "=0.143.0",
111
+ "@oxc-project/types": "=0.143.0",
102
112
  "lightningcss": "^1.33.0",
103
113
  "postcss": "^8.5.6",
104
114
  "yuku-codegen": "^0.5.44",
@@ -109,33 +119,35 @@
109
119
  "@babel/generator": "^7.28.5",
110
120
  "@babel/parser": "^7.28.5",
111
121
  "@babel/types": "^7.28.5",
122
+ "@emnapi/core": "2.0.0-alpha.3",
123
+ "@emnapi/runtime": "2.0.0-alpha.3",
124
+ "@napi-rs/cli": "^3.8.2",
112
125
  "@oxc-node/cli": "^0.1.0",
113
- "@oxc-node/core": "^0.1.0",
114
126
  "@tsdown/css": "^0.22.14",
115
127
  "@tsdown/exe": "^0.22.14",
116
- "@vitejs/devtools": "^0.4.5",
128
+ "@vitejs/devtools": "^0.4.12",
117
129
  "es-module-lexer": "^1.7.0",
118
130
  "hookable": "^6.0.1",
119
131
  "magic-string": "^0.30.21",
120
- "oxc-parser": "=0.141.0",
121
- "oxfmt": "=0.60.0",
132
+ "oxc-parser": "=0.143.0",
133
+ "oxfmt": "=0.62.0",
122
134
  "picocolors": "^1.1.1",
123
135
  "picomatch": "^4.0.3",
124
136
  "pkg-types": "^2.3.0",
125
- "rolldown-plugin-dts": "^0.27.0",
137
+ "rolldown-plugin-dts": "^0.28.0",
126
138
  "rollup": "^4.18.0",
127
139
  "rollup-plugin-license": "^3.6.0",
128
140
  "semver": "^7.7.3",
129
141
  "tinyglobby": "^0.2.15",
130
142
  "tree-kill": "^1.2.2",
131
143
  "tsdown": "^0.22.14",
132
- "rolldown": "1.2.0",
133
- "vite": "npm:@voidzero-dev/vite-plus-core@0.2.7"
144
+ "rolldown": "1.2.3",
145
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.9"
134
146
  },
135
147
  "peerDependencies": {
136
148
  "@arethetypeswrong/core": "^0.18.1",
137
149
  "@types/node": "^20.19.0 || >=22.12.0",
138
- "@vitejs/devtools": "^0.3.0",
150
+ "@vitejs/devtools": "^0.4.0",
139
151
  "esbuild": "^0.27.0 || ^0.28.0",
140
152
  "jiti": ">=1.21.0",
141
153
  "less": "^4.0.0",
@@ -205,14 +217,22 @@
205
217
  }
206
218
  },
207
219
  "optionalDependencies": {
208
- "fsevents": "~2.3.3"
220
+ "fsevents": "~2.3.3",
221
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.2.9",
222
+ "@voidzero-dev/vite-plus-darwin-x64": "0.2.9",
223
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.9",
224
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.9",
225
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.9",
226
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.2.9",
227
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.9",
228
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.9"
209
229
  },
210
230
  "engines": {
211
231
  "node": "^20.19.0 || ^22.18.0 || >=24.11.0"
212
232
  },
213
233
  "bundledVersions": {
214
- "vite": "8.1.5",
215
- "rolldown": "1.2.0",
234
+ "vite": "8.2.1",
235
+ "rolldown": "1.2.3",
216
236
  "tsdown": "0.22.14"
217
237
  },
218
238
  "scripts": {