@rspack/core 1.7.3 → 2.0.0-alpha.1

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 (215) hide show
  1. package/dist/ChunkGraph.d.ts +1 -1
  2. package/dist/Compilation.d.ts +27 -27
  3. package/dist/Compiler.d.ts +20 -17
  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 +2 -2
  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/lightningcss/index.d.ts +11 -14
  25. package/dist/builtin-loader/lightningcss/target.d.ts +4 -0
  26. package/dist/builtin-loader/swc/index.d.ts +5 -5
  27. package/dist/builtin-loader/swc/types.d.ts +4 -6
  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 +3 -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 +7 -11
  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 +4 -8
  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 +6 -10
  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 +6 -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 +1 -6
  115. package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -9
  116. package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
  117. package/dist/builtin-plugin/index.d.ts +85 -84
  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/builtin-plugin/rsc/Coordinator.d.ts +8 -0
  121. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +13 -0
  122. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +14 -0
  123. package/dist/builtin-plugin/rsc/index.d.ts +24 -0
  124. package/dist/config/adapter.d.ts +4 -4
  125. package/dist/config/adapterRuleUse.d.ts +10 -9
  126. package/dist/config/browserslistTargetHandler.d.ts +1 -1
  127. package/dist/config/defaults.d.ts +5 -3
  128. package/dist/config/devServer.d.ts +3 -3
  129. package/dist/config/index.d.ts +5 -5
  130. package/dist/config/normalization.d.ts +8 -36
  131. package/dist/config/target.d.ts +14 -11
  132. package/dist/config/types.d.ts +94 -179
  133. package/dist/container/ContainerPlugin.d.ts +3 -3
  134. package/dist/container/ContainerReferencePlugin.d.ts +3 -3
  135. package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -2
  136. package/dist/container/ModuleFederationPlugin.d.ts +5 -3
  137. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  138. package/dist/container/ModuleFederationRuntimePlugin.d.ts +7 -3
  139. package/dist/container/index.d.ts +4 -4
  140. package/dist/cssExtractHmr.js +2 -27
  141. package/dist/cssExtractLoader.js +18 -60
  142. package/dist/exports.d.ts +70 -82
  143. package/dist/index.d.ts +3 -3
  144. package/dist/index.js +11788 -11714
  145. package/dist/lib/AbstractMethodError.d.ts +1 -1
  146. package/dist/lib/Cache.d.ts +1 -1
  147. package/dist/lib/CacheFacade.d.ts +3 -3
  148. package/dist/lib/DllPlugin.d.ts +2 -2
  149. package/dist/lib/DllReferencePlugin.d.ts +3 -3
  150. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  151. package/dist/lib/EnvironmentPlugin.d.ts +1 -1
  152. package/dist/lib/HookWebpackError.d.ts +1 -1
  153. package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
  154. package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
  155. package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
  156. package/dist/lib/WebpackError.d.ts +2 -2
  157. package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
  158. package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
  159. package/dist/lib/cache/mergeEtags.d.ts +1 -1
  160. package/dist/loader-runner/ModuleError.d.ts +1 -1
  161. package/dist/loader-runner/index.d.ts +1 -1
  162. package/dist/loader-runner/loadLoader.d.ts +2 -2
  163. package/dist/loader-runner/utils.d.ts +3 -3
  164. package/dist/loader-runner/worker.d.ts +1 -1
  165. package/dist/logging/createConsoleLogger.d.ts +2 -2
  166. package/dist/moduleFederationDefaultRuntime.js +1 -1
  167. package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
  168. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  169. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  170. package/dist/node/nodeConsole.d.ts +1 -1
  171. package/dist/rslib-runtime.js +29 -0
  172. package/dist/rspack.d.ts +5 -5
  173. package/dist/rspackOptionsApply.d.ts +1 -1
  174. package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
  175. package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
  176. package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
  177. package/dist/sharing/SharePlugin.d.ts +1 -1
  178. package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
  179. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
  180. package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
  181. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
  182. package/dist/stats/StatsFactory.d.ts +2 -2
  183. package/dist/stats/StatsPrinter.d.ts +1 -1
  184. package/dist/stats/statsFactoryUtils.d.ts +3 -6
  185. package/dist/taps/compilation.d.ts +1 -1
  186. package/dist/taps/compiler.d.ts +1 -1
  187. package/dist/taps/contextModuleFactory.d.ts +1 -1
  188. package/dist/taps/index.d.ts +6 -6
  189. package/dist/taps/javascriptModules.d.ts +1 -1
  190. package/dist/taps/normalModuleFactory.d.ts +1 -1
  191. package/dist/taps/types.d.ts +1 -1
  192. package/dist/trace/traceHookPlugin.d.ts +1 -1
  193. package/dist/util/createHash.d.ts +1 -1
  194. package/dist/util/fs.d.ts +1 -1
  195. package/dist/util/hash/md4.d.ts +1 -1
  196. package/dist/util/hash/xxhash64.d.ts +1 -1
  197. package/dist/util/index.d.ts +1 -1
  198. package/dist/util/targetsVersion.d.ts +2 -0
  199. package/dist/util/validateConfig.d.ts +1 -1
  200. package/dist/worker.js +846 -918
  201. package/hot/dev-server.js +12 -9
  202. package/hot/emitter.js +5 -1
  203. package/hot/lazy-compilation-node.js +4 -1
  204. package/hot/lazy-compilation-web.js +2 -3
  205. package/hot/log-apply-result.js +8 -5
  206. package/hot/log.js +17 -7
  207. package/hot/only-dev-server.js +13 -10
  208. package/hot/poll.js +11 -8
  209. package/hot/signal.js +13 -9
  210. package/package.json +10 -6
  211. package/compiled/browserslist-load-config/index.d.ts +0 -21
  212. package/compiled/browserslist-load-config/index.js +0 -252
  213. package/compiled/browserslist-load-config/license +0 -21
  214. package/compiled/browserslist-load-config/package.json +0 -1
  215. package/dist/builtin-loader/index.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import type { RuntimeSpec } from './util/runtime';
