@rspack-debug/core 1.4.11 → 1.6.4

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 (145) hide show
  1. package/compiled/@swc/types/index.d.ts +15 -5
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/compiled/browserslist-load-config/index.d.ts +11 -0
  4. package/compiled/browserslist-load-config/index.js +26 -40
  5. package/compiled/browserslist-load-config/package.json +1 -1
  6. package/compiled/watchpack/index.js +1015 -18
  7. package/compiled/webpack-sources/index.js +82 -82
  8. package/dist/Compilation.d.ts +17 -20
  9. package/dist/Compiler.d.ts +63 -32
  10. package/dist/Module.d.ts +3 -14
  11. package/dist/MultiCompiler.d.ts +7 -3
  12. package/dist/MultiStats.d.ts +3 -2
  13. package/dist/MultiWatching.d.ts +1 -1
  14. package/dist/NativeWatchFileSystem.d.ts +8 -2
  15. package/dist/NormalModuleFactory.d.ts +2 -2
  16. package/dist/Resolver.d.ts +13 -7
  17. package/dist/ResolverFactory.d.ts +8 -5
  18. package/dist/RspackError.d.ts +3 -0
  19. package/dist/RuntimeGlobals.d.ts +3 -0
  20. package/dist/RuntimeModule.d.ts +1 -1
  21. package/dist/VirtualModulesPlugin.d.ts +12 -0
  22. package/dist/Watching.d.ts +9 -0
  23. package/dist/builtin-loader/swc/pluginImport.d.ts +2 -2
  24. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
  40. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
  41. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +11 -0
  49. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -1
  52. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -2
  57. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/InlineExportsPlugin.d.ts +9 -0
  61. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -2
  67. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
  70. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  73. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -2
  74. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
  75. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +10 -0
  78. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  79. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  82. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +3 -3
  85. package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
  86. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  87. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  88. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  89. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  90. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  91. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  92. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -2
  93. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -2
  94. package/dist/builtin-plugin/URLPlugin.d.ts +9 -0
  95. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  96. package/dist/builtin-plugin/base.d.ts +2 -2
  97. package/dist/builtin-plugin/css-extract/index.d.ts +2 -2
  98. package/dist/builtin-plugin/html-plugin/options.d.ts +0 -1
  99. package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
  100. package/dist/builtin-plugin/index.d.ts +4 -0
  101. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +3 -17
  102. package/dist/config/adapterRuleUse.d.ts +65 -7
  103. package/dist/config/defaults.d.ts +0 -9
  104. package/dist/config/devServer.d.ts +123 -16
  105. package/dist/config/index.d.ts +1 -0
  106. package/dist/config/normalization.d.ts +18 -3
  107. package/dist/config/types.d.ts +119 -18
  108. package/dist/container/ModuleFederationManifestPlugin.d.ts +37 -0
  109. package/dist/container/ModuleFederationPlugin.d.ts +3 -1
  110. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  111. package/dist/cssExtractHmr.js +12 -13
  112. package/dist/cssExtractLoader.js +9 -10
  113. package/dist/exports.d.ts +16 -9
  114. package/dist/index.js +1556 -5443
  115. package/dist/lib/Cache.d.ts +1 -1
  116. package/dist/loader-runner/ModuleError.d.ts +7 -1
  117. package/dist/loader-runner/loadLoader.d.ts +2 -1
  118. package/dist/loader-runner/service.d.ts +1 -1
  119. package/dist/loader-runner/utils.d.ts +2 -1
  120. package/dist/moduleFederationDefaultRuntime.js +1 -1
  121. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +16 -0
  122. package/dist/stats/statsFactoryUtils.d.ts +17 -1
  123. package/dist/util/ArrayQueue.d.ts +2 -2
  124. package/dist/util/bindingVersionCheck.d.ts +1 -1
  125. package/dist/util/comparators.d.ts +1 -1
  126. package/dist/util/fs.d.ts +25 -2
  127. package/dist/util/index.d.ts +0 -3
  128. package/dist/util/source.d.ts +5 -6
  129. package/dist/util/validateConfig.d.ts +5 -0
  130. package/dist/worker.js +152 -118
  131. package/hot/lazy-compilation-node.js +1 -3
  132. package/hot/lazy-compilation-web.js +4 -3
  133. package/module.d.ts +11 -14
  134. package/package.json +20 -20
  135. package/compiled/graceful-fs/index.d.ts +0 -13
  136. package/compiled/graceful-fs/index.js +0 -1063
  137. package/compiled/graceful-fs/license +0 -15
  138. package/compiled/graceful-fs/package.json +0 -1
  139. package/dist/lib/NormalModuleReplacementPlugin.d.ts +0 -29
  140. package/dist/loader-runner/ModuleWarning.d.ts +0 -7
  141. package/dist/schema/config.d.ts +0 -996
  142. package/dist/schema/loaders.d.ts +0 -400
  143. package/dist/schema/plugins.d.ts +0 -167
  144. package/dist/schema/utils.d.ts +0 -4
  145. package/dist/schema/validate.d.ts +0 -10
package/dist/Module.d.ts CHANGED
@@ -5,20 +5,9 @@ import "./BuildInfo";
5
5
  export type ResourceDataWithData = ResourceData & {
6
6
  data?: Record<string, any>;
7
7
  };
8
- export type CreateData = Partial<binding.JsCreateData>;
9
- export type ContextInfo = {
10
- issuer: string;
11
- issuerLayer?: string | null;
12
- };
13
- export type ResolveData = {
14
- contextInfo: ContextInfo;
15
- context: string;
16
- request: string;
17
- fileDependencies: string[];
18
- missingDependencies: string[];
19
- contextDependencies: string[];
20
- createData?: CreateData;
21
- };
8
+ export type CreateData = binding.JsCreateData;
9
+ export type ContextInfo = binding.ContextInfo;
10
+ export type ResolveData = binding.JsResolveData;
22
11
  export declare class ContextModuleFactoryBeforeResolveData {
23
12
  #private;
24
13
  context: string;
@@ -8,7 +8,7 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import * as liteTapable from "@rspack/lite-tapable";
11
- import type { CompilationParams, Compiler, RspackOptions } from ".";
11
+ import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from ".";
12
12
  import type { WatchOptions } from "./config";
13
13
  import MultiStats from "./MultiStats";
14
14
  import MultiWatching from "./MultiWatching";
@@ -19,7 +19,7 @@ export interface MultiCompilerOptions {
19
19
  */
20
20
  parallelism?: number;
21
21
  }
22
- export type MultiRspackOptions = ReadonlyArray<RspackOptions> & MultiCompilerOptions;
22
+ export type MultiRspackOptions = readonly RspackOptions[] & MultiCompilerOptions;
23
23
  export declare class MultiCompiler {
24
24
  #private;
25
25
  compilers: Compiler[];
@@ -32,12 +32,16 @@ export declare class MultiCompiler {
32
32
  run: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
33
33
  watchClose: liteTapable.SyncHook<[]>;
34
34
  watchRun: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
35
- infrastructureLog: liteTapable.MultiHook<liteTapable.SyncBailHook<[string, string, any[]], true>>;
35
+ /**
36
+ * @see {@link CompilerHooks['infrastructureLog']}
37
+ */
38
+ infrastructureLog: liteTapable.MultiHook<CompilerHooks["infrastructureLog"]>;
36
39
  };
37
40
  _options: MultiCompilerOptions;
38
41
  running: boolean;
39
42
  watching?: MultiWatching;
40
43
  constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
44
+ set unsafeFastDrop(value: boolean);
41
45
  get options(): import(".").RspackOptionsNormalized[] & MultiCompilerOptions;
42
46
  get outputPath(): string;
43
47
  get inputFileSystem(): InputFileSystem;
@@ -7,6 +7,7 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
+ import type { MultiStatsOptions, StatsPresets } from "./config";
10
11
  import type { Stats } from "./Stats";
11
12
  import type { StatsCompilation } from "./stats/statsFactoryUtils";
12
13
  export default class MultiStats {
@@ -16,7 +17,7 @@ export default class MultiStats {
16
17
  get hash(): string;
17
18
  hasErrors(): boolean;
18
19
  hasWarnings(): boolean;
19
- toJson(options: any): StatsCompilation;
20
- toString(options: any): string;
20
+ toJson(options: boolean | StatsPresets | MultiStatsOptions): StatsCompilation;
21
+ toString(options: boolean | StatsPresets | MultiStatsOptions): string;
21
22
  }
22
23
  export { MultiStats };
@@ -18,7 +18,7 @@ declare class MultiWatching {
18
18
  * @param compiler - the compiler
19
19
  */
20
20
  constructor(watchings: Watching[], compiler: MultiCompiler);
21
- invalidate(callback: Callback<Error, void>): void;
21
+ invalidate(callback?: Callback<Error, void>): void;
22
22
  invalidateWithChangesAndRemovals(changedFiles?: Set<string>, removedFiles?: Set<string>, callback?: Callback<Error, void>): void;
23
23
  close(callback: Callback<Error, void>): void;
24
24
  suspend(): void;
@@ -1,8 +1,9 @@
1
1
  import binding from "@rspack/binding";
2
2
  import type Watchpack from "../compiled/watchpack";
3
- import type { FileSystemInfoEntry, Watcher, WatchFileSystem } from "./util/fs";
3
+ import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from "./util/fs";
4
4
  export default class NativeWatchFileSystem implements WatchFileSystem {
5
5
  #private;
6
+ constructor(inputFileSystem: InputFileSystem);
6
7
  watch(files: Iterable<string> & {
7
8
  added?: Iterable<string>;
8
9
  removed?: Iterable<string>;
@@ -12,6 +13,11 @@ export default class NativeWatchFileSystem implements WatchFileSystem {
12
13
  }, missing: Iterable<string> & {
13
14
  added?: Iterable<string>;
14
15
  removed?: Iterable<string>;
15
- }, _startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
16
+ }, startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
16
17
  getNativeWatcher(options: Watchpack.WatchOptions): binding.NativeWatcher;
18
+ triggerEvent(kind: "change" | "remove" | "create", path: string): void;
19
+ formatWatchDependencies(dependencies: Iterable<string> & {
20
+ added?: Iterable<string>;
21
+ removed?: Iterable<string>;
22
+ }): [string[], string[]];
17
23
  }
@@ -1,7 +1,7 @@
1
1
  import type binding from "@rspack/binding";
2
2
  import * as liteTapable from "@rspack/lite-tapable";
3
3
  import type { ResolveData, ResourceDataWithData } from "./Module";
4
- import type { ResolverFactory } from "./ResolverFactory";
4
+ import type { ResolveOptionsWithDependencyType, ResolverFactory } from "./ResolverFactory";
5
5
  export type NormalModuleCreateData = binding.JsNormalModuleFactoryCreateModuleArgs & {
6
6
  settings: {};
7
7
  };
@@ -19,5 +19,5 @@ export declare class NormalModuleFactory {
19
19
  };
20
20
  resolverFactory: ResolverFactory;
21
21
  constructor(resolverFactory: ResolverFactory);
22
- getResolver(type: string, resolveOptions: Parameters<ResolverFactory["get"]>[1]): import("./Resolver").Resolver;
22
+ getResolver(type: string, resolveOptions: ResolveOptionsWithDependencyType): import("./ResolverFactory").ResolverWithOptions;
23
23
  }
@@ -1,10 +1,15 @@
1
1
  import type binding from "@rspack/binding";
2
- import { type Resolve } from "./config";
3
2
  import type { ResolveCallback } from "./config/adapterRuleUse";
4
- type ResolveContext = {};
5
- type ResolveOptionsWithDependencyType = Resolve & {
6
- dependencyCategory?: string;
7
- resolveToContext?: boolean;
3
+ export type ResolveContext = {
4
+ contextDependencies?: {
5
+ add: (context: string) => void;
6
+ };
7
+ missingDependencies?: {
8
+ add: (dependency: string) => void;
9
+ };
10
+ fileDependencies?: {
11
+ add: (dependency: string) => void;
12
+ };
8
13
  };
9
14
  export type ResourceData = binding.JsResourceData;
10
15
  export interface ResolveRequest {
@@ -13,12 +18,13 @@ export interface ResolveRequest {
13
18
  fragment: string;
14
19
  descriptionFileData?: string;
15
20
  descriptionFilePath?: string;
21
+ fileDependencies?: string[];
22
+ missingDependencies?: string[];
23
+ contextDependencies?: string[];
16
24
  }
17
25
  export declare class Resolver {
18
26
  #private;
19
27
  constructor(binding: binding.JsResolver);
20
28
  resolveSync(context: object, path: string, request: string): string | false;
21
29
  resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
22
- withOptions(options: ResolveOptionsWithDependencyType): Resolver;
23
30
  }
24
- export {};
@@ -1,14 +1,17 @@
1
1
  import binding from "@rspack/binding";
2
2
  import { type Resolve } from "./config";
3
3
  import { Resolver } from "./Resolver";
4
- type ResolveOptionsWithDependencyType = Resolve & {
5
- dependencyCategory?: string;
4
+ export type ResolveOptionsWithDependencyType = Resolve & {
5
+ dependencyType?: string;
6
6
  resolveToContext?: boolean;
7
7
  };
8
+ export type WithOptions = {
9
+ withOptions: (options: ResolveOptionsWithDependencyType) => ResolverWithOptions;
10
+ };
11
+ export type ResolverWithOptions = Resolver & WithOptions;
8
12
  export declare class ResolverFactory {
9
13
  #private;
10
14
  static __to_binding(resolver_factory: ResolverFactory): binding.JsResolverFactory;
11
- constructor(pnp: boolean);
12
- get(type: string, resolveOptions?: ResolveOptionsWithDependencyType): Resolver;
15
+ constructor(pnp: boolean, resolveOptions: Resolve, loaderResolveOptions: Resolve);
16
+ get(type: string, resolveOptions?: ResolveOptionsWithDependencyType): ResolverWithOptions;
13
17
  }
14
- export {};
@@ -7,3 +7,6 @@ export declare class NonErrorEmittedError extends Error {
7
7
  export declare class DeadlockRiskError extends Error {
8
8
  constructor(message: string);
9
9
  }
10
+ export declare class ValidationError extends Error {
11
+ constructor(message: string);
12
+ }
@@ -321,5 +321,8 @@ export declare const RuntimeGlobals: {
321
321
  * ) =\> void
322
322
  */
323
323
  readonly asyncModule: "__webpack_require__.a";
324
+ readonly asyncModuleExportSymbol: "__webpack_require__.aE";
325
+ readonly makeDeferredNamespaceObject: "__webpack_require__.z";
326
+ readonly makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
324
327
  };
325
328
  export declare const isReservedRuntimeGlobal: (r: string) => boolean;
@@ -13,7 +13,7 @@ export declare class RuntimeModule {
13
13
  static STAGE_BASIC: RuntimeModuleStage;
14
14
  static STAGE_ATTACH: RuntimeModuleStage;
15
15
  static STAGE_TRIGGER: RuntimeModuleStage;
16
- static __to_binding(compilation: Compilation, module: RuntimeModule): JsAddingRuntimeModule;
16
+ static __to_binding(module: RuntimeModule): JsAddingRuntimeModule;
17
17
  private _name;
18
18
  private _stage;
19
19
  fullHash: boolean;
@@ -0,0 +1,12 @@
1
+ import type { Compiler } from "./Compiler";
2
+ export declare class VirtualModulesPlugin {
3
+ #private;
4
+ constructor(modules?: Record<string, string>);
5
+ apply(compiler: Compiler): void;
6
+ writeModule(filePath: string, contents: string): void;
7
+ private getVirtualFileStore;
8
+ static __internal__take_virtual_files(compiler: Compiler): {
9
+ path: string;
10
+ content: string;
11
+ }[] | undefined;
12
+ }
@@ -1,3 +1,12 @@
1
+ /**
2
+ * The following code is modified based on
3
+ * https://github.com/webpack/webpack/blob/4b4ca3b/lib/Watching.js
4
+ *
5
+ * MIT Licensed
6
+ * Author Tobias Koppers @sokra
7
+ * Copyright (c) JS Foundation and other contributors
8
+ * https://github.com/webpack/webpack/blob/main/LICENSE
9
+ */
1
10
  import type { Callback } from "@rspack/lite-tapable";
2
11
  import type { Compiler } from ".";
3
12
  import { Stats } from ".";
@@ -12,8 +12,8 @@ type RawPluginImportConfig = {
12
12
  style?: RawStyleConfig;
13
13
  camelToDashComponentName?: boolean;
14
14
  transformToDefaultImport?: boolean;
15
- ignoreEsComponent?: Array<string>;
16
- ignoreStyleComponent?: Array<string>;
15
+ ignoreEsComponent?: string[];
16
+ ignoreStyleComponent?: string[];
17
17
  };
18
18
  type PluginImportConfig = {
19
19
  libraryName: string;
@@ -2,7 +2,7 @@ export declare const APIPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const AssetModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -33,7 +33,7 @@ export declare const BannerPlugin: {
33
33
  new (args: BannerPluginArgument): {
34
34
  name: string;
35
35
  _args: [args: BannerPluginArgument];
36
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
36
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
37
37
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
38
38
  apply(compiler: import("..").Compiler): void;
39
39
  };
@@ -7,7 +7,7 @@ export declare const BundlerInfoRspackPlugin: {
7
7
  new (options: BundleInfoOptions): {
8
8
  name: string;
9
9
  _args: [options: BundleInfoOptions];
10
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
11
11
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
@@ -2,7 +2,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -31,7 +31,7 @@ export type CircularDependencyRspackPluginOptions = {
31
31
  * module "app/design/components/Button.tsx". When the entry is a RegExp,
32
32
  * it is tested against the entire identifier.
33
33
  */
34
- ignoredConnections?: Array<[string | RegExp, string | RegExp]>;
34
+ ignoredConnections?: [string | RegExp, string | RegExp][];
35
35
  /**
36
36
  * Called once for every detected cycle. Providing this handler overrides the
37
37
  * default behavior of adding diagnostics to the compilation.
@@ -2,7 +2,7 @@ export declare const CommonJsChunkFormatPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const ContextReplacementPlugin: {
2
2
  new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
3
3
  name: string;
4
4
  _args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -7,7 +7,7 @@ export declare const CopyRspackPlugin: {
7
7
  new (copy: CopyRspackPluginOptions): {
8
8
  name: string;
9
9
  _args: [copy: CopyRspackPluginOptions];
10
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
11
11
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
@@ -14,7 +14,7 @@ export declare const CssChunkingPlugin: {
14
14
  new (options?: CssChunkingPluginOptions | undefined): {
15
15
  name: string;
16
16
  _args: [options?: CssChunkingPluginOptions | undefined];
17
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
17
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
18
18
  raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
19
19
  apply(compiler: import("..").Compiler): void;
20
20
  };
@@ -2,7 +2,7 @@ export declare const CssModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const DataUriPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -3,7 +3,7 @@ export declare const DefinePlugin: {
3
3
  new (define: DefinePluginOptions): {
4
4
  name: string;
5
5
  _args: [define: DefinePluginOptions];
6
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -12,5 +12,5 @@ type CodeValue = RecursiveArrayOrRecord<CodeValuePrimitive>;
12
12
  type CodeValuePrimitive = null | undefined | RegExp | Function | string | number | boolean | bigint;
13
13
  type RecursiveArrayOrRecord<T> = {
14
14
  [index: string]: RecursiveArrayOrRecord<T>;
15
- } | Array<RecursiveArrayOrRecord<T>> | T;
15
+ } | RecursiveArrayOrRecord<T>[] | T;
16
16
  export {};
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -5,7 +5,7 @@ export declare const DllEntryPlugin: {
5
5
  new (context: string, entries: string[], options: DllEntryPluginOptions): {
6
6
  name: string;
7
7
  _args: [context: string, entries: string[], options: DllEntryPluginOptions];
8
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
9
9
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
10
10
  apply(compiler: import("..").Compiler): void;
11
11
  };
@@ -4,7 +4,7 @@ export declare const DllReferenceAgencyPlugin: {
4
4
  new (options: RawDllReferenceAgencyPluginOptions): {
5
5
  name: string;
6
6
  _args: [options: RawDllReferenceAgencyPluginOptions];
7
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -2,7 +2,7 @@ export declare const ElectronTargetPlugin: {
2
2
  new (context?: string | undefined): {
3
3
  name: string;
4
4
  _args: [context?: string | undefined];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -12,7 +12,7 @@ declare const EnableChunkLoadingPluginInner: {
12
12
  new (type: string): {
13
13
  name: string;
14
14
  _args: [type: string];
15
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
15
+ affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
16
16
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
17
17
  apply(compiler: Compiler): void;
18
18
  };
@@ -2,7 +2,7 @@ export declare const EnableWasmLoadingPlugin: {
2
2
  new (type: string): {
3
3
  name: string;
4
4
  _args: [type: string];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const EnsureChunkConditionsPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -19,7 +19,7 @@ declare const OriginEntryPlugin: {
19
19
  new (context: string, entry: string, options?: string | EntryOptions | undefined): {
20
20
  name: string;
21
21
  _args: [context: string, entry: string, options?: string | EntryOptions | undefined];
22
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
22
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
23
23
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
24
24
  apply(compiler: import("..").Compiler): void;
25
25
  };
@@ -0,0 +1,11 @@
1
+ import type { Compiler } from "../Compiler";
2
+ export declare class EsmLibraryPlugin {
3
+ static PLUGIN_NAME: string;
4
+ options?: {
5
+ preserveModules?: string;
6
+ };
7
+ constructor(options?: {
8
+ preserveModules?: string;
9
+ });
10
+ apply(compiler: Compiler): void;
11
+ }
@@ -4,7 +4,7 @@ export declare const EvalDevToolModulePlugin: {
4
4
  new (options: RawEvalDevToolModulePluginOptions): {
5
5
  name: string;
6
6
  _args: [options: RawEvalDevToolModulePluginOptions];
7
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -3,7 +3,7 @@ export declare const EvalSourceMapDevToolPlugin: {
3
3
  new (options: SourceMapDevToolPluginOptions): {
4
4
  name: string;
5
5
  _args: [options: SourceMapDevToolPluginOptions];
6
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -5,7 +5,8 @@ export declare class ExternalsPlugin extends RspackBuiltinPlugin {
5
5
  #private;
6
6
  private type;
7
7
  private externals;
8
+ private placeInInitial?;
8
9
  name: BuiltinPluginName;
9
- constructor(type: string, externals: Externals);
10
+ constructor(type: string, externals: Externals, placeInInitial?: boolean | undefined);
10
11
  raw(): BuiltinPlugin | undefined;
11
12
  }
@@ -2,7 +2,7 @@ export declare const FetchCompileAsyncWasmPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const FileUriPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };