@voidzero-dev/vite-plus-core 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +7 -1
  2. package/dist/rolldown/cli.mjs +30 -27
  3. package/dist/rolldown/config.d.mts +3 -3
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +27 -27
  6. package/dist/rolldown/experimental-index.mjs +8 -8
  7. package/dist/rolldown/experimental-runtime-types.d.ts +15 -2
  8. package/dist/rolldown/experimental-runtime.d.ts +15 -2
  9. package/dist/rolldown/experimental-runtime.mjs +19 -2
  10. package/dist/rolldown/filter-index.d.mts +1 -1
  11. package/dist/rolldown/index.d.mts +1 -1
  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 +3 -3
  15. package/dist/rolldown/parse-ast-index.d.mts +5 -6
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +4 -4
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-B4m_2rFW.mjs → binding-DlR5d34p.mjs} +27 -27
  20. package/dist/rolldown/shared/{bindingify-input-options-YtcpaV3r.mjs → bindingify-input-options-DhjlrWZE.mjs} +13 -13
  21. package/dist/rolldown/shared/{constructors-DDRbtWM1.mjs → constructors-B2hkJoIA.mjs} +1 -1
  22. package/dist/rolldown/shared/{constructors-CGQ9ItSV.d.mts → constructors-Dw9H1IvX.d.mts} +1 -1
  23. package/dist/rolldown/shared/{create-bundler-option-CFtx335R.mjs → create-bundler-option-1AEe_J0o.mjs} +22 -5
  24. package/dist/rolldown/shared/{define-config-kIZKjX8Q.d.mts → define-config-CGhm2DU-.d.mts} +24 -5
  25. package/dist/rolldown/shared/{error-Bj1xBdEY.mjs → error-Dsqzw0Oa.mjs} +1 -1
  26. package/dist/rolldown/shared/{load-config-CiFPv7UH.mjs → load-config-bvw8z7Ft.mjs} +1 -1
  27. package/dist/rolldown/shared/{normalize-string-or-regex-xyy0kCQR.mjs → normalize-string-or-regex-B7Gsiuz7.mjs} +1 -1
  28. package/dist/rolldown/shared/{parse-Zii6QoPp.mjs → parse-BCSSrLHf.mjs} +2 -2
  29. package/dist/rolldown/shared/{resolve-tsconfig-DRWFAQ3v.mjs → resolve-tsconfig-DyR2RUTm.mjs} +2 -2
  30. package/dist/rolldown/shared/{rolldown-BCQsxZbq.mjs → rolldown-C8QomUuX.mjs} +4 -4
  31. package/dist/rolldown/shared/{watch-CXhrnblH.mjs → watch-CPI70Lkn.mjs} +4 -4
  32. package/dist/rolldown/utils-index.d.mts +3 -3
  33. package/dist/rolldown/utils-index.mjs +5 -5
  34. package/dist/tsdown/{build-JVmLFaZt-k6Y-YuG9.js → build-KEepWO_k-BOsPZ2cH.js} +26 -25
  35. package/dist/tsdown/{debug-CpC4hV25-D_60QWpz.js → debug-DKTolR2K-BMJOFfj2.js} +4 -5
  36. package/dist/tsdown/{detect-Bg-d8iUV--_V5C4Db.js → detect-DHDepxVX-CpWW52Jd.js} +38 -34
  37. package/dist/tsdown/dist-BebyOHRu.js +6224 -0
  38. package/dist/tsdown/index-types.d.ts +216 -216
  39. package/dist/tsdown/index.js +4 -4
  40. package/dist/tsdown/{main-CyNcZUzu.js → main-Du9xCnhX.js} +105 -19
  41. package/dist/tsdown/npm_entry_picomatch.cjs +36 -25
  42. package/dist/tsdown/{resolver-DE0_sy8o-Pz8aksn9.js → resolver-DE0_sy8o-DNoi-dFQ.js} +3 -2
  43. package/dist/tsdown/run.js +28 -26
  44. package/dist/tsdown/{src-pN7Bl6zo.js → src-CBWRkeF5.js} +4 -4
  45. package/dist/tsdown/{target-DgdLrXba-BygiKCU8.js → target-HZbF5Cux-Cmv1LI5D.js} +175 -9
  46. package/dist/tsdown/{tsc-2xhsE0Bf.js → tsc-YwU2b8yT.js} +4 -4
  47. package/dist/tsdown/tsdown-css.js +4 -4
  48. package/dist/tsdown/tsdown-exe.js +5 -43
  49. package/dist/vite/client/bundledDevClient.mjs +38 -20
  50. package/dist/vite/client/client.mjs +10 -9
  51. package/dist/vite/node/chunks/build.js +19 -19
  52. package/dist/vite/node/chunks/node.js +4409 -4358
  53. package/dist/vite/node/chunks/postcss-import.js +10 -10
  54. package/dist/vite/node/cli.js +24 -21
  55. package/dist/vite/node/index.d.ts +2 -1
  56. package/dist/vite/node/index.js +1 -2
  57. package/dist/vite/node/internal.js +1 -2
  58. package/dist/vite/node/module-runner.d.ts +1 -0
  59. package/dist/vite/node/module-runner.js +16 -25
  60. package/package.json +26 -27
  61. package/dist/tsdown/dist-DquISSoY.js +0 -2952
  62. package/dist/tsdown/require-BbBF8Ii0-S6Y65RhW.js +0 -320
  63. package/dist/tsdown/style-DiMP8pYv-DIC5PXeH.js +0 -88
  64. package/dist/tsdown/version-CQ98ZBpL-CKvh-HCu.js +0 -169
package/LICENSE CHANGED
@@ -582,7 +582,7 @@ Repositories: https://github.com/sindresorhus/bundle-name, https://github.com/si
582
582
 
583
583
  ## cac
584
584
  License: MIT
585
- By: egoist <0x142857@gmail.com>
585
+ By: egoist <0x142857@gmail.com>, Kevin Deng <sxzz@sxzz.moe>
586
586
  Repository: https://github.com/cacjs/cac
587
587
 
588
588
  > The MIT License (MIT)
@@ -5143,3 +5143,9 @@ Repository: https://github.com/eemeli/yaml
5143
5143
  ## yuku-ast
5144
5144
  License: MIT
5145
5145
  Repository: https://github.com/yuku-toolchain/yuku
5146
+
5147
+ ---------------------------------------
5148
+
5149
+ ## yuku-codegen
5150
+ License: MIT
5151
+ Repository: https://github.com/yuku-toolchain/yuku
@@ -1,13 +1,13 @@
1
- import { n as onExit, t as watch } from "./shared/watch-CXhrnblH.mjs";
2
- import { D as version$1, E as package_default } from "./shared/bindingify-input-options-YtcpaV3r.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-CPI70Lkn.mjs";
2
+ import { D as version$1, E as package_default } from "./shared/bindingify-input-options-DhjlrWZE.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-CFtx335R.mjs";
5
- import { t as rolldown } from "./shared/rolldown-BCQsxZbq.mjs";
6
- import { t as loadConfig } from "./shared/load-config-CiFPv7UH.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-1AEe_J0o.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-C8QomUuX.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-bvw8z7Ft.mjs";
7
7
  import path from "node:path";
8
8
  import g$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
10
- //#region ../../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
10
+ //#region ../../../node_modules/.pnpm/cac@7.0.1/node_modules/cac/dist/index.js
11
11
  function toArr(any) {
12
12
  return any == null ? [] : Array.isArray(any) ? any : [any];
13
13
  }
@@ -108,23 +108,23 @@ function findAllBrackets(v) {
108
108
  }
109
109
  function getMriOptions(options) {
110
110
  const result = {
111
- alias: {},
111
+ alias: Object.create(null),
112
112
  boolean: []
113
113
  };
114
114
  for (const [index, option] of options.entries()) {
115
115
  if (option.names.length > 1) result.alias[option.names[0]] = option.names.slice(1);
116
- if (option.isBoolean) if (option.negated) {
117
- if (!options.some((o, i) => {
118
- return i !== index && o.names.some((name) => option.names.includes(name)) && typeof o.required === "boolean";
119
- })) result.boolean.push(option.names[0]);
120
- } else result.boolean.push(option.names[0]);
116
+ if (option.isBoolean) {
117
+ if (option.negated) {
118
+ if (!options.some((o, i) => {
119
+ return i !== index && o.names.some((name) => option.names.includes(name)) && typeof o.required === "boolean";
120
+ })) result.boolean.push(option.names[0]);
121
+ } else result.boolean.push(option.names[0]);
122
+ }
121
123
  }
122
124
  return result;
123
125
  }
124
126
  function findLongest(arr) {
125
- return arr.sort((a, b) => {
126
- return a.length > b.length ? -1 : 1;
127
- })[0];
127
+ return arr.sort((a, b) => b.length - a.length)[0];
128
128
  }
129
129
  function padRight(str, length) {
130
130
  return str.length >= length ? str : `${str}${" ".repeat(length - str.length)}`;
@@ -134,7 +134,13 @@ function camelcase(input) {
134
134
  return p1 + p2.toUpperCase();
135
135
  });
136
136
  }
137
+ const UNSAFE_KEYS = /* @__PURE__ */ new Set([
138
+ "__proto__",
139
+ "constructor",
140
+ "prototype"
141
+ ]);
137
142
  function setDotProp(obj, keys, val) {
143
+ if (keys.some((key) => UNSAFE_KEYS.has(key))) return;
138
144
  let current = obj;
139
145
  for (let i = 0; i < keys.length; i++) {
140
146
  const key = keys[i];
@@ -150,12 +156,9 @@ function setDotProp(obj, keys, val) {
150
156
  }
151
157
  }
152
158
  function setByType(obj, transforms) {
153
- for (const key of Object.keys(transforms)) {
154
- const transform = transforms[key];
155
- if (transform.shouldTransform) {
156
- obj[key] = [obj[key]].flat();
157
- if (typeof transform.transformFunction === "function") obj[key] = obj[key].map(transform.transformFunction);
158
- }
159
+ for (const [key, transform] of Object.entries(transforms)) if (transform.shouldTransform) {
160
+ obj[key] = [obj[key]].flat();
161
+ if (typeof transform.transformFunction === "function") obj[key] = obj[key].map(transform.transformFunction);
159
162
  }
160
163
  }
161
164
  function getFileName(input) {
@@ -198,7 +201,7 @@ var Option = class {
198
201
  name = name.replace(/^no-/, "");
199
202
  }
200
203
  return camelcaseOptionName(name);
201
- }).sort((a, b) => a.length > b.length ? 1 : -1);
204
+ }).sort((a, b) => a.length - b.length);
202
205
  this.name = this.names.at(-1);
203
206
  if (this.negated && this.config.default == null) this.config.default = true;
204
207
  if (rawName.includes("<")) this.required = true;
@@ -301,7 +304,7 @@ var Command = class {
301
304
  * @param name Option name
302
305
  */
303
306
  hasOption(name) {
304
- name = name.split(".")[0];
307
+ name = name.split(".", 1)[0];
305
308
  return this.options.find((option) => {
306
309
  return option.names.includes(name);
307
310
  });
@@ -376,7 +379,7 @@ var Command = class {
376
379
  const { options: parsedOptions, globalCommand } = this.cli;
377
380
  const options = [...globalCommand.options, ...this.options];
378
381
  for (const option of options) {
379
- const value = parsedOptions[option.name.split(".")[0]];
382
+ const value = parsedOptions[option.name.split(".", 1)[0]];
380
383
  if (option.required) {
381
384
  const hasNegated = options.some((o) => o.negated && o.names.includes(option.name));
382
385
  if (value === true || value === false && !hasNegated) throw new CACError(`option \`${option.rawName}\` value is missing`);
@@ -595,8 +598,8 @@ var CAC = class extends EventTarget {
595
598
  transforms[cliOption.name].transformFunction = cliOption.config.type[0];
596
599
  }
597
600
  }
598
- for (const key of Object.keys(parsed)) if (key !== "_") {
599
- setDotProp(options, key.split("."), parsed[key]);
601
+ for (const [key, value] of Object.entries(parsed)) if (key !== "_") {
602
+ setDotProp(options, key.split("."), value);
600
603
  setByType(options, transforms);
601
604
  }
602
605
  return {
@@ -866,7 +869,7 @@ function getClearScreenFunction(options) {
866
869
  };
867
870
  }
868
871
  //#endregion
869
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/usingCtx.js
872
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/usingCtx.js
870
873
  function _usingCtx() {
871
874
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
872
875
  var n = Error();
@@ -1,4 +1,4 @@
1
- import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-kIZKjX8Q.mjs";
1
+ import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-CGhm2DU-.mjs";
2
2
  //#region src/utils/load-config.d.ts
3
3
  type ConfigLoader = "bundle" | "native";
4
4
  interface LoadConfigOptions {
@@ -21,6 +21,6 @@ interface LoadConfigOptions {
21
21
  *
22
22
  * @category Config
23
23
  */
24
- declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
24
+ export declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
25
25
  //#endregion
26
- export { VERSION, defineConfig, loadConfig };
26
+ export { VERSION, defineConfig };
@@ -1,4 +1,4 @@
1
- import { T as VERSION } from "./shared/bindingify-input-options-YtcpaV3r.mjs";
1
+ import { T as VERSION } from "./shared/bindingify-input-options-DhjlrWZE.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-CiFPv7UH.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-bvw8z7Ft.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
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-tzp6Hc_3.mjs";
2
- import { $ as defineParallelPlugin, I as BuiltinPlugin, Qt as RolldownOutput, Ut as OutputOptions, en as freeExternalMemory, l as InputOptions, qt as StringOrRegExp, ut as NormalizedOutputOptions } from "./shared/define-config-kIZKjX8Q.mjs";
2
+ import { $ as defineParallelPlugin, I as BuiltinPlugin, Qt as RolldownOutput, Ut as OutputOptions, en as freeExternalMemory, l as InputOptions, qt as StringOrRegExp, ut as NormalizedOutputOptions } from "./shared/define-config-CGhm2DU-.mjs";
3
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-D4RDjIPI.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-CGQ9ItSV.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-Dw9H1IvX.mjs";
5
5
  //#region src/api/dev/dev-options.d.ts
6
6
  type DevOnHmrUpdates = (result: Error | {
7
7
  updates: BindingClientHmrUpdate[];
@@ -94,7 +94,7 @@ interface DevOptions {
94
94
  rebuildStrategy?: "always" | "never";
95
95
  watch?: DevWatchOptions;
96
96
  /**
97
- * Whether the `hotUpdate` plugin hook is called. Off until Vite supports it.
97
+ * Whether the `hotUpdate` plugin hook is called. `experimental.devMode.hotUpdate` also turns it on.
98
98
  * @default false
99
99
  */
100
100
  hotUpdate?: boolean;
@@ -129,7 +129,7 @@ declare class DevEngineModuleGraph {
129
129
  */
130
130
  getModuleIds(): string[];
131
131
  }
132
- declare class DevEngine {
132
+ export declare class DevEngine {
133
133
  #private;
134
134
  readonly moduleGraph: DevEngineModuleGraph;
135
135
  static create(inputOptions: InputOptions, outputOptions?: OutputOptions, devOptions?: DevOptions): Promise<DevEngine>;
@@ -170,7 +170,7 @@ declare class DevEngine {
170
170
  }
171
171
  //#endregion
172
172
  //#region src/api/dev/index.d.ts
173
- declare const dev: typeof DevEngine.create;
173
+ export declare const dev: typeof DevEngine.create;
174
174
  //#endregion
175
175
  //#region src/api/experimental.d.ts
176
176
  /**
@@ -188,7 +188,7 @@ declare const dev: typeof DevEngine.create;
188
188
  * // Now all resources have been cleaned up.
189
189
  * ```
190
190
  */
191
- declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
191
+ export declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
192
192
  //#endregion
193
193
  //#region src/builtin-plugin/alias-plugin.d.ts
194
194
  type ViteAliasPluginConfig = {
@@ -197,7 +197,7 @@ type ViteAliasPluginConfig = {
197
197
  replacement: string;
198
198
  }[];
199
199
  };
200
- declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
200
+ export declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
201
201
  //#endregion
202
202
  //#region src/builtin-plugin/bundle-analyzer-plugin.d.ts
203
203
  /**
@@ -248,7 +248,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
248
248
  * }
249
249
  * ```
250
250
  */
251
- declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
251
+ export declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
252
252
  //#endregion
253
253
  //#region src/builtin-plugin/transform-plugin.d.ts
254
254
  type TransformPattern = string | RegExp | readonly (RegExp | string)[];
@@ -258,13 +258,13 @@ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" |
258
258
  jsxRefreshInclude?: TransformPattern;
259
259
  jsxRefreshExclude?: TransformPattern;
260
260
  };
261
- declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
261
+ export declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
262
262
  //#endregion
263
263
  //#region src/builtin-plugin/vite-manifest-plugin.d.ts
264
264
  type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
265
265
  isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
266
266
  };
267
- declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
267
+ export declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
268
268
  //#endregion
269
269
  //#region src/experimental-index.d.ts
270
270
  /**
@@ -294,39 +294,39 @@ declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPl
294
294
  *
295
295
  * @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
296
296
  */
297
- declare const memfs: {
297
+ export declare const memfs: {
298
298
  fs: any;
299
299
  volume: any;
300
300
  } | undefined;
301
301
  /** @deprecated Use from `rolldown/utils` instead. */
302
- declare const parse: typeof parse$1;
302
+ export declare const parse: typeof parse$1;
303
303
  /** @deprecated Use from `rolldown/utils` instead. */
304
- declare const parseSync: typeof parseSync$1;
304
+ export declare const parseSync: typeof parseSync$1;
305
305
  /** @deprecated Use from `rolldown/utils` instead. */
306
- type ParseResult = ParseResult$1;
306
+ export type ParseResult = ParseResult$1;
307
307
  /** @deprecated Use from `rolldown/utils` instead. */
308
- type ParserOptions = ParserOptions$1;
308
+ export type ParserOptions = ParserOptions$1;
309
309
  /** @deprecated Use from `rolldown/utils` instead. */
310
- declare const minify: typeof minify$1;
310
+ export declare const minify: typeof minify$1;
311
311
  /** @deprecated Use from `rolldown/utils` instead. */
312
- declare const minifySync: typeof minifySync$1;
312
+ export declare const minifySync: typeof minifySync$1;
313
313
  /** @deprecated Use from `rolldown/utils` instead. */
314
- type MinifyOptions = MinifyOptions$1;
314
+ export type MinifyOptions = MinifyOptions$1;
315
315
  /** @deprecated Use from `rolldown/utils` instead. */
316
- type MinifyResult = MinifyResult$1;
316
+ export type MinifyResult = MinifyResult$1;
317
317
  /** @deprecated Use from `rolldown/utils` instead. */
318
- declare const transform: typeof transform$1;
318
+ export declare const transform: typeof transform$1;
319
319
  /** @deprecated Use from `rolldown/utils` instead. */
320
- declare const transformSync: typeof transformSync$1;
320
+ export declare const transformSync: typeof transformSync$1;
321
321
  /** @deprecated Use from `rolldown/utils` instead. */
322
- type TransformOptions = TransformOptions$1;
322
+ export type TransformOptions = TransformOptions$1;
323
323
  /** @deprecated Use from `rolldown/utils` instead. */
324
- type TransformResult = TransformResult$1;
324
+ export type TransformResult = TransformResult$1;
325
325
  /** @deprecated Use from `rolldown/utils` instead. */
326
- declare const TsconfigCache: typeof TsconfigCache$1;
326
+ export declare const TsconfigCache: typeof TsconfigCache$1;
327
327
  /** @deprecated Use from `rolldown/utils` instead. */
328
- type TsconfigRawOptions = BindingTsconfigRawOptions;
328
+ export type TsconfigRawOptions = BindingTsconfigRawOptions;
329
329
  /** @deprecated Use from `rolldown/utils` instead. */
330
- type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
330
+ export type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
331
331
  //#endregion
332
- 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 };
332
+ export { type BindingClientHmrUpdate, type BindingNativeMemoryStats, BindingRebuildStrategy, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, defineParallelPlugin, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, moduleRunnerTransform, oxcRuntimePlugin, resetNativeMemoryStats, resolveTsconfig, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteWebWorkerPostPlugin };
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-B4m_2rFW.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-xyy0kCQR.mjs";
3
- import { u as transformToRollupOutput } from "./shared/bindingify-input-options-YtcpaV3r.mjs";
4
- import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-CFtx335R.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-Bj1xBdEY.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-Zii6QoPp.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-DDRbtWM1.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-DRWFAQ3v.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DlR5d34p.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-B7Gsiuz7.mjs";
3
+ import { u as transformToRollupOutput } from "./shared/bindingify-input-options-DhjlrWZE.mjs";
4
+ import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-1AEe_J0o.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-Dsqzw0Oa.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-BCSSrLHf.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-B2hkJoIA.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-DyR2RUTm.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);
@@ -5,7 +5,8 @@
5
5
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
6
6
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
7
7
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
8
- * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]> }} ModuleGraphDelta
8
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
9
+ * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: Record<number, number> }} ModuleGraphDelta
9
10
  * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks
10
11
  */
11
12
  export class MissingFactoryError {
@@ -68,6 +69,14 @@ export class DevRuntime {
68
69
  * @type {Map<string, (id: string) => void>}
69
70
  */
70
71
  factories: Map<string, (id: string) => void>;
72
+ /**
73
+ * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or
74
+ * factories.
75
+ * @type {Map<string, number>}
76
+ */
77
+ rowStamps: Map<string, number>;
78
+ /** @type {Map<string, number>} */
79
+ factoryStamps: Map<string, number>;
71
80
  /**
72
81
  * Installed by the dev client at boot. The runtime is a store + executor and makes
73
82
  * no HMR decisions; accepting, disposing, and reloading live behind these hooks.
@@ -81,8 +90,9 @@ export class DevRuntime {
81
90
  /**
82
91
  * @param {string} id
83
92
  * @param {(id: string) => void} fn
93
+ * @param {number} [stamp]
84
94
  */
85
- registerFactory(id: string, fn: (id: string) => void): void;
95
+ registerFactory(id: string, fn: (id: string) => void, stamp?: number): void;
86
96
  /**
87
97
  * @param {string} id
88
98
  * @param {{ exports: any }} [exportsHolder]
@@ -152,6 +162,7 @@ export class DevRuntime {
152
162
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
153
163
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
154
164
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
165
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
155
166
  */
156
167
  export type ModuleGraphDelta = {
157
168
  ids: string[];
@@ -159,6 +170,7 @@ export type ModuleGraphDelta = {
159
170
  edges: number[][];
160
171
  bindings?: Record<number, (string[] | null)[]>;
161
172
  dynamicEdges?: Record<number, number[]>;
173
+ stamps?: Record<number, number>;
162
174
  };
163
175
  /**
164
176
  * Compiler-emitted module-graph delta — topology (static + dynamic edges).
@@ -167,6 +179,7 @@ export type ModuleGraphDelta = {
167
179
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
168
180
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
169
181
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
182
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
170
183
  */
171
184
  export type DevRuntimeHooks = {
172
185
  createModuleHotContext(moduleId: string): any;
@@ -5,7 +5,8 @@
5
5
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
6
6
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
7
7
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
8
- * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]> }} ModuleGraphDelta
8
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
9
+ * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: Record<number, number> }} ModuleGraphDelta
9
10
  * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks
10
11
  */
11
12
  export class MissingFactoryError {
@@ -68,6 +69,14 @@ export class DevRuntime {
68
69
  * @type {Map<string, (id: string) => void>}
69
70
  */
70
71
  factories: Map<string, (id: string) => void>;
72
+ /**
73
+ * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or
74
+ * factories.
75
+ * @type {Map<string, number>}
76
+ */
77
+ rowStamps: Map<string, number>;
78
+ /** @type {Map<string, number>} */
79
+ factoryStamps: Map<string, number>;
71
80
  /**
72
81
  * Installed by the dev client at boot. The runtime is a store + executor and makes
73
82
  * no HMR decisions; accepting, disposing, and reloading live behind these hooks.
@@ -81,8 +90,9 @@ export class DevRuntime {
81
90
  /**
82
91
  * @param {string} id
83
92
  * @param {(id: string) => void} fn
93
+ * @param {number} [stamp]
84
94
  */
85
- registerFactory(id: string, fn: (id: string) => void): void;
95
+ registerFactory(id: string, fn: (id: string) => void, stamp?: number): void;
86
96
  /**
87
97
  * @param {string} id
88
98
  * @param {{ exports: any }} [exportsHolder]
@@ -152,6 +162,7 @@ export class DevRuntime {
152
162
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
153
163
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
154
164
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
165
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
155
166
  */
156
167
  export type ModuleGraphDelta = {
157
168
  ids: string[];
@@ -159,6 +170,7 @@ export type ModuleGraphDelta = {
159
170
  edges: number[][];
160
171
  bindings?: Record<number, (string[] | null)[]>;
161
172
  dynamicEdges?: Record<number, number[]>;
173
+ stamps?: Record<number, number>;
162
174
  };
163
175
  /**
164
176
  * Compiler-emitted module-graph delta — topology (static + dynamic edges).
@@ -167,6 +179,7 @@ export type ModuleGraphDelta = {
167
179
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
168
180
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
169
181
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
182
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
170
183
  */
171
184
  export type DevRuntimeHooks = {
172
185
  createModuleHotContext(moduleId: string): any;
@@ -58,7 +58,8 @@ var Module = class {
58
58
  * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds
59
59
  * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.
60
60
  * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.
61
- * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]> }} ModuleGraphDelta
61
+ * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.
62
+ * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: Record<number, number> }} ModuleGraphDelta
62
63
  * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks
63
64
  */
64
65
  var MissingFactoryError = class extends Error {
@@ -121,6 +122,14 @@ var DevRuntime = class {
121
122
  */
122
123
  factories = /* @__PURE__ */ new Map();
123
124
  /**
125
+ * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or
126
+ * factories.
127
+ * @type {Map<string, number>}
128
+ */
129
+ rowStamps = /* @__PURE__ */ new Map();
130
+ /** @type {Map<string, number>} */
131
+ factoryStamps = /* @__PURE__ */ new Map();
132
+ /**
124
133
  * Installed by the dev client at boot. The runtime is a store + executor and makes
125
134
  * no HMR decisions; accepting, disposing, and reloading live behind these hooks.
126
135
  * @type {DevRuntimeHooks | null}
@@ -132,6 +141,11 @@ var DevRuntime = class {
132
141
  registerGraph(delta) {
133
142
  for (let i = 0; i < delta.localCount; i++) {
134
143
  const id = delta.ids[i];
144
+ if (delta.stamps) {
145
+ const stamp = delta.stamps[i] ?? 0;
146
+ if (stamp < (this.rowStamps.get(id) ?? 0)) continue;
147
+ this.rowStamps.set(id, stamp);
148
+ } else this.rowStamps.delete(id);
135
149
  const edges = delta.edges[i].map((j) => delta.ids[j]);
136
150
  for (const target of this.staticImports.get(id)?.edges ?? []) this.importers.get(target)?.delete(id);
137
151
  for (const target of edges) {
@@ -162,8 +176,11 @@ var DevRuntime = class {
162
176
  /**
163
177
  * @param {string} id
164
178
  * @param {(id: string) => void} fn
179
+ * @param {number} [stamp]
165
180
  */
166
- registerFactory(id, fn) {
181
+ registerFactory(id, fn, stamp = 0) {
182
+ if (stamp < (this.factoryStamps.get(id) ?? 0)) return;
183
+ this.factoryStamps.set(id, stamp);
167
184
  this.factories.set(id, fn);
168
185
  }
169
186
  /**
@@ -1,4 +1,4 @@
1
- import { F as withFilter } from "./shared/define-config-kIZKjX8Q.mjs";
1
+ import { F as withFilter } from "./shared/define-config-CGhm2DU-.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;
@@ -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
2
  import { U as PreRenderedChunk } from "./shared/binding-tzp6Hc_3.mjs";
3
- import { $t as SourceMap, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ManglePropertiesOptions, 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 ModuleFormat, It as ExperimentalInlineCommonChunksOptions, J as EmittedPrebuiltChunk, Jt as OutputAsset, K as EmittedChunk, Kt as PartialNull, L as RUNTIME_MODULE_ID, Lt as GeneratedCodeOptions, 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 RolldownOutput, R as VERSION, Rt as GeneratedCodePreset, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, Ut as OutputOptions, V as SourceMapInput, Vt as MinifyOptions, W as TransformPluginContext, Wt as PreRenderedAsset, X as PluginContext, Xt as RenderedChunk, Y as GetModuleInfo, Yt as OutputChunk, Z as PluginContextResolveOptions, Zt as RenderedModule, _ 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, 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, nn as SourcemapIgnoreListOption, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tn as ModuleInfo, 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 GlobalsFunction } from "./shared/define-config-kIZKjX8Q.mjs";
3
+ import { $t as SourceMap, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ManglePropertiesOptions, 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 ModuleFormat, It as ExperimentalInlineCommonChunksOptions, J as EmittedPrebuiltChunk, Jt as OutputAsset, K as EmittedChunk, Kt as PartialNull, L as RUNTIME_MODULE_ID, Lt as GeneratedCodeOptions, 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 RolldownOutput, R as VERSION, Rt as GeneratedCodePreset, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, Ut as OutputOptions, V as SourceMapInput, Vt as MinifyOptions, W as TransformPluginContext, Wt as PreRenderedAsset, X as PluginContext, Xt as RenderedChunk, Y as GetModuleInfo, Yt as OutputChunk, Z as PluginContextResolveOptions, Zt as RenderedModule, _ 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, 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, nn as SourcemapIgnoreListOption, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tn as ModuleInfo, 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 GlobalsFunction } from "./shared/define-config-CGhm2DU-.mjs";
4
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 ExperimentalInlineCommonChunksOptions, 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-B4m_2rFW.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-CXhrnblH.mjs";
3
- import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-YtcpaV3r.mjs";
4
- import { t as rolldown } from "./shared/rolldown-BCQsxZbq.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DlR5d34p.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-CPI70Lkn.mjs";
3
+ import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-DhjlrWZE.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-C8QomUuX.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-B4m_2rFW.mjs";
2
- import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-YtcpaV3r.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-DlR5d34p.mjs";
2
+ import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-DhjlrWZE.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 { Gt as MaybePromise, T as Plugin } from "./shared/define-config-kIZKjX8Q.mjs";
1
+ import { Gt as MaybePromise, T as Plugin } from "./shared/define-config-CGhm2DU-.mjs";
2
2
  //#region src/plugin/parallel-plugin-implementation.d.ts
3
3
  type ParallelPluginImplementation = Plugin;
4
4
  type Context = {
@@ -7,6 +7,6 @@ type Context = {
7
7
  */
8
8
  threadNumber: number;
9
9
  };
10
- declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
10
+ export declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
11
11
  //#endregion
12
- export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };
12
+ export type { Context, ParallelPluginImplementation };
@@ -4,11 +4,11 @@ import { Program } from "@oxc-project/types";
4
4
  /**
5
5
  * @hidden
6
6
  */
7
- type ParseResult = ParseResult$1;
7
+ export type ParseResult = ParseResult$1;
8
8
  /**
9
9
  * @hidden
10
10
  */
11
- type ParserOptions = ParserOptions$1;
11
+ export type ParserOptions = ParserOptions$1;
12
12
  /**
13
13
  * Parse code synchronously and return the AST.
14
14
  *
@@ -17,7 +17,7 @@ type ParserOptions = ParserOptions$1;
17
17
  *
18
18
  * @category Utilities
19
19
  */
20
- declare function parseAst(sourceText: string, options?: ParserOptions | null, filename?: string): Program;
20
+ export declare function parseAst(sourceText: string, options?: ParserOptions | null, filename?: string): Program;
21
21
  /**
22
22
  * Parse code asynchronously and return the AST.
23
23
  *
@@ -26,6 +26,5 @@ declare function parseAst(sourceText: string, options?: ParserOptions | null, fi
26
26
  *
27
27
  * @category Utilities
28
28
  */
29
- declare function parseAstAsync(sourceText: string, options?: ParserOptions | null, filename?: string): Promise<Program>;
30
- //#endregion
31
- export { ParseResult, ParserOptions, parseAst, parseAstAsync };
29
+ export declare function parseAstAsync(sourceText: string, options?: ParserOptions | null, filename?: string): Promise<Program>;
30
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  import { d as locate, f as getCodeFrame, l as logParseError, n as error, t as augmentCodeLocation } from "./shared/logs-D6uA606S.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-Zii6QoPp.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-BCSSrLHf.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
1
  import { _ as BindingReplacePluginConfig } from "./shared/binding-tzp6Hc_3.mjs";
2
- import { I as BuiltinPlugin } from "./shared/define-config-kIZKjX8Q.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-CGQ9ItSV.mjs";
2
+ import { I as BuiltinPlugin } from "./shared/define-config-CGhm2DU-.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-Dw9H1IvX.mjs";
4
4
  //#region src/builtin-plugin/replace-plugin.d.ts
5
5
  /**
6
6
  * Replaces targeted strings in files while bundling.
@@ -27,6 +27,6 @@ import { t as esmExternalRequirePlugin } from "./shared/constructors-CGQ9ItSV.mj
27
27
  * @see https://rolldown.rs/builtin-plugins/replace
28
28
  * @category Builtin Plugins
29
29
  */
30
- declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
30
+ export declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
31
31
  //#endregion
32
- export { esmExternalRequirePlugin, replacePlugin };
32
+ export { esmExternalRequirePlugin };