@rspack-canary/browser 1.4.12-canary-c9012b88-20250801081627 → 1.4.12-canary-d2f8a578-20250801090118

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 (246) hide show
  1. package/dist/BuildInfo.d.ts +17 -0
  2. package/dist/Chunk.d.ts +16 -0
  3. package/dist/ChunkGraph.d.ts +9 -0
  4. package/dist/Chunks.d.ts +12 -0
  5. package/dist/CodeGenerationResults.d.ts +1 -0
  6. package/dist/Compilation.d.ts +420 -0
  7. package/dist/Compiler.d.ts +192 -0
  8. package/dist/ConcatenatedModule.d.ts +1 -0
  9. package/dist/ContextModule.d.ts +1 -0
  10. package/dist/ContextModuleFactory.d.ts +13 -0
  11. package/dist/Diagnostics.d.ts +7 -0
  12. package/dist/Entrypoint.d.ts +2 -0
  13. package/dist/ErrorHelpers.d.ts +3 -0
  14. package/dist/ExecuteModulePlugin.d.ts +4 -0
  15. package/dist/ExportsInfo.d.ts +20 -0
  16. package/dist/ExternalModule.d.ts +1 -0
  17. package/dist/FileSystem.d.ts +54 -0
  18. package/dist/FileSystemInfo.d.ts +5 -0
  19. package/dist/Module.d.ts +53 -0
  20. package/dist/ModuleGraph.d.ts +19 -0
  21. package/dist/ModuleTypeConstants.d.ts +8 -0
  22. package/dist/MultiCompiler.d.ts +78 -0
  23. package/dist/MultiStats.d.ts +22 -0
  24. package/dist/MultiWatching.d.ts +27 -0
  25. package/dist/NativeWatchFileSystem.d.ts +17 -0
  26. package/dist/NormalModule.d.ts +15 -0
  27. package/dist/NormalModuleFactory.d.ts +23 -0
  28. package/dist/Resolver.d.ts +24 -0
  29. package/dist/ResolverFactory.d.ts +14 -0
  30. package/dist/RspackError.d.ts +9 -0
  31. package/dist/RuleSetCompiler.d.ts +9 -0
  32. package/dist/RuntimeGlobals.d.ts +325 -0
  33. package/dist/RuntimeModule.d.ts +32 -0
  34. package/dist/Stats.d.ts +17 -0
  35. package/dist/Template.d.ts +77 -0
  36. package/dist/Watching.d.ts +47 -0
  37. package/dist/browser/buffer.d.ts +1 -0
  38. package/dist/browser/fs.d.ts +12 -0
  39. package/dist/browser/index.d.ts +5 -0
  40. package/dist/browser/service.d.ts +3 -0
  41. package/dist/builtin-loader/index.d.ts +1 -0
  42. package/dist/builtin-loader/lightningcss/index.d.ts +117 -0
  43. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +21 -0
  44. package/dist/builtin-loader/swc/index.d.ts +5 -0
  45. package/dist/builtin-loader/swc/pluginImport.d.ts +33 -0
  46. package/dist/builtin-loader/swc/types.d.ts +83 -0
  47. package/dist/builtin-plugin/APIPlugin.d.ts +9 -0
  48. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +9 -0
  49. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +9 -0
  50. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +9 -0
  51. package/dist/builtin-plugin/BannerPlugin.d.ts +40 -0
  52. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +14 -0
  53. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +9 -0
  54. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +59 -0
  55. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +9 -0
  56. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +9 -0
  57. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +14 -0
  58. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +21 -0
  59. package/dist/builtin-plugin/CssModulesPlugin.d.ts +9 -0
  60. package/dist/builtin-plugin/DataUriPlugin.d.ts +9 -0
  61. package/dist/builtin-plugin/DefinePlugin.d.ts +16 -0
  62. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +8 -0
  63. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +8 -0
  64. package/dist/builtin-plugin/DllEntryPlugin.d.ts +12 -0
  65. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
  66. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +12 -0
  67. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +9 -0
  68. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +25 -0
  69. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +11 -0
  70. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +9 -0
  71. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +9 -0
  72. package/dist/builtin-plugin/EntryPlugin.d.ts +32 -0
  73. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +11 -0
  74. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +10 -0
  75. package/dist/builtin-plugin/ExternalsPlugin.d.ts +11 -0
  76. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +9 -0
  77. package/dist/builtin-plugin/FileUriPlugin.d.ts +9 -0
  78. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +9 -0
  79. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +9 -0
  80. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +10 -0
  81. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +7 -0
  82. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +9 -0
  83. package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
  84. package/dist/builtin-plugin/IgnorePlugin.d.ts +19 -0
  85. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +9 -0
  86. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +15 -0
  87. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +10 -0
  88. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +9 -0
  89. package/dist/builtin-plugin/LibManifestPlugin.d.ts +17 -0
  90. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +32 -0
  91. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +14 -0
  92. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +10 -0
  93. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +9 -0
  94. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +9 -0
  95. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +8 -0
  96. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +9 -0
  97. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +9 -0
  98. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +9 -0
  99. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +8 -0
  100. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +8 -0
  101. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +9 -0
  102. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +9 -0
  103. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +10 -0
  104. package/dist/builtin-plugin/ProgressPlugin.d.ts +11 -0
  105. package/dist/builtin-plugin/ProvidePlugin.d.ts +10 -0
  106. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +9 -0
  107. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +9 -0
  108. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +9 -0
  109. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +49 -0
  110. package/dist/builtin-plugin/RslibPlugin.d.ts +11 -0
  111. package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
  112. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +11 -0
  113. package/dist/builtin-plugin/RuntimePlugin.d.ts +28 -0
  114. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +9 -0
  115. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +19 -0
  116. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +11 -0
  117. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +11 -0
  118. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +40 -0
  119. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +214 -0
  120. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +9 -0
  121. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +7 -0
  122. package/dist/builtin-plugin/WorkerPlugin.d.ts +13 -0
  123. package/dist/builtin-plugin/base.d.ts +45 -0
  124. package/dist/builtin-plugin/css-extract/index.d.ts +24 -0
  125. package/dist/builtin-plugin/css-extract/loader.d.ts +21 -0
  126. package/dist/builtin-plugin/css-extract/utils.d.ts +6 -0
  127. package/dist/builtin-plugin/html-plugin/hooks.d.ts +32 -0
  128. package/dist/builtin-plugin/html-plugin/index.d.ts +2 -0
  129. package/dist/builtin-plugin/html-plugin/options.d.ts +83 -0
  130. package/dist/builtin-plugin/html-plugin/plugin.d.ts +24 -0
  131. package/dist/builtin-plugin/html-plugin/taps.d.ts +2 -0
  132. package/dist/builtin-plugin/index.d.ts +80 -0
  133. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +24 -0
  134. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
  135. package/dist/config/adapter.d.ts +8 -0
  136. package/dist/config/adapterRuleUse.d.ts +333 -0
  137. package/dist/config/browserslistTargetHandler.d.ts +15 -0
  138. package/dist/config/defaults.d.ts +13 -0
  139. package/dist/config/devServer.d.ts +207 -0
  140. package/dist/config/index.d.ts +4 -0
  141. package/dist/config/normalization.d.ts +154 -0
  142. package/dist/config/target.d.ts +89 -0
  143. package/dist/config/types.d.ts +2282 -0
  144. package/dist/container/ContainerPlugin.d.ts +40 -0
  145. package/dist/container/ContainerReferencePlugin.d.ts +33 -0
  146. package/dist/container/ModuleFederationPlugin.d.ts +13 -0
  147. package/dist/container/ModuleFederationPluginV1.d.ts +22 -0
  148. package/dist/container/ModuleFederationRuntimePlugin.d.ts +12 -0
  149. package/dist/container/index.d.ts +4 -0
  150. package/dist/container/options.d.ts +3 -0
  151. package/dist/error/ConcurrentCompilationError.d.ts +14 -0
  152. package/dist/exports.d.ts +166 -0
  153. package/dist/index.d.ts +10 -0
  154. package/dist/index.mjs +57013 -0
  155. package/dist/index.mjs.LICENSE.txt +10 -0
  156. package/dist/lib/AbstractMethodError.d.ts +23 -0
  157. package/dist/lib/Cache.d.ts +65 -0
  158. package/dist/lib/CacheFacade.d.ts +139 -0
  159. package/dist/lib/DllPlugin.d.ts +42 -0
  160. package/dist/lib/DllReferencePlugin.d.ts +119 -0
  161. package/dist/lib/EntryOptionPlugin.d.ts +33 -0
  162. package/dist/lib/EnvironmentPlugin.d.ts +22 -0
  163. package/dist/lib/HookWebpackError.d.ts +40 -0
  164. package/dist/lib/IgnoreWarningsPlugin.d.ts +25 -0
  165. package/dist/lib/LoaderOptionsPlugin.d.ts +28 -0
  166. package/dist/lib/LoaderTargetPlugin.d.ts +24 -0
  167. package/dist/lib/ModuleFilenameHelpers.d.ts +53 -0
  168. package/dist/lib/NormalModuleReplacementPlugin.d.ts +29 -0
  169. package/dist/lib/WebpackError.d.ts +21 -0
  170. package/dist/lib/cache/MemoryCachePlugin.d.ts +5 -0
  171. package/dist/lib/cache/getLazyHashedEtag.d.ts +35 -0
  172. package/dist/lib/cache/mergeEtags.d.ts +17 -0
  173. package/dist/loader-runner/LoaderLoadingError.d.ts +13 -0
  174. package/dist/loader-runner/ModuleError.d.ts +7 -0
  175. package/dist/loader-runner/ModuleWarning.d.ts +7 -0
  176. package/dist/loader-runner/index.d.ts +34 -0
  177. package/dist/loader-runner/loadLoader.d.ts +12 -0
  178. package/dist/loader-runner/service.d.ts +71 -0
  179. package/dist/loader-runner/utils.d.ts +7 -0
  180. package/dist/loader-runner/worker.d.ts +14 -0
  181. package/dist/logging/Logger.d.ts +61 -0
  182. package/dist/logging/createConsoleLogger.d.ts +35 -0
  183. package/dist/logging/truncateArgs.d.ts +16 -0
  184. package/dist/node/NodeEnvironmentPlugin.d.ts +10 -0
  185. package/dist/node/NodeTemplatePlugin.d.ts +18 -0
  186. package/dist/node/NodeWatchFileSystem.d.ts +18 -0
  187. package/dist/node/nodeConsole.d.ts +15 -0
  188. package/dist/rspack.d.ts +16 -0
  189. package/dist/rspack.wasi-browser.js +101 -0
  190. package/dist/rspackOptionsApply.d.ts +4 -0
  191. package/dist/runtime/cssExtractHmr.d.ts +4 -0
  192. package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -0
  193. package/dist/schema/config.d.ts +995 -0
  194. package/dist/schema/loaders.d.ts +399 -0
  195. package/dist/schema/plugins.d.ts +166 -0
  196. package/dist/schema/utils.d.ts +3 -0
  197. package/dist/schema/validate.d.ts +9 -0
  198. package/dist/sharing/ConsumeSharedPlugin.d.ts +41 -0
  199. package/dist/sharing/ProvideSharedPlugin.d.ts +34 -0
  200. package/dist/sharing/SharePlugin.d.ts +51 -0
  201. package/dist/sharing/ShareRuntimePlugin.d.ts +9 -0
  202. package/dist/sharing/utils.d.ts +1 -0
  203. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +4 -0
  204. package/dist/stats/DefaultStatsPresetPlugin.d.ts +4 -0
  205. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +13 -0
  206. package/dist/stats/StatsFactory.d.ts +57 -0
  207. package/dist/stats/StatsPrinter.d.ts +57 -0
  208. package/dist/stats/statsFactoryUtils.d.ts +325 -0
  209. package/dist/swc.d.ts +7 -0
  210. package/dist/taps/compilation.d.ts +8 -0
  211. package/dist/taps/compiler.d.ts +2 -0
  212. package/dist/taps/contextModuleFactory.d.ts +2 -0
  213. package/dist/taps/index.d.ts +6 -0
  214. package/dist/taps/javascriptModules.d.ts +2 -0
  215. package/dist/taps/normalModuleFactory.d.ts +2 -0
  216. package/dist/taps/types.d.ts +11 -0
  217. package/dist/trace/index.d.ts +46 -0
  218. package/dist/trace/traceHookPlugin.d.ts +5 -0
  219. package/dist/util/ArrayQueue.d.ts +45 -0
  220. package/dist/util/AsyncTask.d.ts +7 -0
  221. package/dist/util/MergeCaller.d.ts +10 -0
  222. package/dist/util/SizeFormatHelpers.d.ts +10 -0
  223. package/dist/util/SplitChunkSize.d.ts +5 -0
  224. package/dist/util/assertNotNil.d.ts +1 -0
  225. package/dist/util/assetCondition.d.ts +2 -0
  226. package/dist/util/asyncLib.d.ts +54 -0
  227. package/dist/util/bindingVersionCheck.d.ts +5 -0
  228. package/dist/util/cleverMerge.d.ts +24 -0
  229. package/dist/util/comparators.d.ts +16 -0
  230. package/dist/util/createHash.d.ts +16 -0
  231. package/dist/util/createReadonlyMap.d.ts +1 -0
  232. package/dist/util/fake.d.ts +9 -0
  233. package/dist/util/fs.d.ts +352 -0
  234. package/dist/util/hash/index.d.ts +26 -0
  235. package/dist/util/hash/md4.d.ts +11 -0
  236. package/dist/util/hash/wasm-hash.d.ts +51 -0
  237. package/dist/util/hash/xxhash64.d.ts +11 -0
  238. package/dist/util/identifier.d.ts +31 -0
  239. package/dist/util/index.d.ts +11 -0
  240. package/dist/util/memoize.d.ts +2 -0
  241. package/dist/util/require.d.ts +3 -0
  242. package/dist/util/runtime.d.ts +2 -0
  243. package/dist/util/smartGrouping.d.ts +21 -0
  244. package/dist/util/source.d.ts +7 -0
  245. package/dist/wasi-worker-browser.mjs +34 -0
  246. package/package.json +3 -3
@@ -0,0 +1,11 @@
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import type { OptimizationSplitChunksOptions } from "../config";
4
+ import { RspackBuiltinPlugin } from "./base";
5
+ export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
6
+ private options;
7
+ name: BuiltinPluginName;
8
+ affectedHooks: "thisCompilation";
9
+ constructor(options: OptimizationSplitChunksOptions);
10
+ raw(compiler: Compiler): BuiltinPlugin;
11
+ }
@@ -0,0 +1,40 @@
1
+ import { type RawSubresourceIntegrityPluginOptions } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ export type SubresourceIntegrityHashFunction = "sha256" | "sha384" | "sha512";
4
+ export type SubresourceIntegrityPluginOptions = {
5
+ hashFuncNames?: [
6
+ SubresourceIntegrityHashFunction,
7
+ ...SubresourceIntegrityHashFunction[]
8
+ ];
9
+ htmlPlugin?: string | false;
10
+ enabled?: "auto" | boolean;
11
+ };
12
+ export type NativeSubresourceIntegrityPluginOptions = Omit<RawSubresourceIntegrityPluginOptions, "htmlPlugin"> & {
13
+ htmlPlugin: string | false;
14
+ };
15
+ /**
16
+ * Note: This is not a webpack public API, maybe removed in future.
17
+ * @internal
18
+ */
19
+ declare const NativeSubresourceIntegrityPlugin: {
20
+ new (options: NativeSubresourceIntegrityPluginOptions): {
21
+ name: string;
22
+ _args: [options: NativeSubresourceIntegrityPluginOptions];
23
+ 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;
24
+ raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
25
+ apply(compiler: Compiler): void;
26
+ };
27
+ };
28
+ export declare class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
29
+ private integrities;
30
+ private options;
31
+ private validateError;
32
+ constructor(options?: SubresourceIntegrityPluginOptions);
33
+ private isEnabled;
34
+ private getIntegrityChecksumForAsset;
35
+ private handleHwpPluginArgs;
36
+ private handleHwpBodyTags;
37
+ private processTag;
38
+ apply(compiler: Compiler): void;
39
+ }
40
+ export {};
@@ -0,0 +1,214 @@
1
+ import type { AssetConditions } from "../util/assetCondition";
2
+ type ExtractCommentsCondition = boolean | RegExp;
3
+ type ExtractCommentsBanner = string | boolean;
4
+ type ExtractCommentsObject = {
5
+ condition?: ExtractCommentsCondition | undefined;
6
+ banner?: ExtractCommentsBanner | undefined;
7
+ };
8
+ type ExtractCommentsOptions = ExtractCommentsCondition | ExtractCommentsObject;
9
+ export type SwcJsMinimizerRspackPluginOptions = {
10
+ test?: AssetConditions;
11
+ exclude?: AssetConditions;
12
+ include?: AssetConditions;
13
+ extractComments?: ExtractCommentsOptions | undefined;
14
+ minimizerOptions?: {
15
+ minify?: boolean;
16
+ ecma?: TerserEcmaVersion;
17
+ compress?: TerserCompressOptions | boolean;
18
+ mangle?: TerserMangleOptions | boolean;
19
+ format?: JsFormatOptions & ToSnakeCaseProperties<JsFormatOptions>;
20
+ module?: boolean;
21
+ };
22
+ };
23
+ /**
24
+ * @example ToSnakeCase<'indentLevel'> == 'indent_level'
25
+ */
26
+ type ToSnakeCase<T extends string> = T extends `${infer A}${infer B}` ? `${A extends Lowercase<A> ? A : `_${Lowercase<A>}`}${ToSnakeCase<B>}` : T;
27
+ /**
28
+ * @example ToSnakeCaseProperties\<{indentLevel: 3\}\> == {indent_level: 3\}
29
+ */
30
+ type ToSnakeCaseProperties<T> = {
31
+ [K in keyof T as K extends string ? ToSnakeCase<K> : K]: T[K];
32
+ };
33
+ export interface JsFormatOptions {
34
+ /**
35
+ * Currently noop.
36
+ * @default false
37
+ * @alias ascii_only
38
+ */
39
+ asciiOnly?: boolean;
40
+ /**
41
+ * Currently noop.
42
+ * @default false
43
+ */
44
+ beautify?: boolean;
45
+ /**
46
+ * Currently noop.
47
+ * @default false
48
+ */
49
+ braces?: boolean;
50
+ /**
51
+ * - `false`: removes all comments
52
+ * - `'some'`: preserves some comments
53
+ * - `'all'`: preserves all comments
54
+ * @default false
55
+ */
56
+ comments?: false | "some" | "all";
57
+ /**
58
+ * Currently noop.
59
+ * @default 5
60
+ */
61
+ ecma?: TerserEcmaVersion;
62
+ /**
63
+ * Currently noop.
64
+ * @alias indent_level
65
+ */
66
+ indentLevel?: number;
67
+ /**
68
+ * Currently noop.
69
+ * @alias indent_start
70
+ */
71
+ indentStart?: number;
72
+ inlineScript?: number;
73
+ /**
74
+ * Currently noop.
75
+ * @alias keep_numbers
76
+ */
77
+ keepNumbers?: number;
78
+ /**
79
+ * Currently noop.
80
+ * @alias keep_quoted_props
81
+ */
82
+ keepQuotedProps?: boolean;
83
+ /**
84
+ * Currently noop.
85
+ * @alias max_line_len
86
+ */
87
+ maxLineLen?: number | false;
88
+ /**
89
+ * When passed it must be a string and it will be prepended to the output literally.
90
+ * The source map will adjust for this text. Can be used to insert a comment containing licensing information.
91
+ */
92
+ preamble?: string;
93
+ /**
94
+ * Currently noop.
95
+ * @alias quote_keys
96
+ */
97
+ quoteKeys?: boolean;
98
+ /**
99
+ * Currently noop.
100
+ * @alias quote_style
101
+ */
102
+ quoteStyle?: boolean;
103
+ /**
104
+ * Currently noop.
105
+ * @alias preserve_annotations
106
+ */
107
+ preserveAnnotations?: boolean;
108
+ /**
109
+ * Currently noop.
110
+ */
111
+ safari10?: boolean;
112
+ /**
113
+ * Currently noop.
114
+ */
115
+ semicolons?: boolean;
116
+ /**
117
+ * Currently noop.
118
+ */
119
+ shebang?: boolean;
120
+ /**
121
+ * Currently noop.
122
+ */
123
+ webkit?: boolean;
124
+ /**
125
+ * Currently noop.
126
+ * @alias wrap_iife
127
+ */
128
+ wrapIife?: boolean;
129
+ /**
130
+ * Currently noop.
131
+ * @alias wrap_func_args
132
+ */
133
+ wrapFuncArgs?: boolean;
134
+ }
135
+ export type TerserEcmaVersion = 5 | 2015 | 2016 | string | number;
136
+ export interface TerserCompressOptions {
137
+ arguments?: boolean;
138
+ arrows?: boolean;
139
+ booleans?: boolean;
140
+ booleans_as_integers?: boolean;
141
+ collapse_vars?: boolean;
142
+ comparisons?: boolean;
143
+ computed_props?: boolean;
144
+ conditionals?: boolean;
145
+ dead_code?: boolean;
146
+ defaults?: boolean;
147
+ directives?: boolean;
148
+ drop_console?: boolean;
149
+ drop_debugger?: boolean;
150
+ ecma?: TerserEcmaVersion;
151
+ evaluate?: boolean;
152
+ expression?: boolean;
153
+ global_defs?: any;
154
+ hoist_funs?: boolean;
155
+ hoist_props?: boolean;
156
+ hoist_vars?: boolean;
157
+ ie8?: boolean;
158
+ if_return?: boolean;
159
+ inline?: 0 | 1 | 2 | 3;
160
+ join_vars?: boolean;
161
+ keep_classnames?: boolean;
162
+ keep_fargs?: boolean;
163
+ keep_fnames?: boolean;
164
+ keep_infinity?: boolean;
165
+ loops?: boolean;
166
+ negate_iife?: boolean;
167
+ passes?: number;
168
+ properties?: boolean;
169
+ pure_getters?: any;
170
+ pure_funcs?: string[];
171
+ reduce_funcs?: boolean;
172
+ reduce_vars?: boolean;
173
+ sequences?: any;
174
+ side_effects?: boolean;
175
+ switches?: boolean;
176
+ top_retain?: any;
177
+ toplevel?: any;
178
+ typeofs?: boolean;
179
+ unsafe?: boolean;
180
+ unsafe_passes?: boolean;
181
+ unsafe_arrows?: boolean;
182
+ unsafe_comps?: boolean;
183
+ unsafe_function?: boolean;
184
+ unsafe_math?: boolean;
185
+ unsafe_symbols?: boolean;
186
+ unsafe_methods?: boolean;
187
+ unsafe_proto?: boolean;
188
+ unsafe_regexp?: boolean;
189
+ unsafe_undefined?: boolean;
190
+ unused?: boolean;
191
+ const_to_let?: boolean;
192
+ module?: boolean;
193
+ }
194
+ export interface TerserMangleOptions {
195
+ props?: TerserManglePropertiesOptions;
196
+ toplevel?: boolean;
197
+ keep_classnames?: boolean;
198
+ keep_fnames?: boolean;
199
+ keep_private_props?: boolean;
200
+ ie8?: boolean;
201
+ safari10?: boolean;
202
+ reserved?: string[];
203
+ }
204
+ export type TerserManglePropertiesOptions = {};
205
+ export declare const SwcJsMinimizerRspackPlugin: {
206
+ new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
207
+ name: string;
208
+ _args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
209
+ 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;
210
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
211
+ apply(compiler: import("..").Compiler): void;
212
+ };
213
+ };
214
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const WarnCaseSensitiveModulesPlugin: {
2
+ new (): {
3
+ name: string;
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;
6
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("..").Compiler): void;
8
+ };
9
+ };
@@ -0,0 +1,7 @@
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import { RspackBuiltinPlugin } from "./base";
4
+ export declare class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
5
+ name: BuiltinPluginName;
6
+ raw(compiler: Compiler): BuiltinPlugin | undefined;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import type { ChunkLoading, OutputModule, WasmLoading, WorkerPublicPath } from "../config";
4
+ import { RspackBuiltinPlugin } from "./base";
5
+ export declare class WorkerPlugin extends RspackBuiltinPlugin {
6
+ private chunkLoading;
7
+ private wasmLoading;
8
+ private module;
9
+ private workerPublicPath;
10
+ name: BuiltinPluginName;
11
+ constructor(chunkLoading: ChunkLoading, wasmLoading: WasmLoading, module: OutputModule, workerPublicPath: WorkerPublicPath);
12
+ raw(compiler: Compiler): BuiltinPlugin;
13
+ }
@@ -0,0 +1,45 @@
1
+ import binding from "@rspack/binding";
2
+ import type { Compiler, RspackPluginInstance } from "..";
3
+ type AffectedHooks = keyof Compiler["hooks"];
4
+ export declare function canInherentFromParent(affectedHooks?: AffectedHooks): boolean;
5
+ export declare abstract class RspackBuiltinPlugin implements RspackPluginInstance {
6
+ abstract raw(compiler: Compiler): binding.BuiltinPlugin | undefined;
7
+ abstract name: binding.BuiltinPluginName | CustomPluginName;
8
+ affectedHooks?: AffectedHooks;
9
+ apply(compiler: Compiler): void;
10
+ }
11
+ export declare function createBuiltinPlugin<R>(name: binding.BuiltinPluginName | CustomPluginName, options: R): binding.BuiltinPlugin;
12
+ type CustomPluginName = string;
13
+ export declare function create<T extends any[], R>(name: binding.BuiltinPluginName | CustomPluginName, resolve: (this: Compiler, ...args: T) => R, affectedHooks?: AffectedHooks): {
14
+ new (...args: T): {
15
+ name: string;
16
+ _args: T;
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;
18
+ raw(compiler: Compiler): binding.BuiltinPlugin;
19
+ apply(compiler: Compiler): void;
20
+ };
21
+ };
22
+ /**
23
+ * Create a wrapper class for builtin plugin.
24
+ *
25
+ * @example
26
+ * ```js
27
+ * const MyPlugin = createNativePlugin("MyPlugin", (options) => {
28
+ * return options;
29
+ * });
30
+ *
31
+ * new MyPlugin({
32
+ * foo: "bar"
33
+ * }).apply(compiler);
34
+ * ```
35
+ */
36
+ export declare function createNativePlugin<T extends any[], R>(name: CustomPluginName, resolve: (this: Compiler, ...args: T) => R, affectedHooks?: AffectedHooks): {
37
+ new (...args: T): {
38
+ name: string;
39
+ _args: T;
40
+ 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;
41
+ raw(compiler: Compiler): binding.BuiltinPlugin;
42
+ apply(compiler: Compiler): void;
43
+ };
44
+ };
45
+ export {};
@@ -0,0 +1,24 @@
1
+ import { type RawCssExtractPluginOption } from "@rspack/binding";
2
+ import type { Compiler } from "../..";
3
+ export * from "./loader";
4
+ export type { CssExtractRspackLoaderOptions } from "./loader";
5
+ export interface CssExtractRspackPluginOptions {
6
+ filename?: RawCssExtractPluginOption["filename"];
7
+ chunkFilename?: RawCssExtractPluginOption["chunkFilename"];
8
+ ignoreOrder?: boolean;
9
+ insert?: string | ((linkTag: HTMLLinkElement) => void);
10
+ attributes?: Record<string, string>;
11
+ linkType?: string | "text/css" | false;
12
+ runtime?: boolean;
13
+ pathinfo?: boolean;
14
+ enforceRelative?: boolean;
15
+ }
16
+ export declare class CssExtractRspackPlugin {
17
+ static pluginName: string;
18
+ static loader: string;
19
+ options: CssExtractRspackPluginOptions;
20
+ constructor(options?: CssExtractRspackPluginOptions);
21
+ apply(compiler: Compiler): void;
22
+ normalizeOptions(options: CssExtractRspackPluginOptions): RawCssExtractPluginOption;
23
+ }
24
+ export default CssExtractRspackPlugin;
@@ -0,0 +1,21 @@
1
+ import type { LoaderContext, LoaderDefinition } from "../..";
2
+ export declare const BASE_URI = "webpack://";
3
+ export declare const MODULE_TYPE = "css/mini-extract";
4
+ export declare const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
5
+ export declare const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
6
+ export declare const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
7
+ export interface CssExtractRspackLoaderOptions {
8
+ publicPath?: string | ((resourcePath: string, context: string) => string);
9
+ emit?: boolean;
10
+ esModule?: boolean;
11
+ layer?: string;
12
+ defaultExport?: boolean;
13
+ }
14
+ export declare function hotLoader(content: string, context: {
15
+ loaderContext: LoaderContext;
16
+ options?: CssExtractRspackLoaderOptions;
17
+ locals?: Record<string, string>;
18
+ }): string;
19
+ declare const loader: LoaderDefinition;
20
+ export declare const pitch: LoaderDefinition["pitch"];
21
+ export default loader;
@@ -0,0 +1,6 @@
1
+ import type { LoaderContext } from "../..";
2
+ export declare function isAbsolutePath(str: string): boolean;
3
+ export declare const PLUGIN_NAME = "css-extract-rspack-plugin";
4
+ export declare function isRelativePath(str: string): boolean;
5
+ export declare function stringifyRequest(loaderContext: LoaderContext, request: string): string;
6
+ export declare function stringifyLocal(value: any): any;
@@ -0,0 +1,32 @@
1
+ import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from "@rspack/binding";
2
+ import * as liteTapable from "@rspack/lite-tapable";
3
+ import { type Compilation } from "../../Compilation";
4
+ import type { HtmlRspackPluginOptions } from "./options";
5
+ type ExtraPluginHookData = {
6
+ plugin: {
7
+ options: HtmlRspackPluginOptions;
8
+ };
9
+ };
10
+ export type HtmlRspackPluginHooks = {
11
+ beforeAssetTagGeneration: liteTapable.AsyncSeriesWaterfallHook<[
12
+ JsBeforeAssetTagGenerationData & ExtraPluginHookData
13
+ ]>;
14
+ alterAssetTags: liteTapable.AsyncSeriesWaterfallHook<[
15
+ JsAlterAssetTagsData & ExtraPluginHookData
16
+ ]>;
17
+ alterAssetTagGroups: liteTapable.AsyncSeriesWaterfallHook<[
18
+ JsAlterAssetTagGroupsData & ExtraPluginHookData
19
+ ]>;
20
+ afterTemplateExecution: liteTapable.AsyncSeriesWaterfallHook<[
21
+ JsAfterTemplateExecutionData & ExtraPluginHookData
22
+ ]>;
23
+ beforeEmit: liteTapable.AsyncSeriesWaterfallHook<[
24
+ JsBeforeEmitData & ExtraPluginHookData
25
+ ]>;
26
+ afterEmit: liteTapable.AsyncSeriesWaterfallHook<[
27
+ JsAfterEmitData & ExtraPluginHookData
28
+ ]>;
29
+ };
30
+ export declare const getPluginHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
31
+ export declare const cleanPluginHooks: (compilation: Compilation) => void;
32
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./options";
2
+ export * from "./plugin";
@@ -0,0 +1,83 @@
1
+ import { Compilation } from "../../Compilation";
2
+ export type TemplateRenderFunction = (params: Record<string, any>) => string | Promise<string>;
3
+ export type TemplateParamFunction = (params: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>;
4
+ export type HtmlRspackPluginOptions = {
5
+ /** The title to use for the generated HTML document. */
6
+ title?: string;
7
+ /**
8
+ * The file to write the HTML to. You can specify a subdirectory here too (e.g.: `"pages/index.html"`).
9
+ * @default "index.html"
10
+ */
11
+ filename?: string | ((entry: string) => string);
12
+ /** The template file path. */
13
+ template?: string;
14
+ /**
15
+ * The template file content, priority is greater than `template` option.
16
+ *
17
+ * When using a function, pass in the template parameters and use the returned string as the template content.
18
+ */
19
+ templateContent?: string | TemplateRenderFunction;
20
+ /**
21
+ * Allows to overwrite the parameters used in the template.
22
+ *
23
+ * When using a function, pass in the original template parameters and use the returned object as the final template parameters.
24
+ */
25
+ templateParameters?: Record<string, string> | boolean | TemplateParamFunction;
26
+ /**
27
+ * The script and link tag inject position in template. Use `false` to not inject.
28
+ * If not specified, it will be automatically determined based on `scriptLoading` value.
29
+ * @default true
30
+ */
31
+ inject?: boolean | "head" | "body";
32
+ /** The public path used for script and link tags. */
33
+ publicPath?: string;
34
+ /** Inject a [`base`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) tag. */
35
+ base?: string | {
36
+ href?: string;
37
+ target?: "_self" | "_blank" | "_parent" | "_top";
38
+ };
39
+ /**
40
+ * Modern browsers support non-blocking JavaScript loading ([`defer` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#defer)) to improve the page startup performance.
41
+ *
42
+ * Setting this option to `'module'` adds attribute `type="module"` to the `script`. This also implies `defer` attribute on the `script`, since modules are automatically deferred.
43
+ * @default "defer"
44
+ * */
45
+ scriptLoading?: "blocking" | "defer" | "module" | "systemjs-module";
46
+ /** Allows you to add only some chunks. */
47
+ chunks?: string[];
48
+ /** Allows you to skip some chunks. */
49
+ excludeChunks?: string[];
50
+ /**
51
+ * Allows to control how chunks should be sorted before they are included to the HTML.
52
+ * @default "auto"
53
+ */
54
+ chunksSortMode?: "auto" | "manual";
55
+ /**
56
+ * Configure the SRI hash algorithm, which is disabled by default.
57
+ * @deprecated Use `experiments.SubresourceIntegrityPlugin` instead.
58
+ */
59
+ sri?: "sha256" | "sha384" | "sha512";
60
+ /**
61
+ * Controls whether to minify the output, disabled by default.
62
+ */
63
+ minify?: boolean;
64
+ /** Adds the given favicon path to the output HTML. */
65
+ favicon?: string;
66
+ /**
67
+ * Allows to inject meta-tags.
68
+ * @default {}
69
+ */
70
+ meta?: Record<string, string | Record<string, string>>;
71
+ /**
72
+ * If `true` then append a unique Rspack compilation hash to all included scripts and CSS files. This is useful for cache busting.
73
+ */
74
+ hash?: boolean;
75
+ /**
76
+ * Any other options will be passed by hooks.
77
+ */
78
+ [key: string]: any;
79
+ };
80
+ export declare function validateHtmlPluginOptions(options: HtmlRspackPluginOptions): string | null;
81
+ export declare const getPluginOptions: (compilation: Compilation, uid: number) => any;
82
+ export declare const setPluginOptions: (compilation: Compilation, uid: number, options: HtmlRspackPluginOptions) => void;
83
+ export declare const cleanPluginOptions: (compilation: Compilation, uid: number) => void;
@@ -0,0 +1,24 @@
1
+ import { type JsHtmlPluginTag } from "@rspack/binding";
2
+ import type { Compilation } from "../../Compilation";
3
+ import type { Compiler } from "../../Compiler";
4
+ import { type HtmlRspackPluginHooks } from "./hooks";
5
+ import { type HtmlRspackPluginOptions } from "./options";
6
+ declare const HtmlRspackPluginImpl: {
7
+ new (c?: HtmlRspackPluginOptions | undefined): {
8
+ name: string;
9
+ _args: [c?: HtmlRspackPluginOptions | undefined];
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;
11
+ raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
12
+ apply(compiler: Compiler): void;
13
+ };
14
+ };
15
+ declare const HtmlRspackPlugin: typeof HtmlRspackPluginImpl & {
16
+ /**
17
+ * @deprecated Use `getCompilationHooks` instead.
18
+ */
19
+ getHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
20
+ getCompilationHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
21
+ createHtmlTagObject: (tagName: string, attributes?: Record<string, string | boolean>, innerHTML?: string | undefined) => JsHtmlPluginTag;
22
+ version: number;
23
+ };
24
+ export { HtmlRspackPlugin };
@@ -0,0 +1,2 @@
1
+ import type { CreatePartialRegisters } from "../../taps/types";
2
+ export declare const createHtmlPluginHooksRegisters: CreatePartialRegisters<`HtmlPlugin`>;
@@ -0,0 +1,80 @@
1
+ export * from "./APIPlugin";
2
+ export * from "./ArrayPushCallbackChunkFormatPlugin";
3
+ export * from "./AssetModulesPlugin";
4
+ export * from "./AsyncWebAssemblyModulesPlugin";
5
+ export * from "./BannerPlugin";
6
+ export * from "./BundlerInfoRspackPlugin";
7
+ export { createNativePlugin, RspackBuiltinPlugin } from "./base";
8
+ export * from "./ChunkPrefetchPreloadPlugin";
9
+ export * from "./CircularDependencyRspackPlugin";
10
+ export * from "./CommonJsChunkFormatPlugin";
11
+ export * from "./ContextReplacementPlugin";
12
+ export * from "./CopyRspackPlugin";
13
+ export * from "./CssChunkingPlugin";
14
+ export * from "./CssModulesPlugin";
15
+ export * from "./css-extract/index";
16
+ export * from "./DataUriPlugin";
17
+ export * from "./DefinePlugin";
18
+ export * from "./DeterministicChunkIdsPlugin";
19
+ export * from "./DeterministicModuleIdsPlugin";
20
+ export * from "./DllEntryPlugin";
21
+ export * from "./DllReferenceAgencyPlugin";
22
+ export * from "./DynamicEntryPlugin";
23
+ export * from "./ElectronTargetPlugin";
24
+ export * from "./EnableChunkLoadingPlugin";
25
+ export * from "./EnableLibraryPlugin";
26
+ export * from "./EnableWasmLoadingPlugin";
27
+ export * from "./EnsureChunkConditionsPlugin";
28
+ export * from "./EntryPlugin";
29
+ export * from "./EvalDevToolModulePlugin";
30
+ export * from "./EvalSourceMapDevToolPlugin";
31
+ export * from "./ExternalsPlugin";
32
+ export * from "./FetchCompileAsyncWasmPlugin";
33
+ export * from "./FileUriPlugin";
34
+ export * from "./FlagDependencyExportsPlugin";
35
+ export * from "./FlagDependencyUsagePlugin";
36
+ export * from "./HotModuleReplacementPlugin";
37
+ export * from "./HttpExternalsRspackPlugin";
38
+ export * from "./HttpUriPlugin";
39
+ export * from "./html-plugin/index";
40
+ export * from "./IgnorePlugin";
41
+ export * from "./InferAsyncModulesPlugin";
42
+ export * from "./JavascriptModulesPlugin";
43
+ export * from "./JsLoaderRspackPlugin";
44
+ export * from "./JsonModulesPlugin";
45
+ export * from "./LibManifestPlugin";
46
+ export * from "./LightningCssMinimizerRspackPlugin";
47
+ export * from "./LightningCssMinimizerRspackPlugin";
48
+ export * from "./LimitChunkCountPlugin";
49
+ export * from "./lazy-compilation/middleware";
50
+ export * from "./MangleExportsPlugin";
51
+ export * from "./MergeDuplicateChunksPlugin";
52
+ export * from "./ModuleChunkFormatPlugin";
53
+ export * from "./ModuleConcatenationPlugin";
54
+ export * from "./ModuleInfoHeaderPlugin";
55
+ export * from "./NamedChunkIdsPlugin";
56
+ export * from "./NamedModuleIdsPlugin";
57
+ export * from "./NaturalChunkIdsPlugin";
58
+ export * from "./NaturalModuleIdsPlugin";
59
+ export * from "./NodeTargetPlugin";
60
+ export * from "./NoEmitOnErrorsPlugin";
61
+ export * from "./OccurrenceChunkIdsPlugin";
62
+ export * from "./ProgressPlugin";
63
+ export * from "./ProvidePlugin";
64
+ export * from "./RealContentHashPlugin";
65
+ export * from "./RemoveDuplicateModulesPlugin";
66
+ export * from "./RemoveEmptyChunksPlugin";
67
+ export * from "./RsdoctorPlugin";
68
+ export * from "./RslibPlugin";
69
+ export * from "./RstestPlugin";
70
+ export * from "./RuntimeChunkPlugin";
71
+ export * from "./RuntimePlugin";
72
+ export * from "./SideEffectsFlagPlugin";
73
+ export * from "./SizeLimitsPlugin";
74
+ export * from "./SourceMapDevToolPlugin";
75
+ export * from "./SplitChunksPlugin";
76
+ export * from "./SubresourceIntegrityPlugin";
77
+ export * from "./SwcJsMinimizerPlugin";
78
+ export * from "./WarnCaseSensitiveModulesPlugin";
79
+ export * from "./WebWorkerTemplatePlugin";
80
+ export * from "./WorkerPlugin";
@@ -0,0 +1,24 @@
1
+ import type { Module } from "../../Module";
2
+ export declare const BuiltinLazyCompilationPlugin: {
3
+ new (module: (args: {
4
+ module: string;
5
+ path: string;
6
+ }) => {
7
+ active: boolean;
8
+ data: string;
9
+ client: string;
10
+ }, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined): {
11
+ name: string;
12
+ _args: [module: (args: {
13
+ module: string;
14
+ path: string;
15
+ }) => {
16
+ active: boolean;
17
+ data: string;
18
+ client: string;
19
+ }, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined];
20
+ 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;
21
+ raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
22
+ apply(compiler: import("../..").Compiler): void;
23
+ };
24
+ };