rolldown 1.2.4 → 1.2.6

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 (37) hide show
  1. package/bin/cli.mjs +10 -1
  2. package/dist/cli.mjs +6 -6
  3. package/dist/config.d.mts +3 -3
  4. package/dist/config.mjs +2 -2
  5. package/dist/experimental-index.d.mts +57 -28
  6. package/dist/experimental-index.mjs +36 -9
  7. package/dist/experimental-runtime-types.d.ts +2 -2
  8. package/dist/experimental-runtime.d.ts +2 -2
  9. package/dist/experimental-runtime.mjs +2 -2
  10. package/dist/filter-index.d.mts +1 -1
  11. package/dist/filter-index.mjs +1 -3
  12. package/dist/index.d.mts +3 -3
  13. package/dist/index.mjs +4 -4
  14. package/dist/parallel-plugin-worker.mjs +2 -2
  15. package/dist/parallel-plugin.d.mts +3 -3
  16. package/dist/parse-ast-index.d.mts +6 -7
  17. package/dist/parse-ast-index.mjs +1 -1
  18. package/dist/plugins-index.d.mts +5 -5
  19. package/dist/plugins-index.mjs +2 -2
  20. package/dist/shared/{binding-Zhafd14U.mjs → binding-CtPG-2KR.mjs} +29 -27
  21. package/dist/shared/{binding-CVtkJvyl.d.mts → binding-Og__jmUi.d.mts} +87 -4
  22. package/dist/shared/{bindingify-input-options-C-Zsy1EG.mjs → bindingify-input-options-4JJxbZl2.mjs} +11 -9
  23. package/dist/shared/{constructors-CGzna3vk.d.mts → constructors-Qrp2Xr6w.d.mts} +2 -2
  24. package/dist/shared/{constructors-u6EEiG8n.mjs → constructors-ltBDfHX1.mjs} +1 -1
  25. package/dist/shared/{create-bundler-option-wRiQzEJ3.mjs → create-bundler-option-DSPiA5F7.mjs} +49 -6
  26. package/dist/shared/{define-config-Dsp5YQR4.d.mts → define-config-Nbz-lniw.d.mts} +43 -5
  27. package/dist/shared/{error-CVc7IgvG.mjs → error-HDibX49O.mjs} +1 -1
  28. package/dist/shared/{load-config-63nAW5KO.mjs → load-config-BMUrE9HH.mjs} +1 -1
  29. package/dist/shared/{normalize-string-or-regex-BxRYnPRv.mjs → normalize-string-or-regex-DWz4it3p.mjs} +1 -1
  30. package/dist/shared/{parse-DnWvq9XZ.mjs → parse-D0g29RgN.mjs} +2 -2
  31. package/dist/shared/{resolve-tsconfig-SPewz4V3.mjs → resolve-tsconfig-CLYpUIZC.mjs} +10 -6
  32. package/dist/shared/{rolldown-DiYVDns9.mjs → rolldown-C9Hfg50O.mjs} +5 -4
  33. package/dist/shared/{transform-WmU_cI8e.d.mts → transform-DR4CXeQm.d.mts} +8 -4
  34. package/dist/shared/{watch-BNCfUBmW.mjs → watch-UbzgabQn.mjs} +4 -4
  35. package/dist/utils-index.d.mts +5 -5
  36. package/dist/utils-index.mjs +5 -5
  37. package/package.json +32 -30
package/bin/cli.mjs CHANGED
@@ -1,2 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/cli.mjs';
2
+ import module from 'node:module';
3
+ try {
4
+ module.enableCompileCache?.();
5
+ setTimeout(() => {
6
+ try {
7
+ module.flushCompileCache?.();
8
+ } catch {}
9
+ }, 10 * 1000).unref();
10
+ } catch {}
11
+ await import('../dist/cli.mjs');
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-BNCfUBmW.mjs";
2
- import { D as version, E as description } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-UbzgabQn.mjs";
2
+ import { D as version, E as description } from "./shared/bindingify-input-options-4JJxbZl2.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-wRiQzEJ3.mjs";
5
- import { t as rolldown } from "./shared/rolldown-DiYVDns9.mjs";
6
- import { t as loadConfig } from "./shared/load-config-63nAW5KO.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-DSPiA5F7.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-C9Hfg50O.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-BMUrE9HH.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.144.0/helpers/esm/usingCtx.js
869
+ //#region \0@oxc-project+runtime@0.147.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();
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Dsp5YQR4.mjs";
1
+ import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Nbz-lniw.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 };
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as VERSION } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
1
+ import { T as VERSION } from "./shared/bindingify-input-options-4JJxbZl2.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-63nAW5KO.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-BMUrE9HH.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-Dsp5YQR4.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-CGzna3vk.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-Og__jmUi.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-Nbz-lniw.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-DR4CXeQm.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-Qrp2Xr6w.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
- declare class DevEngine {
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
+ }
127
+ export 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>;
@@ -133,7 +162,7 @@ declare class DevEngine {
133
162
  }
134
163
  //#endregion
135
164
  //#region src/api/dev/index.d.ts
136
- declare const dev: typeof DevEngine.create;
165
+ export declare const dev: typeof DevEngine.create;
137
166
  //#endregion
138
167
  //#region src/api/experimental.d.ts
139
168
  /**
@@ -151,7 +180,7 @@ declare const dev: typeof DevEngine.create;
151
180
  * // Now all resources have been cleaned up.
152
181
  * ```
153
182
  */
154
- declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
183
+ export declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
155
184
  //#endregion
156
185
  //#region src/builtin-plugin/alias-plugin.d.ts
157
186
  type ViteAliasPluginConfig = {
@@ -160,7 +189,7 @@ type ViteAliasPluginConfig = {
160
189
  replacement: string;
161
190
  }[];
162
191
  };
163
- declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
192
+ export declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
164
193
  //#endregion
165
194
  //#region src/builtin-plugin/bundle-analyzer-plugin.d.ts
166
195
  /**
@@ -211,7 +240,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
211
240
  * }
212
241
  * ```
213
242
  */
214
- declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
243
+ export declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
215
244
  //#endregion
216
245
  //#region src/builtin-plugin/transform-plugin.d.ts
217
246
  type TransformPattern = string | RegExp | readonly (RegExp | string)[];
@@ -221,13 +250,13 @@ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" |
221
250
  jsxRefreshInclude?: TransformPattern;
222
251
  jsxRefreshExclude?: TransformPattern;
223
252
  };
224
- declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
253
+ export declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
225
254
  //#endregion
226
255
  //#region src/builtin-plugin/vite-manifest-plugin.d.ts
227
256
  type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
228
257
  isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
229
258
  };
230
- declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
259
+ export declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
231
260
  //#endregion
232
261
  //#region src/experimental-index.d.ts
233
262
  /**
@@ -257,39 +286,39 @@ declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPl
257
286
  *
258
287
  * @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
259
288
  */
