@rspack/core 1.4.1 → 1.4.3

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 (87) hide show
  1. package/README.md +1 -1
  2. package/compiled/tinypool/README.md +1 -1
  3. package/compiled/tinypool/dist/entry/worker.js +1 -0
  4. package/compiled/tinypool/dist/index.js +6 -2
  5. package/compiled/tinypool/package.json +1 -1
  6. package/dist/Chunk.d.ts +14 -34
  7. package/dist/ChunkGraph.d.ts +6 -21
  8. package/dist/Chunks.d.ts +0 -1
  9. package/dist/Compilation.d.ts +8 -7
  10. package/dist/Entrypoint.d.ts +2 -10
  11. package/dist/ErrorHelpers.d.ts +2 -0
  12. package/dist/RspackError.d.ts +1 -1
  13. package/dist/builtin-plugin/APIPlugin.d.ts +1 -2
  14. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -2
  15. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -2
  16. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -2
  17. package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
  18. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -2
  19. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -2
  20. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -2
  21. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -2
  22. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  23. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -2
  25. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -2
  26. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -2
  27. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -2
  28. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
  29. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -2
  30. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -2
  31. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -2
  32. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -2
  33. package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
  34. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
  35. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
  36. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -2
  37. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -2
  38. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -2
  39. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -2
  40. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -2
  41. package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
  42. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -2
  43. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -2
  44. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -2
  45. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -2
  46. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -2
  47. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -2
  48. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -2
  49. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -2
  50. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -2
  51. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -2
  52. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -2
  53. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -2
  54. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -2
  55. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
  56. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  57. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -2
  58. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -2
  59. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -2
  60. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -2
  61. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
  62. package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
  63. package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
  64. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
  66. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -2
  67. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -2
  68. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
  69. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
  70. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -2
  71. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -2
  72. package/dist/builtin-plugin/base.d.ts +29 -5
  73. package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
  74. package/dist/builtin-plugin/index.d.ts +1 -1
  75. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -2
  76. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -2
  77. package/dist/exports.d.ts +3 -1
  78. package/dist/index.js +210 -358
  79. package/dist/lib/WebpackError.d.ts +1 -1
  80. package/dist/loader-runner/ModuleError.d.ts +7 -0
  81. package/dist/loader-runner/ModuleWarning.d.ts +7 -0
  82. package/dist/stats/StatsFactory.d.ts +2 -2
  83. package/dist/stats/statsFactoryUtils.d.ts +2 -2
  84. package/dist/trace/index.d.ts +7 -1
  85. package/dist/util/index.d.ts +0 -2
  86. package/package.json +5 -3
  87. package/dist/ChunkGroup.d.ts +0 -33
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <picture>
2
- <img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner.png">
2
+ <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
3
3
  </picture>
4
4
 
5
5
  # @rspack/core
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Piscina: A fast, efficient Node.js Worker Thread Pool implementation
4
4
 