1
+ import type { RuntimeSpec } from './util/runtime.js';
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';
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';
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';
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").CacheFacade;
240
+ getCache(name: string): import("./lib/CacheFacade.js").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';
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';
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 { ExtractedTargetProperties, 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';
31
31
  export interface AssetEmittedInfo {
32
32
  content: Buffer;
33
33
  source: Source;
@@ -79,6 +79,7 @@ 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;
82
83
  declare class Compiler {
83
84
  #private;
84
85
  hooks: CompilerHooks;
@@ -129,6 +130,8 @@ declare class Compiler {
129
130
  get _lastCompilation(): Compilation | undefined;
130
131
  get platform(): PlatformTargetProperties;
131
132
  set platform(platform: PlatformTargetProperties);
133
+ get target(): ExtractedTargetProperties;
134
+ set target(target: ExtractedTargetProperties);
132
135
  /**
133
136
  * Note: This is not a webpack public API, maybe removed in future.
134
137
  * @internal
@@ -1,5 +1,5 @@
1
1
  import * as liteTapable from '@rspack/lite-tapable';
2
- import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module';
2
+ import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module.js';
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';
2
+ import type { RspackError } from './RspackError.js';
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';
1
+ import type { Compiler } from './Compiler.js';
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';
2
+ import type { RuntimeSpec } from './util/runtime.js';
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';
2
+ import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from './util/fs.js';
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';
4
- import './BuildInfo';
3
+ import type { ResourceData } from './Resolver.js';
4
+ import './BuildInfo.js';
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';
3
- import type { Module } from './Module';
2
+ import { ExportsInfo } from './ExportsInfo.js';
3
+ import type { Module } from './Module.js';
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 '.';
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';
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';
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(".").RspackOptionsNormalized[] & MultiCompilerOptions;
45
+ get options(): import("./config/index.js").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").Logger;
55
+ getInfrastructureLogger(name: string): import("./logging/Logger.js").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';
11
- import type { Stats } from './Stats';
12
- import type { StatsCompilation } from './stats/statsFactoryUtils';
10
+ import type { MultiStatsOptions, StatsPresets } from './config/index.js';
11
+ import type { Stats } from './Stats.js';
12
+ import type { StatsCompilation } from './stats/statsFactoryUtils.js';
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';
12
- import type { Watching } from './Watching';
11
+ import type { MultiCompiler } from './MultiCompiler.js';
12
+ import type { Watching } from './Watching.js';
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';
3
+ import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from './util/fs.js';
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';
3
- import type { LoaderContext } from './config';
4
- import type { Module } from './Module';
2
+ import type { Compilation } from './Compilation.js';
3
+ import type { LoaderContext } from './config/index.js';
4
+ import type { Module } from './Module.js';
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';
4
- import type { ResolveOptionsWithDependencyType, ResolverFactory } from './ResolverFactory';
3
+ import type { ResolveData, ResourceDataWithData } from './Module.js';
4
+ import type { ResolveOptionsWithDependencyType, ResolverFactory } from './ResolverFactory.js';
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").ResolverWithOptions;
22
+ getResolver(type: string, resolveOptions: ResolveOptionsWithDependencyType): import("./ResolverFactory.js").ResolverWithOptions;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import type binding from '@rspack/binding';
2
- import type { ResolveCallback } from './config/adapterRuleUse';
2
+ import type { ResolveCallback } from './config/adapterRuleUse.js';
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';
3
- import { Resolver } from './Resolver';
2
+ import { type Resolve } from './config/index.js';
3
+ import { Resolver } from './Resolver.js';
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';
11
+ import type { RspackOptionsNormalized } from './config/index.js';
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 {
@@ -352,5 +352,5 @@ export declare enum RuntimeVariable {
352
352
  }
353
353
  export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
354
354
  export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
355
- declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "exports" | "require" | "global" | "system" | "requireScope" | "thisAsExports" | "returnExportsFromRuntime" | "moduleLoaded" | "entryModuleId" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "definePropertyGetters" | "makeNamespaceObject" | "createFakeNamespaceObject" | "compatGetDefaultExport" | "harmonyModuleDecorator" | "nodeModuleDecorator" | "getFullHash" | "wasmInstances" | "instantiateWasm" | "uncaughtErrorHandler" | "scriptNonce" | "loadScript" | "createScript" | "createScriptUrl" | "getTrustedTypesPolicy" | "hasFetchPriority" | "runtimeId" | "getChunkScriptFilename" | "getChunkCssFilename" | "rspackVersion" | "hasCssModules" | "rspackUniqueId" | "getChunkUpdateScriptFilename" | "getChunkUpdateCssFilename" | "startup" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "chunkCallback" | "startupEntrypoint" | "startupChunkDependencies" | "onChunksLoaded" | "externalInstallChunk" | "interceptModuleExecution" | "shareScopeMap" | "initializeSharing" | "currentRemoteGetScope" | "getUpdateManifestFilename" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrModuleData" | "hmrInvalidateModuleHandlers" | "hmrRuntimeStatePrefix" | "amdDefine" | "amdOptions" | "hasOwnProperty" | "systemContext" | "baseURI" | "relativeUrl" | "asyncModule" | "asyncModuleExportSymbol" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol", string>;
355
+ declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "require" | "global" | "system" | "exports" | "requireScope" | "thisAsExports" | "returnExportsFromRuntime" | "moduleLoaded" | "entryModuleId" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "definePropertyGetters" | "makeNamespaceObject" | "createFakeNamespaceObject" | "compatGetDefaultExport" | "harmonyModuleDecorator" | "nodeModuleDecorator" | "getFullHash" | "wasmInstances" | "instantiateWasm" | "uncaughtErrorHandler" | "scriptNonce" | "loadScript" | "createScript" | "createScriptUrl" | "getTrustedTypesPolicy" | "hasFetchPriority" | "runtimeId" | "getChunkScriptFilename" | "getChunkCssFilename" | "rspackVersion" | "hasCssModules" | "rspackUniqueId" | "getChunkUpdateScriptFilename" | "getChunkUpdateCssFilename" | "startup" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "chunkCallback" | "startupEntrypoint" | "startupChunkDependencies" | "onChunksLoaded" | "externalInstallChunk" | "interceptModuleExecution" | "shareScopeMap" | "initializeSharing" | "currentRemoteGetScope" | "getUpdateManifestFilename" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrModuleData" | "hmrInvalidateModuleHandlers" | "hmrRuntimeStatePrefix" | "amdDefine" | "amdOptions" | "hasOwnProperty" | "systemContext" | "baseURI" | "relativeUrl" | "asyncModule" | "asyncModuleExportSymbol" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol", string>;
356
356
  export { DefaultRuntimeGlobals as RuntimeGlobals };
@@ -1,7 +1,7 @@
1
1
  import type { JsAddingRuntimeModule, JsRuntimeModule, JsSource } from '@rspack/binding';
2
- import type { Chunk } from './Chunk';
3
- import type { ChunkGraph } from './ChunkGraph';
4
- import type { Compilation } from './Compilation';
2
+ import type { Chunk } from './Chunk.js';
3
+ import type { ChunkGraph } from './ChunkGraph.js';
4
+ import type { Compilation } from './Compilation.js';
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';
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';
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';
5
5
  export declare class Stats {
6
6
  #private;
7
7
  constructor(compilation: Compilation);
@@ -1,4 +1,4 @@
1
- import type { Compiler } from './Compiler';
1
+ import type { Compiler } from './Compiler.js';
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 '.';
12
- import { Stats } from '.';
13
- import type { WatchOptions } from './config';
14
- import type { Watcher } from './util/fs';
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';
15
15
  export declare class Watching {
16
16
  #private;
17
17
  watcher?: Watcher;
@@ -1,3 +1,4 @@
1
+ import type { GetLoaderOptions } from '../../config/adapterRuleUse.js';
1
2
  /**
2
3
  MIT License
3
4
 
@@ -49,15 +50,15 @@ export declare enum Features {
49
50
  Color = 64512
50
51
  }
51
52
  export interface Targets {
52
- android?: number;
53
- chrome?: number;
54
- edge?: number;
55
- firefox?: number;
56
- ie?: number;
57
- ios_saf?: number;
58
- opera?: number;
59
- safari?: number;
60
- samsung?: number;
53
+ android?: string;
54
+ chrome?: string;
55
+ edge?: string;
56
+ firefox?: string;
57
+ ie?: string;
58
+ ios_saf?: string;
59
+ opera?: string;
60
+ safari?: string;
61
+ samsung?: string;
61
62
  }
62
63
  export interface Drafts {
63
64
  /** Whether to enable @custom-media rules. */
@@ -105,13 +106,9 @@ export type LoaderOptions = {
105
106
  targets?: Targets | string[] | string;
106
107
  include?: FeatureOptions;
107
108
  exclude?: FeatureOptions;
108
- /**
109
- * @deprecated Use `drafts` instead.
110
- * This will be removed in the next major version.
111
- */
112
- draft?: Drafts;
113
109
  drafts?: Drafts;
114
110
  nonStandard?: NonStandard;
115
111
  pseudoClasses?: PseudoClasses;
116
112
  unusedSymbols?: string[];
117
113
  };
114
+ export declare const getLightningcssLoaderOptions: GetLoaderOptions;
@@ -0,0 +1,4 @@
1
+ import type binding from '@rspack/binding';
2
+ import type { Targets } from './index.js';
3
+ export declare function encodeTargets(targets: Targets): binding.RawLightningCssBrowsers;
4
+ export declare function defaultTargetsFromRspackTargets(targets: Record<string, string>): binding.RawLightningCssBrowsers;
@@ -1,5 +1,5 @@
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
+ import type { GetLoaderOptions } from '../../config/adapterRuleUse.js';
2
+ export type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo.js';
3
+ export type { PluginImportOptions } from './pluginImport.js';
4
+ export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './types.js';
5
+ export declare const getSwcLoaderOptions: GetLoaderOptions;
@@ -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';
3
- import type { PluginImportOptions } from './pluginImport';
2
+ import type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo.js';
3
+ import type { PluginImportOptions } from './pluginImport.js';
4
4
  export type SwcLoaderEnvConfig = EnvConfig;
5
5
  export type SwcLoaderJscConfig = JscConfig;
6
6
  export type SwcLoaderModuleConfig = ModuleConfig;
@@ -22,11 +22,9 @@ export type SwcLoaderOptions = Config & {
22
22
  rspackExperiments?: {
23
23
  import?: PluginImportOptions;
24
24
  /**
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.
25
+ * Enable React Server Components support.
28
26
  */
29
- collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
27
+ reactServerComponents?: boolean;
30
28
  };
31
29
  };
32
30
  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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
37
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
38
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
11
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
12
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
8
8
  };
9
9
  };
@@ -1,8 +1,8 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import type { Compilation } from '../Compilation';
3
- import type { Compiler } from '../Compiler';
4
- import type { Module } from '../Module';
5
- import { RspackBuiltinPlugin } from './base';
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';
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("..").CompilerHooks | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
- apply(compiler: import("..").Compiler): void;
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;
8
8
  };
9
9
  };