260
- declare const memfs: {
289
+ export declare const memfs: {
261
290
  fs: any;
262
291
  volume: any;
263
292
  } | undefined;
264
293
  /** @deprecated Use from `rolldown/utils` instead. */
265
- declare const parse: typeof parse$1;
294
+ export declare const parse: typeof parse$1;
266
295
  /** @deprecated Use from `rolldown/utils` instead. */
267
- declare const parseSync: typeof parseSync$1;
296
+ export declare const parseSync: typeof parseSync$1;
268
297
  /** @deprecated Use from `rolldown/utils` instead. */
269
- type ParseResult = ParseResult$1;
298
+ export type ParseResult = ParseResult$1;
270
299
  /** @deprecated Use from `rolldown/utils` instead. */
271
- type ParserOptions = ParserOptions$1;
300
+ export type ParserOptions = ParserOptions$1;
272
301
  /** @deprecated Use from `rolldown/utils` instead. */
273
- declare const minify: typeof minify$1;
302
+ export declare const minify: typeof minify$1;
274
303
  /** @deprecated Use from `rolldown/utils` instead. */
275
- declare const minifySync: typeof minifySync$1;
304
+ export declare const minifySync: typeof minifySync$1;
276
305
  /** @deprecated Use from `rolldown/utils` instead. */
277
- type MinifyOptions = MinifyOptions$1;
306
+ export type MinifyOptions = MinifyOptions$1;
278
307
  /** @deprecated Use from `rolldown/utils` instead. */
279
- type MinifyResult = MinifyResult$1;
308
+ export type MinifyResult = MinifyResult$1;
280
309
  /** @deprecated Use from `rolldown/utils` instead. */
281
- declare const transform: typeof transform$1;
310
+ export declare const transform: typeof transform$1;
282
311
  /** @deprecated Use from `rolldown/utils` instead. */
283
- declare const transformSync: typeof transformSync$1;
312
+ export declare const transformSync: typeof transformSync$1;
284
313
  /** @deprecated Use from `rolldown/utils` instead. */
285
- type TransformOptions = TransformOptions$1;
314
+ export type TransformOptions = TransformOptions$1;
286
315
  /** @deprecated Use from `rolldown/utils` instead. */
287
- type TransformResult = TransformResult$1;
316
+ export type TransformResult = TransformResult$1;
288
317
  /** @deprecated Use from `rolldown/utils` instead. */
289
- declare const TsconfigCache: typeof TsconfigCache$1;
318
+ export declare const TsconfigCache: typeof TsconfigCache$1;
290
319
  /** @deprecated Use from `rolldown/utils` instead. */
291
- type TsconfigRawOptions = BindingTsconfigRawOptions;
320
+ export type TsconfigRawOptions = BindingTsconfigRawOptions;
292
321
  /** @deprecated Use from `rolldown/utils` instead. */
293
- type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
322
+ export 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, 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,18 +1,42 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-Zhafd14U.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BxRYnPRv.mjs";
3
- import { u as transformToRollupOutput } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
4
- import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-wRiQzEJ3.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CVc7IgvG.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-DnWvq9XZ.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-u6EEiG8n.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-SPewz4V3.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CtPG-2KR.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-DWz4it3p.mjs";
3
+ import { u as transformToRollupOutput } from "./shared/bindingify-input-options-4JJxbZl2.mjs";
4
+ import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-DSPiA5F7.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-HDibX49O.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-D0g29RgN.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-ltBDfHX1.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-CLYpUIZC.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-Dsp5YQR4.mjs";
1
+ import { F as withFilter } from "./shared/define-config-Nbz-lniw.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
  }
package/dist/index.d.mts CHANGED
@@ -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-Dsp5YQR4.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-Og__jmUi.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-Nbz-lniw.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 };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-Zhafd14U.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-BNCfUBmW.mjs";
3
- import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
4
- import { t as rolldown } from "./shared/rolldown-DiYVDns9.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CtPG-2KR.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-UbzgabQn.mjs";
3
+ import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-4JJxbZl2.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-C9Hfg50O.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-Zhafd14U.mjs";
2
- import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-C-Zsy1EG.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CtPG-2KR.mjs";
2
+ import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-4JJxbZl2.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-Dsp5YQR4.mjs";
1
+ import { T as Plugin, Wt as MaybePromise } from "./shared/define-config-Nbz-lniw.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 };
@@ -1,14 +1,14 @@
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-Og__jmUi.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  //#region src/parse-ast-index.d.ts
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 { 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-DnWvq9XZ.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-D0g29RgN.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-Dsp5YQR4.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-CGzna3vk.mjs";
1
+ import { _ as BindingReplacePluginConfig } from "./shared/binding-Og__jmUi.mjs";
2
+ import { I as BuiltinPlugin } from "./shared/define-config-Nbz-lniw.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-Qrp2Xr6w.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-CGzna3vk.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 };
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BxRYnPRv.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-u6EEiG8n.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-DWz4it3p.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-ltBDfHX1.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.