5
- Tinypool is a fork of piscina. What we try to achieve in this library, is to eliminate some dependencies and features that our target users don't need (currently, our main user will be Vitest). Tinypool's install size (38KB) can then be smaller than Piscina's install size (6MB). If you need features like [utilization](https://github.com/piscinajs/piscina#property-utilization-readonly) or OS-specific thread priority setting, [Piscina](https://github.com/piscinajs/piscina) is a better choice for you. We think that Piscina is an amazing library, and we may try to upstream some of the dependencies optimization in this fork.
5
+ Tinypool is a fork of piscina. What we try to achieve in this library, is to eliminate some dependencies and features that our target users don't need (currently, our main user will be Vitest). Tinypool's install size (38KB) can then be smaller than Piscina's install size (6MB when Tinypool was created, Piscina has since reduced it's size to ~800KB). If you need features like [utilization](https://github.com/piscinajs/piscina#property-utilization-readonly) or OS-specific thread priority setting, [Piscina](https://github.com/piscinajs/piscina) is a better choice for you. We think that Piscina is an amazing library, and we may try to upstream some of the dependencies optimization in this fork.
6
6
 
7
7
  - ✅ Smaller install size, 38KB
8
8
  - ✅ Minimal
@@ -20,6 +20,7 @@ parentPort.on("message", (message) => {
20
20
  if (filename !== null) await getHandler(filename, name);
21
21
  const readyMessage = { ready: true };
22
22
  parentPort.postMessage(readyMessage);
23
+ port.start();
23
24
  port.on("message", onMessage.bind(null, port, sharedBuffer));
24
25
  atomicsWaitLoop(port, sharedBuffer);
25
26
  })().catch(throwInNextTick);
@@ -141,7 +141,10 @@ var ProcessWorker = class {
141
141
  }
142
142
  postMessage(message, transferListItem) {
143
143
  transferListItem?.forEach((item) => {
144
- if (item instanceof MessagePort) this.port = item;
144
+ if (item instanceof MessagePort) {
145
+ this.port = item;
146
+ this.port.start();
147
+ }
145
148
  });
146
149
  if (this.port) this.port.on("message", (message$1) => this.send({
147
150
  ...message$1,
@@ -173,7 +176,7 @@ var ProcessWorker = class {
173
176
  }
174
177
  unref() {
175
178
  this.port?.unref();
176
- this.process.channel?.unref();
179
+ this.process.channel?.unref?.();
177
180
  if (hasUnref(this.process.stdout)) this.process.stdout.unref();
178
181
  if (hasUnref(this.process.stderr)) this.process.stderr.unref();
179
182
  return this.process.unref();
@@ -573,6 +576,7 @@ var ThreadPool = class {
573
576
  worker.postMessage(message, [port2]);
574
577
  worker.on("message", (message$1) => {
575
578
  if (message$1.ready === true) {
579
+ port1.start();
576
580
  if (workerInfo.currentUsage() === 0) workerInfo.unref();
577
581
  if (!workerInfo.isReady()) workerInfo.markAsReady();
578
582
  return;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tinypool",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "packageManager": "pnpm@9.0.6",
6
6
  "description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features",
7
7
  "license": "MIT",
package/dist/Chunk.d.ts CHANGED
@@ -1,35 +1,15 @@
1
- import type { JsChunk } from "@rspack/binding";
2
- import { ChunkGroup } from "./ChunkGroup";
3
- import type { EntryOptions } from "./exports";
4
- export declare class Chunk {
5
- #private;
6
- readonly name?: string;
7
- readonly id?: string;
8
- readonly ids: ReadonlyArray<string>;
9
- readonly idNameHints: ReadonlyArray<string>;
10
- readonly filenameTemplate?: string;
11
- readonly cssFilenameTemplate?: string;
12
- readonly files: ReadonlySet<string>;
13
- readonly runtime: ReadonlySet<string>;
14
- readonly hash?: string;
15
- readonly contentHash: Readonly<Record<string, string>>;
16
- readonly renderedHash?: string;
17
- readonly chunkReason?: string;
18
- readonly auxiliaryFiles: ReadonlySet<string>;
19
- static __from_binding(binding: JsChunk): Chunk;
20
- static __to_binding(chunk: Chunk): JsChunk;
21
- constructor(binding: JsChunk);
22
- isOnlyInitial(): boolean;
23
- canBeInitial(): boolean;
24
- hasRuntime(): boolean;
25
- get groupsIterable(): ReadonlySet<ChunkGroup>;
26
- getChunkMaps(realHash: boolean): {
27
- hash: Record<string | number, string>;
28
- contentHash: Record<string | number, Record<string, string>>;
29
- name: Record<string | number, string>;
30
- };
31
- getAllAsyncChunks(): ReadonlySet<Chunk>;
32
- getAllInitialChunks(): ReadonlySet<Chunk>;
33
- getAllReferencedChunks(): ReadonlySet<Chunk>;
34
- getEntryOptions(): Readonly<EntryOptions> | undefined;
1
+ interface ChunkMaps {
2
+ hash: Record<string | number, string>;
3
+ contentHash: Record<string | number, Record<string, string>>;
4
+ name: Record<string | number, string>;
35
5
  }
6
+ declare module "@rspack/binding" {
7
+ interface Chunk {
8
+ readonly files: ReadonlySet<string>;
9
+ readonly runtime: ReadonlySet<string>;
10
+ readonly auxiliaryFiles: ReadonlySet<string>;
11
+ readonly groupsIterable: ReadonlySet<ChunkGroup>;
12
+ getChunkMaps(realHash: boolean): ChunkMaps;
13
+ }
14
+ }
15
+ export { Chunk } from "@rspack/binding";
@@ -1,23 +1,8 @@
1
- import type { AsyncDependenciesBlock, JsChunkGraph } from "@rspack/binding";
2
1
  import type { RuntimeSpec } from "./util/runtime";
3
- import { Chunk } from "./Chunk";
4
- import { ChunkGroup } from "./ChunkGroup";
5
- import type { Module } from "./Module";
6
- export declare class ChunkGraph {
7
- #private;
8
- static __from_binding(binding: JsChunkGraph): ChunkGraph;
9
- constructor(binding: JsChunkGraph);
10
- hasChunkEntryDependentChunks(chunk: Chunk): boolean;
11
- getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
12
- getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
13
- getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
14
- getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>;
15
- getNumberOfEntryModules(chunk: Chunk): number;
16
- getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>;
17
- getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
18
- getModuleChunks(module: Module): Chunk[];
19
- getModuleChunksIterable(module: Module): Iterable<Chunk>;
20
- getModuleId(module: Module): string | number | null;
21
- getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
22
- getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup | null;
2
+ declare module "@rspack/binding" {
3
+ interface Chunk {
4
+ getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
5
+ getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
6
+ }
23
7
  }
8
+ export { ChunkGraph } from "@rspack/binding";
package/dist/Chunks.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Chunks } from "@rspack/binding";
2
- import { Chunk } from "./Chunk";
3
2
  declare module "@rspack/binding" {
4
3
  interface Chunks {
5
4
  [Symbol.iterator](): SetIterator<Chunk>;
@@ -8,16 +8,15 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import * as binding from "@rspack/binding";
11
- import type { AssetInfo, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
11
+ import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
12
12
  export type { AssetInfo } from "@rspack/binding";
13
13
  import * as liteTapable from "@rspack/lite-tapable";
14
14
  import type { Source } from "../compiled/webpack-sources";
15
- import { Chunk } from "./Chunk";
16
- import { ChunkGraph } from "./ChunkGraph";
17
- import { ChunkGroup } from "./ChunkGroup";
15
+ import type { Chunk } from "./Chunk";
16
+ import type { ChunkGraph } from "./ChunkGraph";
18
17
  import type { Compiler } from "./Compiler";
19
18
  import type { ContextModuleFactory } from "./ContextModuleFactory";
20
- import { Entrypoint } from "./Entrypoint";
19
+ import type { Entrypoint } from "./Entrypoint";
21
20
  import type { Module } from "./Module";
22
21
  import ModuleGraph from "./ModuleGraph";
23
22
  import type { NormalModuleCompilationHooks } from "./NormalModule";
@@ -34,7 +33,9 @@ import { StatsFactory } from "./stats/StatsFactory";
34
33
  import { StatsPrinter } from "./stats/StatsPrinter";
35
34
  import type { InputFileSystem } from "./util/fs";
36
35
  import type Hash from "./util/hash";
36
+ import "./Chunk";
37
37
  import "./Chunks";
38
+ import "./ChunkGraph";
38
39
  import "./CodeGenerationResults";
39
40
  import type { CodeGenerationResult } from "./taps/compilation";
40
41
  export type Assets = Record<string, Source>;
@@ -227,7 +228,7 @@ export declare class Compilation {
227
228
  *
228
229
  * Note: This is a proxy for webpack internal API, only method `get`, `keys`, `values` and `entries` are supported now.
229
230
  */
230
- get namedChunkGroups(): ReadonlyMap<string, Readonly<ChunkGroup>>;
231
+ get namedChunkGroups(): ReadonlyMap<string, Readonly<binding.ChunkGroup>>;
231
232
  get modules(): ReadonlySet<Module>;
232
233
  get builtModules(): ReadonlySet<Module>;
233
234
  get chunks(): ReadonlySet<Chunk>;
@@ -236,7 +237,7 @@ export declare class Compilation {
236
237
  *
237
238
  * Note: This is a proxy for webpack internal API, only method `get`, `keys`, `values` and `entries` are supported now.
238
239
  */
239
- get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
240
+ get namedChunks(): ReadonlyMap<string, Readonly<binding.Chunk>>;
240
241
  get entries(): Map<string, EntryData>;
241
242
  get codeGenerationResults(): binding.CodeGenerationResults;
242
243
  getCache(name: string): import("./lib/CacheFacade").CacheFacade;
@@ -1,10 +1,2 @@
1
- import type { JsChunkGroup } from "@rspack/binding";
2
- import { Chunk } from "./Chunk";
3
- import { ChunkGroup } from "./ChunkGroup";
4
- export declare class Entrypoint extends ChunkGroup {
5
- #private;
6
- static __from_binding(binding: JsChunkGroup): Entrypoint;
7
- protected constructor(binding: JsChunkGroup);
8
- getRuntimeChunk(): Readonly<Chunk | null>;
9
- getEntrypointChunk(): Readonly<Chunk | null>;
10
- }
1
+ import type { ChunkGroup } from "@rspack/binding";
2
+ export type Entrypoint = ChunkGroup;
@@ -1 +1,3 @@
1
1
  export declare const cutOffLoaderExecution: (stack: string) => string;
2
+ export declare const cleanUp: (stack: string, name: string, message: string) => string;
3
+ export declare const cutOffMessage: (stack: string, name: string, message: string) => string;
@@ -1,5 +1,5 @@
1
1
  import type * as binding from "@rspack/binding";
2
- export type RspackError = binding.JsRspackError;
2
+ export type { RspackError } from "@rspack/binding";
3
3
  export type RspackSeverity = binding.JsRspackSeverity;
4
4
  export declare class NonErrorEmittedError extends Error {
5
5
  constructor(error: Error);
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const APIPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const ArrayPushCallbackChunkFormatPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const AssetModulesPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const AsyncWebAssemblyModulesPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,9 +1,9 @@
1
- import { BuiltinPluginName, type JsChunk } from "@rspack/binding";
1
+ import { type Chunk } from "@rspack/binding";
2
2
  export type Rule = string | RegExp;
3
3
  export type Rules = Rule[] | Rule;
4
4
  export type BannerFunction = (args: {
5
5
  hash: string;
6
- chunk: JsChunk;
6
+ chunk: Chunk;
7
7
  filename: string;
8
8
  }) => string;
9
9
  export type BannerContent = string | BannerFunction;
@@ -31,7 +31,7 @@ export type BannerPluginOptions = {
31
31
  export type BannerPluginArgument = BannerContent | BannerPluginOptions;
32
32
  export declare const BannerPlugin: {
33
33
  new (args: BannerPluginArgument): {
34
- name: BuiltinPluginName;
34
+ name: string;
35
35
  _args: [args: BannerPluginArgument];
36
36
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
37
37
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,4 +1,3 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export type BundleInfoOptions = {
3
2
  version?: string;
4
3
  bundler?: string;
@@ -6,7 +5,7 @@ export type BundleInfoOptions = {
6
5
  };
7
6
  export declare const BundlerInfoRspackPlugin: {
8
7
  new (options: BundleInfoOptions): {
9
- name: BuiltinPluginName;
8
+ name: string;
10
9
  _args: [options: BundleInfoOptions];
11
10
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
12
11
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const ChunkPrefetchPreloadPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const CommonJsChunkFormatPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const ContextReplacementPlugin: {
3
2
  new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,11 +1,11 @@
1
- import { BuiltinPluginName, type RawCopyPattern } from "@rspack/binding";
1
+ import { type RawCopyPattern } from "@rspack/binding";
2
2
  export type CopyRspackPluginOptions = {
3
3
  /** An array of objects that describe the copy operations to be performed. */
4
4
  patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
5
5
  };
6
6
  export declare const CopyRspackPlugin: {
7
7
  new (copy: CopyRspackPluginOptions): {
8
- name: BuiltinPluginName;
8
+ name: string;
9
9
  _args: [copy: CopyRspackPluginOptions];
10
10
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
11
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -12,7 +12,7 @@ export interface CssChunkingPluginOptions {
12
12
  }
13
13
  export declare const CssChunkingPlugin: {
14
14
  new (options?: CssChunkingPluginOptions | undefined): {
15
- name: binding.BuiltinPluginName;
15
+ name: string;
16
16
  _args: [options?: CssChunkingPluginOptions | undefined];
17
17
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
18
18
  raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const CssModulesPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const DataUriPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,8 +1,7 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export type DefinePluginOptions = Record<string, CodeValue>;
3
2
  export declare const DefinePlugin: {
4
3
  new (define: DefinePluginOptions): {
5
- name: BuiltinPluginName;
4
+ name: string;
6
5
  _args: [define: DefinePluginOptions];
7
6
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,10 +1,9 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export type DllEntryPluginOptions = {
3
2
  name: string;
4
3
  };
5
4
  export declare const DllEntryPlugin: {
6
5
  new (context: string, entries: string[], options: DllEntryPluginOptions): {
7
- name: BuiltinPluginName;
6
+ name: string;
8
7
  _args: [context: string, entries: string[], options: DllEntryPluginOptions];
9
8
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
9
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,8 +1,8 @@
1
- import { BuiltinPluginName, type RawDllReferenceAgencyPluginOptions } from "@rspack/binding";
1
+ import { type RawDllReferenceAgencyPluginOptions } from "@rspack/binding";
2
2
  export type DllReferenceAgencyPluginOptions = RawDllReferenceAgencyPluginOptions;
3
3
  export declare const DllReferenceAgencyPlugin: {
4
4
  new (options: RawDllReferenceAgencyPluginOptions): {
5
- name: BuiltinPluginName;
5
+ name: string;
6
6
  _args: [options: RawDllReferenceAgencyPluginOptions];
7
7
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const ElectronTargetPlugin: {
3
2
  new (context?: string | undefined): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [context?: string | undefined];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -7,11 +7,10 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import { BuiltinPluginName } from "@rspack/binding";
11
10
  import type { ChunkLoadingType, Compiler } from "../exports";
12
11
  declare const EnableChunkLoadingPluginInner: {
13
12
  new (type: string): {
14
- name: BuiltinPluginName;
13
+ name: string;
15
14
  _args: [type: string];
16
15
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
17
16
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const EnableWasmLoadingPlugin: {
3
2
  new (type: string): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [type: string];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const EnsureChunkConditionsPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, EntryDependency, type JsEntryOptions } from "@rspack/binding";
1
+ import { EntryDependency, type JsEntryOptions } from "@rspack/binding";
2
2
  import type { EntryDescriptionNormalized } from "../config";
3
3
  /**
4
4
  * Options for the `EntryPlugin`.
@@ -17,7 +17,7 @@ export type EntryOptions = Omit<EntryDescriptionNormalized, "import"> & {
17
17
  */
18
18
  declare const OriginEntryPlugin: {
19
19
  new (context: string, entry: string, options?: string | EntryOptions | undefined): {
20
- name: BuiltinPluginName;
20
+ name: string;
21
21
  _args: [context: string, entry: string, options?: string | EntryOptions | undefined];
22
22
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
23
23
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,8 +1,8 @@
1
- import { BuiltinPluginName, type RawEvalDevToolModulePluginOptions } from "@rspack/binding";
1
+ import { type RawEvalDevToolModulePluginOptions } from "@rspack/binding";
2
2
  export type { RawEvalDevToolModulePluginOptions as EvalDevToolModulePluginOptions };
3
3
  export declare const EvalDevToolModulePlugin: {
4
4
  new (options: RawEvalDevToolModulePluginOptions): {
5
- name: BuiltinPluginName;
5
+ name: string;
6
6
  _args: [options: RawEvalDevToolModulePluginOptions];
7
7
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,7 @@
1
- import { BuiltinPluginName, type SourceMapDevToolPluginOptions } from "@rspack/binding";
1
+ import { type SourceMapDevToolPluginOptions } from "@rspack/binding";
2
2
  export declare const EvalSourceMapDevToolPlugin: {
3
3
  new (options: SourceMapDevToolPluginOptions): {
4
- name: BuiltinPluginName;
4
+ name: string;
5
5
  _args: [options: SourceMapDevToolPluginOptions];
6
6
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const FetchCompileAsyncWasmPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const FileUriPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const FlagAllModulesAsUsedPlugin: {
3
2
  new (explanation: string): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [explanation: string];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const FlagDependencyExportsPlugin: {
3
2
  new (): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,7 +1,6 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
1
  export declare const HttpExternalsRspackPlugin: {
3
2
  new (css: boolean, webAsync: boolean): {
4
- name: BuiltinPluginName;
3
+ name: string;
5
4
  _args: [css: boolean, webAsync: boolean];
6
5
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, type RawIgnorePluginOptions } from "@rspack/binding";
1
+ import { type RawIgnorePluginOptions } from "@rspack/binding";
2
2
  export type IgnorePluginOptions = {
3
3
  /** A RegExp to test the resource against. */
4
4
  resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>;
@@ -10,7 +10,7 @@ export type IgnorePluginOptions = {
10
10
  };
11
11
  export declare const IgnorePlugin: {
12
12
  new (options: IgnorePluginOptions): {
13
- name: BuiltinPluginName;
13
+ name: string;
14
14
  _args: [options: IgnorePluginOptions];
15
15
  affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
16
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;