@rspack/core 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chunk.d.ts +14 -34
- package/dist/ChunkGraph.d.ts +6 -21
- package/dist/Chunks.d.ts +0 -1
- package/dist/Compilation.d.ts +8 -7
- package/dist/Entrypoint.d.ts +2 -10
- package/dist/ErrorHelpers.d.ts +2 -0
- package/dist/RspackError.d.ts +1 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -2
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -2
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -2
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -2
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -2
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -2
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -2
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -2
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -2
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -2
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -2
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -2
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -2
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -2
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -2
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -2
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -2
- package/dist/builtin-plugin/base.d.ts +29 -5
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
- package/dist/builtin-plugin/index.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -2
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -2
- package/dist/exports.d.ts +3 -1
- package/dist/index.js +197 -348
- package/dist/lib/WebpackError.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +7 -0
- package/dist/loader-runner/ModuleWarning.d.ts +7 -0
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/statsFactoryUtils.d.ts +2 -2
- package/dist/util/index.d.ts +0 -2
- package/package.json +5 -3
- package/dist/ChunkGroup.d.ts +0 -33
package/dist/Chunk.d.ts
CHANGED
@@ -1,35 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
#private;
|
6
|
-
readonly name?: string;
|
7
|
-
readonly id?: string;
|
8
|
-
readonly ids: ReadonlyArray<string>;
|
9
|
-
readonly idNameHints: ReadonlyArray<string>;
|
10
|
-
readonly filenameTemplate?: string;
|
11
|
-
readonly cssFilenameTemplate?: string;
|
12
|
-
readonly files: ReadonlySet<string>;
|
13
|
-
readonly runtime: ReadonlySet<string>;
|
14
|
-
readonly hash?: string;
|
15
|
-
readonly contentHash: Readonly<Record<string, string>>;
|
16
|
-
readonly renderedHash?: string;
|
17
|
-
readonly chunkReason?: string;
|
18
|
-
readonly auxiliaryFiles: ReadonlySet<string>;
|
19
|
-
static __from_binding(binding: JsChunk): Chunk;
|
20
|
-
static __to_binding(chunk: Chunk): JsChunk;
|
21
|
-
constructor(binding: JsChunk);
|
22
|
-
isOnlyInitial(): boolean;
|
23
|
-
canBeInitial(): boolean;
|
24
|
-
hasRuntime(): boolean;
|
25
|
-
get groupsIterable(): ReadonlySet<ChunkGroup>;
|
26
|
-
getChunkMaps(realHash: boolean): {
|
27
|
-
hash: Record<string | number, string>;
|
28
|
-
contentHash: Record<string | number, Record<string, string>>;
|
29
|
-
name: Record<string | number, string>;
|
30
|
-
};
|
31
|
-
getAllAsyncChunks(): ReadonlySet<Chunk>;
|
32
|
-
getAllInitialChunks(): ReadonlySet<Chunk>;
|
33
|
-
getAllReferencedChunks(): ReadonlySet<Chunk>;
|
34
|
-
getEntryOptions(): Readonly<EntryOptions> | undefined;
|
1
|
+
interface ChunkMaps {
|
2
|
+
hash: Record<string | number, string>;
|
3
|
+
contentHash: Record<string | number, Record<string, string>>;
|
4
|
+
name: Record<string | number, string>;
|
35
5
|
}
|
6
|
+
declare module "@rspack/binding" {
|
7
|
+
interface Chunk {
|
8
|
+
readonly files: ReadonlySet<string>;
|
9
|
+
readonly runtime: ReadonlySet<string>;
|
10
|
+
readonly auxiliaryFiles: ReadonlySet<string>;
|
11
|
+
readonly groupsIterable: ReadonlySet<ChunkGroup>;
|
12
|
+
getChunkMaps(realHash: boolean): ChunkMaps;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
export { Chunk } from "@rspack/binding";
|
package/dist/ChunkGraph.d.ts
CHANGED
@@ -1,23 +1,8 @@
|
|
1
|
-
import type { AsyncDependenciesBlock, JsChunkGraph } from "@rspack/binding";
|
2
1
|
import type { RuntimeSpec } from "./util/runtime";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
static __from_binding(binding: JsChunkGraph): ChunkGraph;
|
9
|
-
constructor(binding: JsChunkGraph);
|
10
|
-
hasChunkEntryDependentChunks(chunk: Chunk): boolean;
|
11
|
-
getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
|
12
|
-
getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
|
13
|
-
getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
|
14
|
-
getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>;
|
15
|
-
getNumberOfEntryModules(chunk: Chunk): number;
|
16
|
-
getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>;
|
17
|
-
getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
|
18
|
-
getModuleChunks(module: Module): Chunk[];
|
19
|
-
getModuleChunksIterable(module: Module): Iterable<Chunk>;
|
20
|
-
getModuleId(module: Module): string | number | null;
|
21
|
-
getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
|
22
|
-
getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup | null;
|
2
|
+
declare module "@rspack/binding" {
|
3
|
+
interface Chunk {
|
4
|
+
getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
|
5
|
+
getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
|
6
|
+
}
|
23
7
|
}
|
8
|
+
export { ChunkGraph } from "@rspack/binding";
|
package/dist/Chunks.d.ts
CHANGED
package/dist/Compilation.d.ts
CHANGED
@@ -8,16 +8,15 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import * as binding from "@rspack/binding";
|
11
|
-
import type { AssetInfo, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
|
11
|
+
import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
|
12
12
|
export type { AssetInfo } from "@rspack/binding";
|
13
13
|
import * as liteTapable from "@rspack/lite-tapable";
|
14
14
|
import type { Source } from "../compiled/webpack-sources";
|
15
|
-
import { Chunk } from "./Chunk";
|
16
|
-
import { ChunkGraph } from "./ChunkGraph";
|
17
|
-
import { ChunkGroup } from "./ChunkGroup";
|
15
|
+
import type { Chunk } from "./Chunk";
|
16
|
+
import type { ChunkGraph } from "./ChunkGraph";
|
18
17
|
import type { Compiler } from "./Compiler";
|
19
18
|
import type { ContextModuleFactory } from "./ContextModuleFactory";
|
20
|
-
import { Entrypoint } from "./Entrypoint";
|
19
|
+
import type { Entrypoint } from "./Entrypoint";
|
21
20
|
import type { Module } from "./Module";
|
22
21
|
import ModuleGraph from "./ModuleGraph";
|
23
22
|
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
@@ -34,7 +33,9 @@ import { StatsFactory } from "./stats/StatsFactory";
|
|
34
33
|
import { StatsPrinter } from "./stats/StatsPrinter";
|
35
34
|
import type { InputFileSystem } from "./util/fs";
|
36
35
|
import type Hash from "./util/hash";
|
36
|
+
import "./Chunk";
|
37
37
|
import "./Chunks";
|
38
|
+
import "./ChunkGraph";
|
38
39
|
import "./CodeGenerationResults";
|
39
40
|
import type { CodeGenerationResult } from "./taps/compilation";
|
40
41
|
export type Assets = Record<string, Source>;
|
@@ -227,7 +228,7 @@ export declare class Compilation {
|
|
227
228
|
*
|
228
229
|
* Note: This is a proxy for webpack internal API, only method `get`, `keys`, `values` and `entries` are supported now.
|
229
230
|
*/
|
230
|
-
get namedChunkGroups(): ReadonlyMap<string, Readonly<ChunkGroup>>;
|
231
|
+
get namedChunkGroups(): ReadonlyMap<string, Readonly<binding.ChunkGroup>>;
|
231
232
|
get modules(): ReadonlySet<Module>;
|
232
233
|
get builtModules(): ReadonlySet<Module>;
|
233
234
|
get chunks(): ReadonlySet<Chunk>;
|
@@ -236,7 +237,7 @@ export declare class Compilation {
|
|
236
237
|
*
|
237
238
|
* Note: This is a proxy for webpack internal API, only method `get`, `keys`, `values` and `entries` are supported now.
|
238
239
|
*/
|
239
|
-
get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
|
240
|
+
get namedChunks(): ReadonlyMap<string, Readonly<binding.Chunk>>;
|
240
241
|
get entries(): Map<string, EntryData>;
|
241
242
|
get codeGenerationResults(): binding.CodeGenerationResults;
|
242
243
|
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
|
package/dist/Entrypoint.d.ts
CHANGED
@@ -1,10 +1,2 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
import { ChunkGroup } from "./ChunkGroup";
|
4
|
-
export declare class Entrypoint extends ChunkGroup {
|
5
|
-
#private;
|
6
|
-
static __from_binding(binding: JsChunkGroup): Entrypoint;
|
7
|
-
protected constructor(binding: JsChunkGroup);
|
8
|
-
getRuntimeChunk(): Readonly<Chunk | null>;
|
9
|
-
getEntrypointChunk(): Readonly<Chunk | null>;
|
10
|
-
}
|
1
|
+
import type { ChunkGroup } from "@rspack/binding";
|
2
|
+
export type Entrypoint = ChunkGroup;
|
package/dist/ErrorHelpers.d.ts
CHANGED
package/dist/RspackError.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type * as binding from "@rspack/binding";
|
2
|
-
export type RspackError
|
2
|
+
export type { RspackError } from "@rspack/binding";
|
3
3
|
export type RspackSeverity = binding.JsRspackSeverity;
|
4
4
|
export declare class NonErrorEmittedError extends Error {
|
5
5
|
constructor(error: Error);
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const APIPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const ArrayPushCallbackChunkFormatPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const AssetModulesPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const AsyncWebAssemblyModulesPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { type Chunk } from "@rspack/binding";
|
2
2
|
export type Rule = string | RegExp;
|
3
3
|
export type Rules = Rule[] | Rule;
|
4
4
|
export type BannerFunction = (args: {
|
5
5
|
hash: string;
|
6
|
-
chunk:
|
6
|
+
chunk: Chunk;
|
7
7
|
filename: string;
|
8
8
|
}) => string;
|
9
9
|
export type BannerContent = string | BannerFunction;
|
@@ -31,7 +31,7 @@ export type BannerPluginOptions = {
|
|
31
31
|
export type BannerPluginArgument = BannerContent | BannerPluginOptions;
|
32
32
|
export declare const BannerPlugin: {
|
33
33
|
new (args: BannerPluginArgument): {
|
34
|
-
name:
|
34
|
+
name: string;
|
35
35
|
_args: [args: BannerPluginArgument];
|
36
36
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
37
37
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export type BundleInfoOptions = {
|
3
2
|
version?: string;
|
4
3
|
bundler?: string;
|
@@ -6,7 +5,7 @@ export type BundleInfoOptions = {
|
|
6
5
|
};
|
7
6
|
export declare const BundlerInfoRspackPlugin: {
|
8
7
|
new (options: BundleInfoOptions): {
|
9
|
-
name:
|
8
|
+
name: string;
|
10
9
|
_args: [options: BundleInfoOptions];
|
11
10
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
12
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const ChunkPrefetchPreloadPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const CommonJsChunkFormatPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const ContextReplacementPlugin: {
|
3
2
|
new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { type RawCopyPattern } from "@rspack/binding";
|
2
2
|
export type CopyRspackPluginOptions = {
|
3
3
|
/** An array of objects that describe the copy operations to be performed. */
|
4
4
|
patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
|
5
5
|
};
|
6
6
|
export declare const CopyRspackPlugin: {
|
7
7
|
new (copy: CopyRspackPluginOptions): {
|
8
|
-
name:
|
8
|
+
name: string;
|
9
9
|
_args: [copy: CopyRspackPluginOptions];
|
10
10
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -12,7 +12,7 @@ export interface CssChunkingPluginOptions {
|
|
12
12
|
}
|
13
13
|
export declare const CssChunkingPlugin: {
|
14
14
|
new (options?: CssChunkingPluginOptions | undefined): {
|
15
|
-
name:
|
15
|
+
name: string;
|
16
16
|
_args: [options?: CssChunkingPluginOptions | undefined];
|
17
17
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
18
18
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const CssModulesPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const DataUriPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export type DefinePluginOptions = Record<string, CodeValue>;
|
3
2
|
export declare const DefinePlugin: {
|
4
3
|
new (define: DefinePluginOptions): {
|
5
|
-
name:
|
4
|
+
name: string;
|
6
5
|
_args: [define: DefinePluginOptions];
|
7
6
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export type DllEntryPluginOptions = {
|
3
2
|
name: string;
|
4
3
|
};
|
5
4
|
export declare const DllEntryPlugin: {
|
6
5
|
new (context: string, entries: string[], options: DllEntryPluginOptions): {
|
7
|
-
name:
|
6
|
+
name: string;
|
8
7
|
_args: [context: string, entries: string[], options: DllEntryPluginOptions];
|
9
8
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
10
9
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { type RawDllReferenceAgencyPluginOptions } from "@rspack/binding";
|
2
2
|
export type DllReferenceAgencyPluginOptions = RawDllReferenceAgencyPluginOptions;
|
3
3
|
export declare const DllReferenceAgencyPlugin: {
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
5
|
-
name:
|
5
|
+
name: string;
|
6
6
|
_args: [options: RawDllReferenceAgencyPluginOptions];
|
7
7
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const ElectronTargetPlugin: {
|
3
2
|
new (context?: string | undefined): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [context?: string | undefined];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -7,11 +7,10 @@
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
11
10
|
import type { ChunkLoadingType, Compiler } from "../exports";
|
12
11
|
declare const EnableChunkLoadingPluginInner: {
|
13
12
|
new (type: string): {
|
14
|
-
name:
|
13
|
+
name: string;
|
15
14
|
_args: [type: string];
|
16
15
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
17
16
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const EnableWasmLoadingPlugin: {
|
3
2
|
new (type: string): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [type: string];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const EnsureChunkConditionsPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EntryDependency, type JsEntryOptions } from "@rspack/binding";
|
2
2
|
import type { EntryDescriptionNormalized } from "../config";
|
3
3
|
/**
|
4
4
|
* Options for the `EntryPlugin`.
|
@@ -17,7 +17,7 @@ export type EntryOptions = Omit<EntryDescriptionNormalized, "import"> & {
|
|
17
17
|
*/
|
18
18
|
declare const OriginEntryPlugin: {
|
19
19
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
20
|
-
name:
|
20
|
+
name: string;
|
21
21
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
22
22
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
23
23
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { type RawEvalDevToolModulePluginOptions } from "@rspack/binding";
|
2
2
|
export type { RawEvalDevToolModulePluginOptions as EvalDevToolModulePluginOptions };
|
3
3
|
export declare const EvalDevToolModulePlugin: {
|
4
4
|
new (options: RawEvalDevToolModulePluginOptions): {
|
5
|
-
name:
|
5
|
+
name: string;
|
6
6
|
_args: [options: RawEvalDevToolModulePluginOptions];
|
7
7
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { type SourceMapDevToolPluginOptions } from "@rspack/binding";
|
2
2
|
export declare const EvalSourceMapDevToolPlugin: {
|
3
3
|
new (options: SourceMapDevToolPluginOptions): {
|
4
|
-
name:
|
4
|
+
name: string;
|
5
5
|
_args: [options: SourceMapDevToolPluginOptions];
|
6
6
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const FetchCompileAsyncWasmPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const FileUriPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const FlagAllModulesAsUsedPlugin: {
|
3
2
|
new (explanation: string): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [explanation: string];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const FlagDependencyExportsPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const HttpExternalsRspackPlugin: {
|
3
2
|
new (css: boolean, webAsync: boolean): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [css: boolean, webAsync: boolean];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { type RawIgnorePluginOptions } from "@rspack/binding";
|
2
2
|
export type IgnorePluginOptions = {
|
3
3
|
/** A RegExp to test the resource against. */
|
4
4
|
resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>;
|
@@ -10,7 +10,7 @@ export type IgnorePluginOptions = {
|
|
10
10
|
};
|
11
11
|
export declare const IgnorePlugin: {
|
12
12
|
new (options: IgnorePluginOptions): {
|
13
|
-
name:
|
13
|
+
name: string;
|
14
14
|
_args: [options: IgnorePluginOptions];
|
15
15
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
16
16
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const InferAsyncModulesPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
import type { Compiler } from "../Compiler";
|
3
2
|
export declare const JsLoaderRspackPlugin: {
|
4
3
|
new (compiler: Compiler): {
|
5
|
-
name:
|
4
|
+
name: string;
|
6
5
|
_args: [compiler: Compiler];
|
7
6
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
7
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export declare const JsonModulesPlugin: {
|
3
2
|
new (): {
|
4
|
-
name:
|
3
|
+
name: string;
|
5
4
|
_args: [];
|
6
5
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
export type LibManifestPluginOptions = {
|
3
2
|
context?: string;
|
4
3
|
entryOnly?: boolean;
|
@@ -9,7 +8,7 @@ export type LibManifestPluginOptions = {
|
|
9
8
|
};
|
10
9
|
export declare const LibManifestPlugin: {
|
11
10
|
new (options: LibManifestPluginOptions): {
|
12
|
-
name:
|
11
|
+
name: string;
|
13
12
|
_args: [options: LibManifestPluginOptions];
|
14
13
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
15
14
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
2
1
|
import { type Drafts, type FeatureOptions, type NonStandard, type PseudoClasses } from "../builtin-loader/lightningcss";
|
3
2
|
import type { AssetConditions } from "../util/assetCondition";
|
4
3
|
export type LightningCssMinimizerRspackPluginOptions = {
|
@@ -24,7 +23,7 @@ export type LightningCssMinimizerRspackPluginOptions = {
|
|
24
23
|
};
|
25
24
|
export declare const LightningCssMinimizerRspackPlugin: {
|
26
25
|
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
|
27
|
-
name:
|
26
|
+
name: string;
|
28
27
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
29
28
|
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
30
29
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|