@rspack-canary/core 1.7.3-canary-0b48f4eb-20260120024403 → 1.7.4-canary-6f161b5e-20260120174123

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 (208) hide show
  1. package/dist/ChunkGraph.d.ts +1 -1
  2. package/dist/Compilation.d.ts +27 -27
  3. package/dist/Compiler.d.ts +17 -18
  4. package/dist/ContextModuleFactory.d.ts +1 -1
  5. package/dist/Diagnostics.d.ts +1 -1
  6. package/dist/ExecuteModulePlugin.d.ts +1 -1
  7. package/dist/ExportsInfo.d.ts +1 -1
  8. package/dist/FileSystem.d.ts +1 -1
  9. package/dist/Module.d.ts +2 -2
  10. package/dist/ModuleGraph.d.ts +2 -2
  11. package/dist/MultiCompiler.d.ts +7 -7
  12. package/dist/MultiStats.d.ts +3 -3
  13. package/dist/MultiWatching.d.ts +2 -2
  14. package/dist/NativeWatchFileSystem.d.ts +1 -1
  15. package/dist/NormalModule.d.ts +3 -3
  16. package/dist/NormalModuleFactory.d.ts +3 -3
  17. package/dist/Resolver.d.ts +1 -1
  18. package/dist/ResolverFactory.d.ts +2 -2
  19. package/dist/RuntimeGlobals.d.ts +1 -1
  20. package/dist/RuntimeModule.d.ts +3 -3
  21. package/dist/Stats.d.ts +4 -4
  22. package/dist/VirtualModulesPlugin.d.ts +1 -1
  23. package/dist/Watching.d.ts +4 -4
  24. package/dist/builtin-loader/index.d.ts +1 -1
  25. package/dist/builtin-loader/lightningcss/index.d.ts +5 -0
  26. package/dist/builtin-loader/swc/index.d.ts +5 -5
  27. package/dist/builtin-loader/swc/types.d.ts +6 -4
  28. package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
  29. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
  30. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
  31. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
  32. package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
  33. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +3 -3
  34. package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +3 -3
  35. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
  36. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +4 -4
  37. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
  38. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +3 -3
  39. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +3 -3
  40. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +3 -3
  41. package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
  42. package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
  43. package/dist/builtin-plugin/DefinePlugin.d.ts +3 -3
  44. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/DllEntryPlugin.d.ts +3 -3
  47. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +3 -3
  48. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +3 -3
  49. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
  50. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
  51. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
  52. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
  54. package/dist/builtin-plugin/EntryPlugin.d.ts +4 -4
  55. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +3 -3
  57. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
  58. package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
  59. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
  60. package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
  61. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +3 -3
  62. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
  63. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +3 -3
  66. package/dist/builtin-plugin/HttpUriPlugin.d.ts +2 -2
  67. package/dist/builtin-plugin/IgnorePlugin.d.ts +3 -3
  68. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
  69. package/dist/builtin-plugin/InlineExportsPlugin.d.ts +3 -3
  70. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +4 -4
  71. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +2 -2
  72. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
  73. package/dist/builtin-plugin/LibManifestPlugin.d.ts +3 -3
  74. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +10 -5
  75. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +3 -3
  76. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
  78. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
  79. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +3 -3
  81. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
  82. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
  83. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
  85. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +3 -3
  86. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
  87. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +4 -4
  88. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +3 -3
  89. package/dist/builtin-plugin/ProgressPlugin.d.ts +3 -3
  90. package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
  91. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
  92. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +3 -3
  93. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
  94. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -4
  95. package/dist/builtin-plugin/RslibPlugin.d.ts +3 -3
  96. package/dist/builtin-plugin/RstestPlugin.d.ts +3 -3
  97. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +3 -3
  98. package/dist/builtin-plugin/RuntimePlugin.d.ts +10 -6
  99. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
  100. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +3 -3
  101. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +3 -3
  102. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
  103. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
  104. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +5 -5
  105. package/dist/builtin-plugin/URLPlugin.d.ts +3 -3
  106. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
  107. package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
  108. package/dist/builtin-plugin/base.d.ts +3 -3
  109. package/dist/builtin-plugin/css-extract/index.d.ts +3 -3
  110. package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
  111. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  112. package/dist/builtin-plugin/html-plugin/hooks.d.ts +2 -2
  113. package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
  114. package/dist/builtin-plugin/html-plugin/options.d.ts +6 -1
  115. package/dist/builtin-plugin/html-plugin/plugin.d.ts +9 -5
  116. package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
  117. package/dist/builtin-plugin/index.d.ts +84 -85
  118. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +4 -4
  119. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
  120. package/dist/config/adapter.d.ts +4 -4
  121. package/dist/config/adapterRuleUse.d.ts +9 -9
  122. package/dist/config/browserslistTargetHandler.d.ts +1 -1
  123. package/dist/config/defaults.d.ts +1 -1
  124. package/dist/config/devServer.d.ts +3 -3
  125. package/dist/config/index.d.ts +5 -5
  126. package/dist/config/normalization.d.ts +35 -7
  127. package/dist/config/types.d.ts +156 -67
  128. package/dist/container/ContainerPlugin.d.ts +3 -3
  129. package/dist/container/ContainerReferencePlugin.d.ts +3 -3
  130. package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -2
  131. package/dist/container/ModuleFederationPlugin.d.ts +3 -3
  132. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  133. package/dist/container/ModuleFederationRuntimePlugin.d.ts +3 -3
  134. package/dist/container/index.d.ts +4 -4
  135. package/dist/cssExtractHmr.js +27 -2
  136. package/dist/cssExtractLoader.js +57 -15
  137. package/dist/exports.d.ts +81 -70
  138. package/dist/index.d.ts +3 -3
  139. package/dist/index.js +11726 -11471
  140. package/dist/lib/AbstractMethodError.d.ts +1 -1
  141. package/dist/lib/Cache.d.ts +1 -1
  142. package/dist/lib/CacheFacade.d.ts +3 -3
  143. package/dist/lib/DllPlugin.d.ts +2 -2
  144. package/dist/lib/DllReferencePlugin.d.ts +3 -3
  145. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  146. package/dist/lib/EnvironmentPlugin.d.ts +1 -1
  147. package/dist/lib/HookWebpackError.d.ts +1 -1
  148. package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
  149. package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
  150. package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
  151. package/dist/lib/WebpackError.d.ts +2 -2
  152. package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
  153. package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
  154. package/dist/lib/cache/mergeEtags.d.ts +1 -1
  155. package/dist/loader-runner/ModuleError.d.ts +1 -1
  156. package/dist/loader-runner/index.d.ts +1 -1
  157. package/dist/loader-runner/loadLoader.d.ts +2 -2
  158. package/dist/loader-runner/utils.d.ts +3 -3
  159. package/dist/loader-runner/worker.d.ts +1 -1
  160. package/dist/logging/createConsoleLogger.d.ts +2 -2
  161. package/dist/moduleFederationDefaultRuntime.js +1 -1
  162. package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
  163. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  164. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  165. package/dist/node/nodeConsole.d.ts +1 -1
  166. package/dist/rspack.d.ts +5 -5
  167. package/dist/rspackOptionsApply.d.ts +1 -1
  168. package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -1
  169. package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
  170. package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
  171. package/dist/sharing/SharePlugin.d.ts +1 -1
  172. package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
  173. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
  174. package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
  175. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
  176. package/dist/stats/StatsFactory.d.ts +2 -2
  177. package/dist/stats/StatsPrinter.d.ts +1 -1
  178. package/dist/stats/statsFactoryUtils.d.ts +6 -3
  179. package/dist/taps/compilation.d.ts +1 -1
  180. package/dist/taps/compiler.d.ts +1 -1
  181. package/dist/taps/contextModuleFactory.d.ts +1 -1
  182. package/dist/taps/index.d.ts +6 -6
  183. package/dist/taps/javascriptModules.d.ts +1 -1
  184. package/dist/taps/normalModuleFactory.d.ts +1 -1
  185. package/dist/taps/types.d.ts +1 -1
  186. package/dist/trace/traceHookPlugin.d.ts +1 -1
  187. package/dist/util/createHash.d.ts +1 -1
  188. package/dist/util/fs.d.ts +1 -1
  189. package/dist/util/hash/md4.d.ts +1 -1
  190. package/dist/util/hash/xxhash64.d.ts +1 -1
  191. package/dist/util/index.d.ts +1 -1
  192. package/dist/util/validateConfig.d.ts +1 -1
  193. package/dist/worker.js +918 -846
  194. package/hot/dev-server.js +9 -12
  195. package/hot/emitter.js +1 -5
  196. package/hot/lazy-compilation-node.js +1 -4
  197. package/hot/lazy-compilation-web.js +3 -2
  198. package/hot/log-apply-result.js +5 -8
  199. package/hot/log.js +7 -17
  200. package/hot/only-dev-server.js +10 -13
  201. package/hot/poll.js +8 -11
  202. package/hot/signal.js +9 -13
  203. package/package.json +6 -9
  204. package/dist/builtin-plugin/rsc/Coordinator.d.ts +0 -8
  205. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +0 -13
  206. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +0 -14
  207. package/dist/builtin-plugin/rsc/index.d.ts +0 -24
  208. package/dist/rslib-runtime.js +0 -29
