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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +34 -5
  5. package/dist/rolldown/experimental-index.mjs +36 -9
  6. package/dist/rolldown/experimental-runtime-types.d.ts +2 -2
  7. package/dist/rolldown/experimental-runtime.d.ts +2 -2
  8. package/dist/rolldown/experimental-runtime.mjs +2 -2
  9. package/dist/rolldown/filter-index.d.mts +1 -1
  10. package/dist/rolldown/filter-index.mjs +1 -3
  11. package/dist/rolldown/index.d.mts +3 -3
  12. package/dist/rolldown/index.mjs +4 -4
  13. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  14. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +3 -3
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-CVtkJvyl.d.mts → binding-DZuNHVw4.d.mts} +88 -5
  20. package/dist/rolldown/shared/{binding-CKyeQZen.mjs → binding-DmImI4pj.mjs} +29 -27
  21. package/dist/rolldown/shared/{bindingify-input-options-44iPAymO.mjs → bindingify-input-options-BYClWKnj.mjs} +11 -9
  22. package/dist/rolldown/shared/{constructors-XaIbWpwJ.d.mts → constructors-BM20b11r.d.mts} +2 -2
  23. package/dist/rolldown/shared/{constructors-6Zc-JFd7.mjs → constructors-mRbcbLyX.mjs} +1 -1
  24. package/dist/rolldown/shared/{create-bundler-option-e1FU0w0P.mjs → create-bundler-option-CHTBktos.mjs} +49 -6
  25. package/dist/rolldown/shared/{define-config-DVsXPNaU.d.mts → define-config-DNX0WekP.d.mts} +46 -7
  26. package/dist/rolldown/shared/{error-BzLGqhSQ.mjs → error-BP8lJHle.mjs} +1 -1
  27. package/dist/rolldown/shared/{load-config-C6QXSnoS.mjs → load-config-Cx5fx_8Q.mjs} +1 -1
  28. package/dist/rolldown/shared/{normalize-string-or-regex-DYjJ67tj.mjs → normalize-string-or-regex-Dm69lpQ-.mjs} +1 -1
  29. package/dist/rolldown/shared/{parse-uDDyc1el.mjs → parse-8sr82jSR.mjs} +2 -2
  30. package/dist/rolldown/shared/{resolve-tsconfig-Bcd82vVT.mjs → resolve-tsconfig-BlNGaH3Y.mjs} +10 -6
  31. package/dist/rolldown/shared/{rolldown-CCbQNGZt.mjs → rolldown-CaX_Wmqc.mjs} +5 -4
  32. package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform-CVse9_mH.d.mts} +8 -4
  33. package/dist/rolldown/shared/{watch-vuOCmvFs.mjs → watch-YKfJgIxz.mjs} +4 -4
  34. package/dist/rolldown/utils-index.d.mts +3 -3
  35. package/dist/rolldown/utils-index.mjs +5 -5
  36. package/dist/tsdown/{build-D_enfyvD-Dg1eKRD4.js → build-JVmLFaZt-kqQJ2U7s.js} +1705 -239
  37. package/dist/tsdown/debug-CpC4hV25-tvH_Dsg5.js +247 -0
  38. package/dist/tsdown/{detect-DGhJGEqb-6CTf16BW.js → detect-Bg-d8iUV-KfbO7neP.js} +10 -12
  39. package/dist/tsdown/{dist-DyXLnzyh.js → dist-Cuw3Ngo4.js} +1226 -893
  40. package/dist/tsdown/index-types.d.ts +277 -355
  41. package/dist/tsdown/index.js +4 -4
  42. package/dist/tsdown/internal-D-JfB5uT.js +29 -0
  43. package/dist/tsdown/internal-lhH-5yya.js +62 -0
  44. package/dist/tsdown/{main-DiierkER.js → main-CyNcZUzu.js} +8 -214
  45. package/dist/tsdown/{resolver-cwLsPb2o-Dk4xdAGE.js → resolver-DE0_sy8o-ZQqHQjRu.js} +4 -4
  46. package/dist/tsdown/rolldown-runtime-B4iAMlE-.js +35 -0
  47. package/dist/tsdown/run.js +44 -8
  48. package/dist/tsdown/{src-drVPfX63.js → src-BWidcM5N.js} +5 -5
  49. package/dist/tsdown/{tsc-JnMl2z7d.js → tsc-ChjRhsoQ.js} +26 -20
  50. package/dist/tsdown/tsdown-css.js +17 -11
  51. package/dist/tsdown/tsdown-exe.js +16 -5
  52. package/dist/tsdown/version-CQ98ZBpL-Obdnv4J7.js +141 -0
  53. package/dist/vite/client/bundledDevClient.mjs +69 -19
  54. package/dist/vite/client/client.mjs +4 -4
  55. package/dist/vite/node/chunks/build.js +21 -21
  56. package/dist/vite/node/chunks/lib.js +2 -2
  57. package/dist/vite/node/chunks/node.js +159 -114
  58. package/dist/vite/node/chunks/postcss-import.js +13 -16
  59. package/dist/vite/node/index.d.ts +58 -55
  60. package/dist/vite/node/module-runner.d.ts +13 -13
  61. package/dist/vite/node/module-runner.js +3 -4
  62. package/package.json +30 -30
  63. package/dist/tsdown/debug-CKcBYQLP-C3NhYhrk.js +0 -157
  64. package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
  65. package/dist/tsdown/internal-DKworeK4.js +0 -3
  66. package/dist/tsdown/target-Bab3CUeB-DQ0pKhCv.js +0 -582
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-vuOCmvFs.mjs";
2
- import { D as version, E as description } from "./shared/bindingify-input-options-44iPAymO.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-YKfJgIxz.mjs";
2
+ import { D as version, E as description } from "./shared/bindingify-input-options-BYClWKnj.mjs";
3
3
  import { t as arraify } from "./shared/misc-DOSKtd97.mjs";
4
- import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-e1FU0w0P.mjs";
5
- import { t as rolldown } from "./shared/rolldown-CCbQNGZt.mjs";
6
- import { t as loadConfig } from "./shared/load-config-C6QXSnoS.mjs";
4
+ import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-CHTBktos.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-CaX_Wmqc.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-Cx5fx_8Q.mjs";
7
7
  import path from "node:path";
8
8
  import g$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -866,7 +866,7 @@ function getClearScreenFunction(options) {
866
866
  };
867
867
  }
868
868
  //#endregion
869
- //#region \0@oxc-project+runtime@0.143.0/helpers/esm/usingCtx.js
869
+ //#region \0@oxc-project+runtime@0.148.0/helpers/esm/usingCtx.js
870
870
  function _usingCtx() {
871
871
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
872
872
  var n = Error();
@@ -1,4 +1,4 @@
1
- import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-DVsXPNaU.mjs";
1
+ import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-DNX0WekP.mjs";
2
2
  //#region src/utils/load-config.d.ts
3
3
  type ConfigLoader = "bundle" | "native";
4
4
  interface LoadConfigOptions {
@@ -1,4 +1,4 @@
1
- import { T as VERSION } from "./shared/bindingify-input-options-44iPAymO.mjs";
1
+ import { T as VERSION } from "./shared/bindingify-input-options-BYClWKnj.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-C6QXSnoS.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-Cx5fx_8Q.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
- import { H as ResolverFactory, J as moduleRunnerTransform, K as isolatedDeclaration, L as NapiResolveOptions, M as IsolatedDeclarationsOptions, N as IsolatedDeclarationsResult, V as ResolveResult, _ as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, k as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, p as BindingRebuildStrategy, q as isolatedDeclarationSync, r as BindingBundleState, u as BindingLazyChunkOutput, v as BindingTsconfigRawOptions, w as BindingViteManifestPluginConfig } from "./shared/binding-CVtkJvyl.mjs";
2
- import { $ as defineParallelPlugin, Gt as StringOrRegExp, I as BuiltinPlugin, Qt as freeExternalMemory, Vt as OutputOptions, Xt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-DVsXPNaU.mjs";
3
- import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-WmU_cI8e.mjs";
4
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-XaIbWpwJ.mjs";
1
+ import { $ as resetNativeMemoryStats, B as NapiResolveOptions, E as BindingViteManifestPluginConfig, F as IsolatedDeclarationsResult, G as ResolverFactory, P as IsolatedDeclarationsOptions, Q as moduleRunnerTransform, W as ResolveResult, X as isolatedDeclaration, Y as getNativeMemoryStats, Z as isolatedDeclarationSync, b as BindingTsconfigRawOptions, f as BindingModuleInfo, h as BindingRebuildStrategy, i as BindingClientHmrUpdate, j as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, p as BindingNativeMemoryStats, r as BindingBundleState, u as BindingLazyChunkOutput, y as BindingTsconfigCompilerOptions } from "./shared/binding-DZuNHVw4.mjs";
2
+ import { $ as defineParallelPlugin, $t as freeExternalMemory, Ht as OutputOptions, I as BuiltinPlugin, Kt as StringOrRegExp, Zt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-DNX0WekP.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-CVse9_mH.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BM20b11r.mjs";
5
5
  //#region src/api/dev/dev-options.d.ts
6
6
  type DevOnHmrUpdates = (result: Error | {
7
7
  updates: BindingClientHmrUpdate[];
@@ -96,8 +96,37 @@ interface DevOptions {
96
96
  }
97
97
  //#endregion
98
98
  //#region src/api/dev/dev-engine.d.ts
99
+ /**
100
+ * The part of the binding engine the module graph reads from.
101
+ *
102
+ * Typed structurally instead of as `BindingDevEngine`: a public constructor
103
+ * parameter type is emitted into the public dts, and naming the binding class
104
+ * there would pull the whole binding type chain into the public surface.
105
+ */
106
+ interface ModuleGraphSource {
107
+ getModuleInfo(moduleId: string): BindingModuleInfo | null;
108
+ getModuleIds(): Array<string>;
109
+ }
110
+ /** Read-only view over the engine's module graph, kept current across rebuilds. */
111
+ declare class DevEngineModuleGraph {
112
+ #private;
113
+ constructor(inner: ModuleGraphSource);
114
+ /**
115
+ * Get additional information about the module in question.
116
+ *
117
+ * @returns Module information for that module. `null` if the module could not be found.
118
+ */
119
+ getModuleInfo(moduleId: string): BindingModuleInfo | null;
120
+ /**
121
+ * Get all module ids in the current module graph.
122
+ *
123
+ * @returns An array of module ids.
124
+ */
125
+ getModuleIds(): string[];
126
+ }
99
127
  declare class DevEngine {
100
128
  #private;
129
+ readonly moduleGraph: DevEngineModuleGraph;
101
130
  static create(inputOptions: InputOptions, outputOptions?: OutputOptions, devOptions?: DevOptions): Promise<DevEngine>;
102
131
  private constructor();
103
132
  run(): Promise<void>;
@@ -292,4 +321,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
292
321
  /** @deprecated Use from `rolldown/utils` instead. */
293
322
  type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
294
323
  //#endregion
295
- export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
324
+ export { type BindingClientHmrUpdate, type BindingNativeMemoryStats, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resetNativeMemoryStats, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
@@ -1,18 +1,42 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-CKyeQZen.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-DYjJ67tj.mjs";
3
- import { u as transformToRollupOutput } from "./shared/bindingify-input-options-44iPAymO.mjs";
4
- import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-e1FU0w0P.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BzLGqhSQ.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-uDDyc1el.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-6Zc-JFd7.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-Bcd82vVT.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DmImI4pj.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-Dm69lpQ-.mjs";
3
+ import { u as transformToRollupOutput } from "./shared/bindingify-input-options-BYClWKnj.mjs";
4
+ import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-CHTBktos.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BP8lJHle.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-8sr82jSR.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-mRbcbLyX.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-BlNGaH3Y.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
12
+ /** Read-only view over the engine's module graph, kept current across rebuilds. */
13
+ var DevEngineModuleGraph = class {
14
+ #inner;
15
+ constructor(inner) {
16
+ this.#inner = inner;
17
+ }
18
+ /**
19
+ * Get additional information about the module in question.
20
+ *
21
+ * @returns Module information for that module. `null` if the module could not be found.
22
+ */
23
+ getModuleInfo(moduleId) {
24
+ return this.#inner.getModuleInfo(moduleId) ?? null;
25
+ }
26
+ /**
27
+ * Get all module ids in the current module graph.
28
+ *
29
+ * @returns An array of module ids.
30
+ */
31
+ getModuleIds() {
32
+ return this.#inner.getModuleIds();
33
+ }
34
+ };
12
35
  var DevEngine = class DevEngine {
13
36
  #inner;
14
37
  #cachedBuildFinishPromise = null;
15
38
  #asyncRuntimeReleased = false;
39
+ moduleGraph;
16
40
  static async create(inputOptions, outputOptions = {}, devOptions = {}) {
17
41
  inputOptions = await PluginDriver.callOptionsHook(inputOptions);
18
42
  const options = await createBundlerOptions(inputOptions, outputOptions, false);
@@ -65,6 +89,7 @@ var DevEngine = class DevEngine {
65
89
  }
66
90
  constructor(inner) {
67
91
  this.#inner = inner;
92
+ this.moduleGraph = new DevEngineModuleGraph(inner);
68
93
  }
69
94
  async run() {
70
95
  await this.#inner.run();
@@ -350,7 +375,9 @@ const TsconfigCache = TsconfigCache$1;
350
375
  //#endregion
351
376
  var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
352
377
  var ResolverFactory = import_binding.ResolverFactory;
378
+ var getNativeMemoryStats = import_binding.getNativeMemoryStats;
353
379
  var isolatedDeclaration = import_binding.isolatedDeclaration;
354
380
  var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
355
381
  var moduleRunnerTransform = import_binding.moduleRunnerTransform;
356
- export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
382
+ var resetNativeMemoryStats = import_binding.resetNativeMemoryStats;
383
+ export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resetNativeMemoryStats, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
@@ -84,9 +84,9 @@ export class DevRuntime {
84
84
  registerFactory(id: string, kind: "esm" | "cjs", fn: (id: string) => void): void;
85
85
  /**
86
86
  * @param {string} id
87
- * @param {{ exports: any }} exportsHolder
87
+ * @param {{ exports: any }} [exportsHolder]
88
88
  */
89
- registerModule(id: string, exportsHolder: {
89
+ registerModule(id: string, exportsHolder?: {
90
90
  exports: any;
91
91
  }): void;
92
92
  /**
@@ -84,9 +84,9 @@ export class DevRuntime {
84
84
  registerFactory(id: string, kind: "esm" | "cjs", fn: (id: string) => void): void;
85
85
  /**
86
86
  * @param {string} id
87
- * @param {{ exports: any }} exportsHolder
87
+ * @param {{ exports: any }} [exportsHolder]
88
88
  */
89
- registerModule(id: string, exportsHolder: {
89
+ registerModule(id: string, exportsHolder?: {
90
90
  exports: any;
91
91
  }): void;
92
92
  /**
@@ -148,9 +148,9 @@ export class DevRuntime {
148
148
 
149
149
  /**
150
150
  * @param {string} id
151
- * @param {{ exports: any }} exportsHolder
151
+ * @param {{ exports: any }} [exportsHolder]
152
152
  */
153
- registerModule(id, exportsHolder) {
153
+ registerModule(id, exportsHolder = { exports: {} }) {
154
154
  const module = new Module(id);
155
155
  module.exportsHolder = exportsHolder;
156
156
  this.moduleCache.set(id, module);
@@ -1,4 +1,4 @@
1
- import { F as withFilter } from "./shared/define-config-DVsXPNaU.mjs";
1
+ import { F as withFilter } from "./shared/define-config-DNX0WekP.mjs";
2
2
  //#region ../../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
3
3
  //#region src/filter/composable-filters.d.ts
4
4
  type StringOrRegExp = string | RegExp;
@@ -155,9 +155,7 @@ function interpreterImpl(expr, code, id, moduleType, importerId, ctx = {}) {
155
155
  hasInclude = true;
156
156
  if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return true;
157
157
  break;
158
- case "exclude":
159
- if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return false;
160
- break;
158
+ case "exclude": if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) return false;
161
159
  }
162
160
  return !hasInclude;
163
161
  }
@@ -1,4 +1,4 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-xuHO4mAy.mjs";
2
- import { B as PreRenderedChunk } from "./shared/binding-CVtkJvyl.mjs";
3
- import { $t as ModuleInfo, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ModuleFormat, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, H as OutputBundle, Ht as PreRenderedAsset, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as RenderedChunk, K as EmittedChunk, Kt as OutputAsset, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, V as SourceMapInput, Vt as OutputOptions, W as TransformPluginContext, Wt as PartialNull, X as PluginContext, Xt as RolldownOutput, Y as GetModuleInfo, Yt as RenderedModule, Z as PluginContextResolveOptions, Zt as SourceMap, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as SourcemapIgnoreListOption, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputChunk, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as MinifyOptions } from "./shared/define-config-DVsXPNaU.mjs";
4
- export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveFileUrlArgs, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
2
+ import { U as PreRenderedChunk } from "./shared/binding-DZuNHVw4.mjs";
3
+ import { A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as MinifyOptions, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, Gt as PartialNull, H as OutputBundle, Ht as OutputOptions, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as OutputChunk, K as EmittedChunk, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, Qt as SourceMap, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, Ut as PreRenderedAsset, V as SourceMapInput, Vt as ModuleFormat, W as TransformPluginContext, X as PluginContext, Xt as RenderedModule, Y as GetModuleInfo, Yt as RenderedChunk, Z as PluginContextResolveOptions, Zt as RolldownOutput, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as ModuleInfo, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputAsset, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tn as SourcemapIgnoreListOption, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as ManglePropertiesOptions } from "./shared/define-config-DNX0WekP.mjs";
4
+ export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type ManglePropertiesOptions, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveFileUrlArgs, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-CKyeQZen.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-vuOCmvFs.mjs";
3
- import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-44iPAymO.mjs";
4
- import { t as rolldown } from "./shared/rolldown-CCbQNGZt.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DmImI4pj.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-YKfJgIxz.mjs";
3
+ import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-BYClWKnj.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-CaX_Wmqc.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-CKyeQZen.mjs";
2
- import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-44iPAymO.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DmImI4pj.mjs";
2
+ import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-BYClWKnj.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { T as Plugin, Ut as MaybePromise } from "./shared/define-config-DVsXPNaU.mjs";
1
+ import { T as Plugin, Wt as MaybePromise } from "./shared/define-config-DNX0WekP.mjs";
2
2
  //#region src/plugin/parallel-plugin-implementation.d.ts
3
3
  type ParallelPluginImplementation = Plugin;
4
4
  type Context = {
@@ -1,4 +1,4 @@
1
- import { R as ParseResult$1, z as ParserOptions$1 } from "./shared/binding-CVtkJvyl.mjs";
1
+ import { H as ParserOptions$1, V as ParseResult$1 } from "./shared/binding-DZuNHVw4.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  //#region src/parse-ast-index.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { c as logParseError, d as getCodeFrame, n as error, t as augmentCodeLocation, u as locate } from "./shared/logs-DmYCAKcW.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-uDDyc1el.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-8sr82jSR.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,6 +1,6 @@
1
- import { h as BindingReplacePluginConfig } from "./shared/binding-CVtkJvyl.mjs";
2
- import { I as BuiltinPlugin } from "./shared/define-config-DVsXPNaU.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-XaIbWpwJ.mjs";
1
+ import { _ as BindingReplacePluginConfig } from "./shared/binding-DZuNHVw4.mjs";
2
+ import { I as BuiltinPlugin } from "./shared/define-config-DNX0WekP.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BM20b11r.mjs";
4
4
  //#region src/builtin-plugin/replace-plugin.d.ts
5
5
  /**
6
6
  * Replaces targeted strings in files while bundling.
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-DYjJ67tj.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-6Zc-JFd7.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-Dm69lpQ-.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-mRbcbLyX.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -147,11 +147,48 @@ interface MangleOptionsKeepNames {
147
147
  */
148
148
  class: boolean;
149
149
  }
150
+ interface ManglePropertiesOptions {
151
+ /**
152
+ * JavaScript `RegExp` selecting property names to mangle. The source and flags are compiled
153
+ * with Rust's regex engine. Flags `i`, `m`, `s`, and `u` are supported.
154
+ */
155
+ include: RegExp;
156
+ /** JavaScript `RegExp` excluding property names selected by `include`. */
157
+ exclude?: RegExp;
158
+ /** Exact names that are neither mangled nor emitted as automatic output names. */
159
+ reserved?: Array<string>;
160
+ /**
161
+ * Mangle quoted property occurrences in addition to unquoted occurrences.
162
+ *
163
+ * @default false
164
+ */
165
+ quoted?: boolean;
166
+ /**
167
+ * Generate readable `_$name$_`-style output names.
168
+ *
169
+ * @default false
170
+ */
171
+ debug?: boolean;
172
+ /**
173
+ * Stable mappings from original names to output names. `false` reserves an original name.
174
+ * Entries that do not match `include`, or that match `exclude`, remain inert but are
175
+ * preserved in the returned `mangleCache`. String targets must be `IdentifierName` values
176
+ * other than `__proto__`, `constructor`, or `prototype`. The original name `__proto__` is
177
+ * always reserved and cannot be used as a cache key.
178
+ */
179
+ cache?: Record<string, string | false>;
180
+ }
150
181
  interface MinifyOptions {
151
182
  /** Use when minifying an ES module. */
152
183
  module?: boolean;
153
184
  compress?: boolean | CompressOptions;
154
185
  mangle?: boolean | MangleOptions;
186
+ /**
187
+ * Mangle matching property names independently of identifier mangling. Properties owned by
188
+ * unminified code, imported module namespaces, globals, or host APIs must be excluded or
189
+ * reserved.
190
+ */
191
+ mangleProps?: ManglePropertiesOptions;
155
192
  codegen?: boolean | CodegenOptions;
156
193
  sourcemap?: boolean;
157
194
  }
@@ -164,6 +201,11 @@ interface MinifyResult {
164
201
  * Only populated when `codegen.legalComments` is `"linked"` or `"external"`.
165
202
  */
166
203
  legalComments: Array<string>;
204
+ /**
205
+ * Updated property-name cache sorted by original name. Present when `mangleProps` ran on a
206
+ * parse without errors.
207
+ */
208
+ mangleCache?: Record<string, string | false>;
167
209
  }
168
210
  interface TreeShakeOptions {
169
211
  /**
@@ -1377,6 +1419,17 @@ declare class BindingMagicString {
1377
1419
  */
1378
1420
  generateDecodedMap(options?: BindingSourceMapOptions | undefined | null): BindingDecodedMap;
1379
1421
  }
1422
+ declare class BindingModuleInfo {
1423
+ id: string;
1424
+ importers: Array<string>;
1425
+ dynamicImporters: Array<string>;
1426
+ importedIds: Array<string>;
1427
+ dynamicallyImportedIds: Array<string>;
1428
+ exports: Array<string>;
1429
+ isEntry: boolean;
1430
+ inputFormat: 'es' | 'cjs' | 'unknown';
1431
+ get code(): string | null;
1432
+ }
1380
1433
  declare class BindingNormalizedOptions {
1381
1434
  get input(): Array<string> | Record<string, string>;
1382
1435
  get cwd(): string;
@@ -1464,8 +1517,8 @@ declare class BindingWatcherBundler {
1464
1517
  close(): Promise<void>;
1465
1518
  }
1466
1519
  declare class TsconfigCache {
1467
- /** Create a new transform cache with auto tsconfig discovery enabled. */
1468
- constructor(yarnPnp: boolean);
1520
+ /** Create a new transform cache with auto or manual tsconfig discovery enabled. */
1521
+ constructor(yarnPnp: boolean, pathToTsconfig?: string | undefined | null);
1469
1522
  /**
1470
1523
  * Clear the cache.
1471
1524
  *
@@ -1591,9 +1644,10 @@ interface BindingEnhancedTransformOptions {
1591
1644
  /**
1592
1645
  * Configure tsconfig handling.
1593
1646
  * - true: Auto-discover and load the nearest tsconfig.json
1647
+ * - string: Use the tsconfig at the provided path
1594
1648
  * - TsconfigRawOptions: Use the provided inline tsconfig options
1595
1649
  */
1596
- tsconfig?: boolean | BindingTsconfigRawOptions;
1650
+ tsconfig?: boolean | string | BindingTsconfigRawOptions;
1597
1651
  /** An input source map to collapse with the output source map. */
1598
1652
  inputMap?: SourceMap;
1599
1653
  }
@@ -1737,6 +1791,21 @@ interface BindingModules {
1737
1791
  values: Array<BindingRenderedModule>;
1738
1792
  keys: Array<string>;
1739
1793
  }
1794
+ /**
1795
+ * Counters of the Rust-side tracking allocator. V8 never allocates through
1796
+ * the Rust global allocator, so these numbers exclude the JS heap and GC
1797
+ * noise completely, unlike `process.memoryUsage()`.
1798
+ */
1799
+ interface BindingNativeMemoryStats {
1800
+ /** Bytes currently allocated and not yet freed, since process start. */
1801
+ liveBytes: number;
1802
+ /** Highest `live_bytes` seen since process start or the last reset. */
1803
+ peakBytes: number;
1804
+ /** Successful `alloc` calls since the last reset. */
1805
+ allocCount: number;
1806
+ /** Successful `realloc` calls since the last reset. */
1807
+ reallocCount: number;
1808
+ }
1740
1809
  interface BindingOverwriteOptions {
1741
1810
  contentOnly?: boolean;
1742
1811
  /** Stores the replaced content in the generated sourcemap's `names` field. */
@@ -1901,6 +1970,7 @@ interface BindingViteReporterPluginConfig {
1901
1970
  }
1902
1971
  interface BindingViteResolvePluginConfig {
1903
1972
  resolveOptions: BindingViteResolvePluginResolveOptions;
1973
+ tsconfig?: string;
1904
1974
  environmentConsumer: string;
1905
1975
  environmentName: string;
1906
1976
  builtins: Array<BindingStringOrRegex>;
@@ -1935,6 +2005,7 @@ interface BindingViteResolvePluginResolveOptions {
1935
2005
  }
1936
2006
  interface BindingViteTransformPluginConfig {
1937
2007
  root: string;
2008
+ tsconfig?: string;
1938
2009
  include?: Array<BindingStringOrRegex>;
1939
2010
  exclude?: Array<BindingStringOrRegex>;
1940
2011
  jsxRefreshInclude?: Array<BindingStringOrRegex>;
@@ -1948,6 +2019,12 @@ interface ExternalMemoryStatus {
1948
2019
  freed: boolean;
1949
2020
  reason?: string;
1950
2021
  }
2022
+ /**
2023
+ * Returns the Rust-side allocator counters, or `None` when this binding was
2024
+ * built without the `tracking_allocator` cargo feature (the default —
2025
+ * tracking costs a few atomic operations per allocation).
2026
+ */
2027
+ declare function getNativeMemoryStats(): BindingNativeMemoryStats | null;
1951
2028
  /** Error emitted from native side, it only contains kind and message, no stack trace. */
1952
2029
  interface NativeError {
1953
2030
  kind: string;
@@ -1969,14 +2046,20 @@ interface PreRenderedChunk {
1969
2046
  /** Whether this chunk is a dynamic entry point. */
1970
2047
  isDynamicEntry: boolean;
1971
2048
  /** The id of a module that this chunk corresponds to. */
1972
- facadeModuleId?: string;
2049
+ facadeModuleId: string | null;
1973
2050
  /** The list of ids of modules included in this chunk. */
1974
2051
  moduleIds: Array<string>;
1975
2052
  /** Exported variable names from this chunk. */
1976
2053
  exports: Array<string>;
1977
2054
  }
2055
+ /**
2056
+ * Starts a new measuring window: the peak restarts from the current live
2057
+ * bytes and the counts restart from zero. No-op when the binding was built
2058
+ * without the `tracking_allocator` cargo feature.
2059
+ */
2060
+ declare function resetNativeMemoryStats(): void;
1978
2061
  interface ViteImportGlobMeta {
1979
2062
  isSubImportsPattern?: boolean;
1980
2063
  }
1981
2064
  //#endregion
1982
- export { BindingWatcherBundler as A, PreRenderedChunk as B, BindingViteJsonPluginConfig as C, BindingViteReporterPluginConfig as D, BindingViteReactRefreshWrapperPluginConfig as E, MinifyOptions as F, TsconfigCache as G, ResolverFactory as H, MinifyResult as I, moduleRunnerTransform as J, isolatedDeclaration as K, NapiResolveOptions as L, IsolatedDeclarationsOptions as M, IsolatedDeclarationsResult as N, BindingViteResolvePluginConfig as O, JsxOptions as P, ParseResult as R, BindingViteImportGlobPluginConfig as S, BindingViteModulePreloadPolyfillPluginConfig as T, SourceMap as U, ResolveResult as V, TransformOptions as W, BindingTsconfigCompilerOptions as _, BindingEnhancedTransformOptions as a, BindingViteBuildImportAnalysisPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingMagicString as d, BindingPluginContextResolveOptions as f, BindingTransformHookExtraArgs as g, BindingReplacePluginConfig as h, BindingClientHmrUpdate as i, ExternalMemoryStatus as j, BindingViteTransformPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingRenderedChunk as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRebuildStrategy as p, isolatedDeclarationSync as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingLazyChunkOutput as u, BindingTsconfigRawOptions as v, BindingViteManifestPluginConfig as w, BindingViteDynamicImportVarsPluginConfig as x, BindingTsconfigResult as y, ParserOptions as z };
2065
+ export { resetNativeMemoryStats as $, BindingViteResolvePluginConfig as A, NapiResolveOptions as B, BindingViteDynamicImportVarsPluginConfig as C, BindingViteModulePreloadPolyfillPluginConfig as D, BindingViteManifestPluginConfig as E, IsolatedDeclarationsResult as F, ResolverFactory as G, ParserOptions as H, JsxOptions as I, TsconfigCache as J, SourceMap as K, ManglePropertiesOptions as L, BindingWatcherBundler as M, ExternalMemoryStatus as N, BindingViteReactRefreshWrapperPluginConfig as O, IsolatedDeclarationsOptions as P, moduleRunnerTransform as Q, MinifyOptions as R, BindingViteBuildImportAnalysisPluginConfig as S, BindingViteJsonPluginConfig as T, PreRenderedChunk as U, ParseResult as V, ResolveResult as W, isolatedDeclaration as X, getNativeMemoryStats as Y, isolatedDeclarationSync as Z, BindingReplacePluginConfig as _, BindingEnhancedTransformOptions as a, BindingTsconfigRawOptions as b, BindingHookResolveIdExtraArgs as c, BindingMagicString as d, BindingModuleInfo as f, BindingRenderedChunk as g, BindingRebuildStrategy as h, BindingClientHmrUpdate as i, BindingViteTransformPluginConfig as j, BindingViteReporterPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingPluginContextResolveOptions as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingNativeMemoryStats as p, TransformOptions as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingLazyChunkOutput as u, BindingTransformHookExtraArgs as v, BindingViteImportGlobPluginConfig as w, BindingTsconfigResult as x, BindingTsconfigCompilerOptions as y, MinifyResult as z };