@@ -1,4 +1,4 @@
1
- import type { RuntimeSpec } from './util/runtime.js';
1
+ import type { RuntimeSpec } from './util/runtime';
2
2
  declare module '@rspack/binding' {
3
3
  interface ChunkGraph {
4
4
  getModuleChunksIterable(module: Module): Iterable<Chunk>;
@@ -12,32 +12,32 @@ import binding 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 type { EntryOptions, EntryPlugin } from './builtin-plugin/index.js';
16
- import type { Chunk } from './Chunk.js';
17
- import type { ChunkGraph } from './ChunkGraph.js';
18
- import type { Compiler } from './Compiler.js';
19
- import type { ContextModuleFactory } from './ContextModuleFactory.js';
20
- import type { OutputNormalized, RspackOptionsNormalized, RspackPluginInstance, StatsOptions, StatsValue } from './config/index.js';
21
- import type { Entrypoint } from './Entrypoint.js';
22
- import WebpackError from './lib/WebpackError.js';
23
- import { Logger } from './logging/Logger.js';
24
- import type { Module } from './Module.js';
25
- import ModuleGraph from './ModuleGraph.js';
26
- import type { NormalModuleCompilationHooks } from './NormalModule.js';
27
- import type { NormalModuleFactory } from './NormalModuleFactory.js';
28
- import type { ResolverFactory } from './ResolverFactory.js';
29
- import type { RspackError } from './RspackError.js';
30
- import { RuntimeModule } from './RuntimeModule.js';
31
- import { Stats, type StatsAsset, type StatsError, type StatsModule } from './Stats.js';
32
- import { StatsFactory } from './stats/StatsFactory.js';
33
- import { StatsPrinter } from './stats/StatsPrinter.js';
34
- import type { InputFileSystem } from './util/fs.js';
35
- import type Hash from './util/hash/index.js';
36
- import './Chunk.js';
37
- import './Chunks.js';
38
- import './ChunkGraph.js';
39
- import './CodeGenerationResults.js';
40
- import type { CodeGenerationResult } from './taps/compilation.js';
15
+ import type { EntryOptions, EntryPlugin } from './builtin-plugin';
16
+ import type { Chunk } from './Chunk';
17
+ import type { ChunkGraph } from './ChunkGraph';
18
+ import type { Compiler } from './Compiler';
19
+ import type { ContextModuleFactory } from './ContextModuleFactory';
20
+ import type { OutputNormalized, RspackOptionsNormalized, RspackPluginInstance, StatsOptions, StatsValue } from './config';
21
+ import type { Entrypoint } from './Entrypoint';
22
+ import WebpackError from './lib/WebpackError';
23
+ import { Logger } from './logging/Logger';
24
+ import type { Module } from './Module';
25
+ import ModuleGraph from './ModuleGraph';
26
+ import type { NormalModuleCompilationHooks } from './NormalModule';
27
+ import type { NormalModuleFactory } from './NormalModuleFactory';
28
+ import type { ResolverFactory } from './ResolverFactory';
29
+ import type { RspackError } from './RspackError';
30
+ import { RuntimeModule } from './RuntimeModule';
31
+ import { Stats, type StatsAsset, type StatsError, type StatsModule } from './Stats';
32
+ import { StatsFactory } from './stats/StatsFactory';
33
+ import { StatsPrinter } from './stats/StatsPrinter';
34
+ import type { InputFileSystem } from './util/fs';
35
+ import type Hash from './util/hash';
36
+ import './Chunk';
37
+ import './Chunks';
38
+ import './ChunkGraph';
39
+ import './CodeGenerationResults';
40
+ import type { CodeGenerationResult } from './taps/compilation';
41
41
  export type Assets = Record<string, Source>;
42
42
  export interface Asset {
43
43
  name: string;
@@ -237,7 +237,7 @@ export declare class Compilation {
237
237
  get namedChunks(): ReadonlyMap<string, Readonly<binding.Chunk>>;
238
238
  get entries(): Map<string, EntryData>;
239
239
  get codeGenerationResults(): binding.CodeGenerationResults;
240
- getCache(name: string): import("./lib/CacheFacade.js").CacheFacade;
240
+ getCache(name: string): import("./lib/CacheFacade").CacheFacade;
241
241
  createStatsOptions(statsValue: StatsValue | undefined, context?: CreateStatsOptionsContext): NormalizedStatsOptions;
242
242
  createStatsFactory(options: StatsOptions): StatsFactory;
243
243
  createStatsPrinter(options: StatsOptions): StatsPrinter;
@@ -11,23 +11,23 @@ import type binding from '@rspack/binding';
11
11
  import * as liteTapable from '@rspack/lite-tapable';
12
12
  import type Watchpack from '../compiled/watchpack';
13
13
  import type { Source } from '../compiled/webpack-sources';
14
- import type { Chunk } from './Chunk.js';
15
- import type { CompilationParams } from './Compilation.js';
16
- import { Compilation } from './Compilation.js';
17
- import { ContextModuleFactory } from './ContextModuleFactory.js';
18
- import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from './config/index.js';
19
- import type { PlatformTargetProperties } from './config/target.js';
20
- import type { FileSystemInfoEntry } from './FileSystemInfo.js';
21
- import type { rspack } from './index.js';
22
- import Cache from './lib/Cache.js';
23
- import CacheFacade from './lib/CacheFacade.js';
24
- import { Logger } from './logging/Logger.js';
25
- import { NormalModuleFactory } from './NormalModuleFactory.js';
26
- import { ResolverFactory } from './ResolverFactory.js';
27
- import { RuleSetCompiler } from './RuleSetCompiler.js';
28
- import { Stats } from './Stats.js';
29
- import type { InputFileSystem, IntermediateFileSystem, OutputFileSystem, WatchFileSystem } from './util/fs.js';
30
- import { Watching } from './Watching.js';
14
+ import type { Chunk } from './Chunk';
15
+ import type { CompilationParams } from './Compilation';
16
+ import { Compilation } from './Compilation';
17
+ import { ContextModuleFactory } from './ContextModuleFactory';
18
+ import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from './config';
19
+ import type { PlatformTargetProperties } from './config/target';
20
+ import type { FileSystemInfoEntry } from './FileSystemInfo';
21
+ import type { rspack } from './index';
22
+ import Cache from './lib/Cache';
23
+ import CacheFacade from './lib/CacheFacade';
24
+ import { Logger } from './logging/Logger';
25
+ import { NormalModuleFactory } from './NormalModuleFactory';
26
+ import { ResolverFactory } from './ResolverFactory';
27
+ import { RuleSetCompiler } from './RuleSetCompiler';
28
+ import { Stats } from './Stats';
29
+ import type { InputFileSystem, IntermediateFileSystem, OutputFileSystem, WatchFileSystem } from './util/fs';
30
+ import { Watching } from './Watching';
31
31
  export interface AssetEmittedInfo {
32
32
  content: Buffer;
33
33
  source: Source;
@@ -79,7 +79,6 @@ export type CompilerHooks = {
79
79
  entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
80
80
  additionalPass: liteTapable.AsyncSeriesHook<[]>;
81
81
  };
82
- export declare const GET_COMPILER_ID: unique symbol;
83
82
  declare class Compiler {
84
83
  #private;
85
84
  hooks: CompilerHooks;
@@ -1,5 +1,5 @@
1
1
  import * as liteTapable from '@rspack/lite-tapable';
2
- import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module.js';
2
+ import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module';
3
3
  export declare class ContextModuleFactory {
4
4
  hooks: {
5
5
  beforeResolve: liteTapable.AsyncSeriesWaterfallHook<[
@@ -1,5 +1,5 @@
1
1
  import type { Diagnostics } from '@rspack/binding';
2
- import type { RspackError } from './RspackError.js';
2
+ import type { RspackError } from './RspackError';
3
3
  declare const $proxy: unique symbol;
4
4
  export declare function createDiagnosticArray(adm: Diagnostics & {
5
5
  [$proxy]?: RspackError[];
@@ -1,4 +1,4 @@
1
- import type { Compiler } from './Compiler.js';
1
+ import type { Compiler } from './Compiler';
2
2
  export default class ExecuteModulePlugin {
3
3
  apply(compiler: Compiler): void;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import type { JsExportsInfo } from '@rspack/binding';
2
- import type { RuntimeSpec } from './util/runtime.js';
2
+ import type { RuntimeSpec } from './util/runtime';
3
3
  /**
4
4
  * Unused: 0
5
5
  * OnlyPropertiesUsed: 1
@@ -1,5 +1,5 @@
1
1
  import type { NodeFsStats, ThreadsafeNodeFS } from '@rspack/binding';
2
- import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from './util/fs.js';
2
+ import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from './util/fs';
3
3
  declare class ThreadsafeInputNodeFS implements ThreadsafeNodeFS {
4
4
  writeFile: (name: string, content: Buffer) => Promise<void>;
5
5
  removeFile: (name: string) => Promise<void>;
package/dist/Module.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import binding, { type AssetInfo } from '@rspack/binding';
2
2
  import type { Source } from '../compiled/webpack-sources';
3
- import type { ResourceData } from './Resolver.js';
4
- import './BuildInfo.js';
3
+ import type { ResourceData } from './Resolver';
4
+ import './BuildInfo';
5
5
  export type ResourceDataWithData = ResourceData & {
6
6
  data?: Record<string, any>;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import type { Dependency, JsModuleGraph, ModuleGraphConnection } from '@rspack/binding';
2
- import { ExportsInfo } from './ExportsInfo.js';
3
- import type { Module } from './Module.js';
2
+ import { ExportsInfo } from './ExportsInfo';
3
+ import type { Module } from './Module';
4
4
  export default class ModuleGraph {
5
5
  #private;
6
6
  static __from_binding(binding: JsModuleGraph): ModuleGraph;
@@ -8,11 +8,11 @@
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, CompilerHooks, RspackOptions } from './index.js';
12
- import type { WatchOptions } from './config/index.js';
13
- import MultiStats from './MultiStats.js';
14
- import MultiWatching from './MultiWatching.js';
15
- import type { InputFileSystem, IntermediateFileSystem, WatchFileSystem } from './util/fs.js';
11
+ import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from '.';
12
+ import type { WatchOptions } from './config';
13
+ import MultiStats from './MultiStats';
14
+ import MultiWatching from './MultiWatching';
15
+ import type { InputFileSystem, IntermediateFileSystem, WatchFileSystem } from './util/fs';
16
16
  export interface MultiCompilerOptions {
17
17
  /**
18
18
  * how many Compilers are allows to run at the same time in parallel
@@ -42,7 +42,7 @@ export declare class MultiCompiler {
42
42
  watching?: MultiWatching;
43
43
  constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
44
44
  set unsafeFastDrop(value: boolean);
45
- get options(): import("./config/index.js").RspackOptionsNormalized[] & MultiCompilerOptions;
45
+ get options(): import(".").RspackOptionsNormalized[] & MultiCompilerOptions;
46
46
  get outputPath(): string;
47
47
  get inputFileSystem(): InputFileSystem;
48
48
  get outputFileSystem(): typeof import("fs");
@@ -52,7 +52,7 @@ export declare class MultiCompiler {
52
52
  set outputFileSystem(value: typeof import('fs'));
53
53
  set watchFileSystem(value: WatchFileSystem);
54
54
  set intermediateFileSystem(value: IntermediateFileSystem);
55
- getInfrastructureLogger(name: string): import("./logging/Logger.js").Logger;
55
+ getInfrastructureLogger(name: string): import("./logging/Logger").Logger;
56
56
  /**
57
57
  * @param compiler - the child compiler
58
58
  * @param dependencies - its dependencies
@@ -7,9 +7,9 @@
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/index.js';
11
- import type { Stats } from './Stats.js';
12
- import type { StatsCompilation } from './stats/statsFactoryUtils.js';
10
+ import type { MultiStatsOptions, StatsPresets } from './config';
11
+ import type { Stats } from './Stats';
12
+ import type { StatsCompilation } from './stats/statsFactoryUtils';
13
13
  export default class MultiStats {
14
14
  #private;
15
15
  stats: Stats[];
@@ -8,8 +8,8 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { Callback } from '@rspack/lite-tapable';
11
- import type { MultiCompiler } from './MultiCompiler.js';
12
- import type { Watching } from './Watching.js';
11
+ import type { MultiCompiler } from './MultiCompiler';
12
+ import type { Watching } from './Watching';
13
13
  declare class MultiWatching {
14
14
  watchings: Watching[];
15
15
  compiler: MultiCompiler;
@@ -1,6 +1,6 @@
1
1
  import binding from '@rspack/binding';
2
2
  import type Watchpack from '../compiled/watchpack';
3
- import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from './util/fs.js';
3
+ import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from './util/fs';
4
4
  export default class NativeWatchFileSystem implements WatchFileSystem {
5
5
  #private;
6
6
  constructor(inputFileSystem: InputFileSystem);
@@ -1,7 +1,7 @@
1
1
  import * as liteTapable from '@rspack/lite-tapable';
2
- import type { Compilation } from './Compilation.js';
3
- import type { LoaderContext } from './config/index.js';
4
- import type { Module } from './Module.js';
2
+ import type { Compilation } from './Compilation';
3
+ import type { LoaderContext } from './config';
4
+ import type { Module } from './Module';
5
5
  export interface NormalModuleCompilationHooks {
6
6
  loader: liteTapable.SyncHook<[LoaderContext, Module]>;
7
7
  readResourceForScheme: any;
@@ -1,7 +1,7 @@
1
1
  import type binding from '@rspack/binding';
2
2
  import * as liteTapable from '@rspack/lite-tapable';
3
- import type { ResolveData, ResourceDataWithData } from './Module.js';
4
- import type { ResolveOptionsWithDependencyType, ResolverFactory } from './ResolverFactory.js';
3
+ import type { ResolveData, ResourceDataWithData } from './Module';
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: ResolveOptionsWithDependencyType): import("./ResolverFactory.js").ResolverWithOptions;
22
+ getResolver(type: string, resolveOptions: ResolveOptionsWithDependencyType): import("./ResolverFactory").ResolverWithOptions;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import type binding from '@rspack/binding';
2
- import type { ResolveCallback } from './config/adapterRuleUse.js';
2
+ import type { ResolveCallback } from './config/adapterRuleUse';
3
3
  export type ResolveContext = {
4
4
  contextDependencies?: {
5
5
  add: (context: string) => void;
@@ -1,6 +1,6 @@
1
1
  import binding from '@rspack/binding';
2
- import { type Resolve } from './config/index.js';
3
- import { Resolver } from './Resolver.js';
2
+ import { type Resolve } from './config';
3
+ import { Resolver } from './Resolver';
4
4
  export type ResolveOptionsWithDependencyType = Resolve & {
5
5
  dependencyType?: string;
6
6
  resolveToContext?: boolean;
@@ -8,7 +8,7 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { JsRuntimeGlobals } from '@rspack/binding';
11
- import type { RspackOptionsNormalized } from './config/index.js';
11
+ import type { RspackOptionsNormalized } from './config';
12
12
  export declare function __from_binding_runtime_globals(runtimeRequirements: JsRuntimeGlobals, compilerRuntimeGlobals: Record<string, string>): Set<string>;
13
13
  export declare function __to_binding_runtime_globals(runtimeRequirements: Set<string>, compilerRuntimeGlobals: Record<string, string>): JsRuntimeGlobals;
14
14
  declare enum RuntimeGlobals {
@@ -1,7 +1,7 @@
1
1
  import type { JsAddingRuntimeModule, JsRuntimeModule, JsSource } from '@rspack/binding';
2
- import type { Chunk } from './Chunk.js';
3
- import type { ChunkGraph } from './ChunkGraph.js';
4
- import type { Compilation } from './Compilation.js';
2
+ import type { Chunk } from './Chunk';
3
+ import type { ChunkGraph } from './ChunkGraph';
4
+ import type { Compilation } from './Compilation';
5
5
  export declare enum RuntimeModuleStage {
6
6
  NORMAL = 0,
7
7
  BASIC = 5,
package/dist/Stats.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { Compilation } from './Compilation.js';
2
- import type { StatsOptions, StatsValue } from './config/index.js';
3
- import type { StatsCompilation } from './stats/statsFactoryUtils.js';
4
- export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './stats/statsFactoryUtils.js';
1
+ import type { Compilation } from './Compilation';
2
+ import type { StatsOptions, StatsValue } from './config';
3
+ import type { StatsCompilation } from './stats/statsFactoryUtils';
4
+ export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './stats/statsFactoryUtils';
5
5
  export declare class Stats {
6
6
  #private;
7
7
  constructor(compilation: Compilation);
@@ -1,4 +1,4 @@
1
- import type { Compiler } from './Compiler.js';
1
+ import type { Compiler } from './Compiler';
2
2
  export declare class VirtualModulesPlugin {
3
3
  #private;
4
4
  constructor(modules?: Record<string, string>);
@@ -8,10 +8,10 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { Callback } from '@rspack/lite-tapable';
11
- import type { Compiler } from './index.js';
12
- import { Stats } from './index.js';
13
- import type { WatchOptions } from './config/index.js';
14
- import type { Watcher } from './util/fs.js';
11
+ import type { Compiler } from '.';
12
+ import { Stats } from '.';
13
+ import type { WatchOptions } from './config';
14
+ import type { Watcher } from './util/fs';
15
15
  export declare class Watching {
16
16
  #private;
17
17
  watcher?: Watcher;
@@ -1 +1 @@
1
- export * from './swc/index.js';
1
+ export * from './swc';
@@ -105,6 +105,11 @@ export type LoaderOptions = {
105
105
  targets?: Targets | string[] | string;
106
106
  include?: FeatureOptions;
107
107
  exclude?: FeatureOptions;
108
+ /**
109
+ * @deprecated Use `drafts` instead.
110
+ * This will be removed in the next major version.
111
+ */
112
+ draft?: Drafts;
108
113
  drafts?: Drafts;
109
114
  nonStandard?: NonStandard;
110
115
  pseudoClasses?: PseudoClasses;
@@ -1,5 +1,5 @@
1
- export type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo.js';
2
- export { resolveCollectTypeScriptInfo } from './collectTypeScriptInfo.js';
3
- export type { PluginImportOptions } from './pluginImport.js';
4
- export { resolvePluginImport } from './pluginImport.js';
5
- export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './types.js';
1
+ export type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo';
2
+ export { resolveCollectTypeScriptInfo } from './collectTypeScriptInfo';
3
+ export type { PluginImportOptions } from './pluginImport';
4
+ export { resolvePluginImport } from './pluginImport';
5
+ export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './types';
@@ -1,6 +1,6 @@
1
1
  import type { Config, EnvConfig, EsParserConfig, JscConfig, ModuleConfig, ParserConfig, TerserEcmaVersion, TransformConfig, TsParserConfig } from '../../../compiled/@swc/types';
2
- import type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo.js';
3
- import type { PluginImportOptions } from './pluginImport.js';
2
+ import type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo';
3
+ import type { PluginImportOptions } from './pluginImport';
4
4
  export type SwcLoaderEnvConfig = EnvConfig;
5
5
  export type SwcLoaderJscConfig = JscConfig;
6
6
  export type SwcLoaderModuleConfig = ModuleConfig;
@@ -22,9 +22,11 @@ export type SwcLoaderOptions = Config & {
22
22
  rspackExperiments?: {
23
23
  import?: PluginImportOptions;
24
24
  /**
25
- * Enable React Server Components support.
25
+ * @deprecated Use top-level `collectTypeScriptInfo` instead.
26
+ * Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
27
+ * providing better TypeScript development experience and smaller output bundle size.
26
28
  */
27
- reactServerComponents?: boolean;
29
+ collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
28
30
  };
29
31
  };
30
32
  export interface TerserCompressOptions {
@@ -2,8 +2,8 @@ export declare const APIPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -2,8 +2,8 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -2,8 +2,8 @@ export declare const AssetModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -2,8 +2,8 @@ export declare const AsyncWebAssemblyModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -33,8 +33,8 @@ export declare const BannerPlugin: {
33
33
  new (args: BannerPluginArgument): {
34
34
  name: string;
35
35
  _args: [args: BannerPluginArgument];
36
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
37
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
38
- apply(compiler: import("../index.js").Compiler): void;
36
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
37
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
38
+ apply(compiler: import("..").Compiler): void;
39
39
  };
40
40
  };
@@ -7,8 +7,8 @@ export declare const BundlerInfoRspackPlugin: {
7
7
  new (options: BundleInfoOptions): {
8
8
  name: string;
9
9
  _args: [options: BundleInfoOptions];
10
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
11
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
12
- apply(compiler: import("../index.js").Compiler): void;
10
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
11
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
12
+ apply(compiler: import("..").Compiler): void;
13
13
  };
14
14
  };
@@ -2,8 +2,8 @@ export declare const CaseSensitivePlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -2,8 +2,8 @@ export declare const ChunkPrefetchPreloadPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -1,8 +1,8 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import type { Compilation } from '../Compilation.js';
3
- import type { Compiler } from '../Compiler.js';
4
- import type { Module } from '../Module.js';
5
- import { RspackBuiltinPlugin } from './base.js';
2
+ import type { Compilation } from '../Compilation';
3
+ import type { Compiler } from '../Compiler';
4
+ import type { Module } from '../Module';
5
+ import { RspackBuiltinPlugin } from './base';
6
6
  export type CircularDependencyRspackPluginOptions = {
7
7
  /**
8
8
  * When `true`, the plugin will emit `ERROR` diagnostics rather than the
@@ -2,8 +2,8 @@ export declare const CommonJsChunkFormatPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -2,8 +2,8 @@ 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: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -7,8 +7,8 @@ export declare const CopyRspackPlugin: {
7
7
  new (copy: CopyRspackPluginOptions): {
8
8
  name: string;
9
9
  _args: [copy: CopyRspackPluginOptions];
10
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
11
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
12
- apply(compiler: import("../index.js").Compiler): void;
10
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
11
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
12
+ apply(compiler: import("..").Compiler): void;
13
13
  };
14
14
  };
@@ -14,8 +14,8 @@ export declare const CssChunkingPlugin: {
14
14
  new (options?: CssChunkingPluginOptions | undefined): {
15
15
  name: string;
16
16
  _args: [options?: CssChunkingPluginOptions | undefined];
17
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
18
- raw(compiler: import("../index.js").Compiler): binding.BuiltinPlugin;
19
- apply(compiler: import("../index.js").Compiler): void;
17
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
18
+ raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
19
+ apply(compiler: import("..").Compiler): void;
20
20
  };
21
21
  };
@@ -2,8 +2,8 @@ export declare const CssModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
- raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("../index.js").Compiler): void;
5
+ affectedHooks: keyof import("..").CompilerHooks | undefined;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };