@rspack-canary/browser 1.5.6-canary-e598f284-20250921173624 → 1.5.8-canary-e350b761-20250924173613
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/Compiler.d.ts +45 -32
- package/dist/MultiCompiler.d.ts +5 -2
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +6 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/index.mjs +15 -7
- package/dist/napi-binding.d.ts +6 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +8 -0
- package/dist/schema/loaders.d.ts +1 -0
- package/package.json +1 -1
package/dist/Compiler.d.ts
CHANGED
|
@@ -34,40 +34,53 @@ export interface AssetEmittedInfo {
|
|
|
34
34
|
targetPath: string;
|
|
35
35
|
compilation: Compilation;
|
|
36
36
|
}
|
|
37
|
+
export type CompilerHooks = {
|
|
38
|
+
done: liteTapable.AsyncSeriesHook<Stats>;
|
|
39
|
+
afterDone: liteTapable.SyncHook<Stats>;
|
|
40
|
+
thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
41
|
+
compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
42
|
+
invalid: liteTapable.SyncHook<[string | null, number]>;
|
|
43
|
+
compile: liteTapable.SyncHook<[CompilationParams]>;
|
|
44
|
+
normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
|
|
45
|
+
contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
|
|
46
|
+
initialize: liteTapable.SyncHook<[]>;
|
|
47
|
+
shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Called when infrastructure logging is triggered, allowing plugins to intercept, modify, or handle log messages.
|
|
50
|
+
* If the hook returns `true`, the default infrastructure logging will be prevented.
|
|
51
|
+
* If it returns `undefined`, the default logging will proceed.
|
|
52
|
+
* @param name - The name of the logger
|
|
53
|
+
* @param type - The log type (e.g., 'log', 'warn', 'error', ...)
|
|
54
|
+
* @param args - An array of arguments passed to the logging method
|
|
55
|
+
*/
|
|
56
|
+
infrastructureLog: liteTapable.SyncBailHook<[
|
|
57
|
+
string,
|
|
58
|
+
string,
|
|
59
|
+
any[]
|
|
60
|
+
], true | void>;
|
|
61
|
+
beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
62
|
+
run: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
63
|
+
emit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
64
|
+
assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
|
|
65
|
+
afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
66
|
+
failed: liteTapable.SyncHook<[Error]>;
|
|
67
|
+
shutdown: liteTapable.AsyncSeriesHook<[]>;
|
|
68
|
+
watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
69
|
+
watchClose: liteTapable.SyncHook<[]>;
|
|
70
|
+
environment: liteTapable.SyncHook<[]>;
|
|
71
|
+
afterEnvironment: liteTapable.SyncHook<[]>;
|
|
72
|
+
afterPlugins: liteTapable.SyncHook<[Compiler]>;
|
|
73
|
+
afterResolvers: liteTapable.SyncHook<[Compiler]>;
|
|
74
|
+
make: liteTapable.AsyncParallelHook<[Compilation]>;
|
|
75
|
+
beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
|
|
76
|
+
afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
77
|
+
finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
78
|
+
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
79
|
+
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
80
|
+
};
|
|
37
81
|
declare class Compiler {
|
|
38
82
|
#private;
|
|
39
|
-
hooks:
|
|
40
|
-
done: liteTapable.AsyncSeriesHook<Stats>;
|
|
41
|
-
afterDone: liteTapable.SyncHook<Stats>;
|
|
42
|
-
thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
43
|
-
compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
44
|
-
invalid: liteTapable.SyncHook<[string | null, number]>;
|
|
45
|
-
compile: liteTapable.SyncHook<[CompilationParams]>;
|
|
46
|
-
normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
|
|
47
|
-
contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
|
|
48
|
-
initialize: liteTapable.SyncHook<[]>;
|
|
49
|
-
shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
|
|
50
|
-
infrastructureLog: liteTapable.SyncBailHook<[string, string, any[]], true>;
|
|
51
|
-
beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
52
|
-
run: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
53
|
-
emit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
54
|
-
assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
|
|
55
|
-
afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
56
|
-
failed: liteTapable.SyncHook<[Error]>;
|
|
57
|
-
shutdown: liteTapable.AsyncSeriesHook<[]>;
|
|
58
|
-
watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
59
|
-
watchClose: liteTapable.SyncHook<[]>;
|
|
60
|
-
environment: liteTapable.SyncHook<[]>;
|
|
61
|
-
afterEnvironment: liteTapable.SyncHook<[]>;
|
|
62
|
-
afterPlugins: liteTapable.SyncHook<[Compiler]>;
|
|
63
|
-
afterResolvers: liteTapable.SyncHook<[Compiler]>;
|
|
64
|
-
make: liteTapable.AsyncParallelHook<[Compilation]>;
|
|
65
|
-
beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
|
|
66
|
-
afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
67
|
-
finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
68
|
-
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
69
|
-
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
70
|
-
};
|
|
83
|
+
hooks: CompilerHooks;
|
|
71
84
|
webpack: typeof rspack;
|
|
72
85
|
rspack: typeof rspack;
|
|
73
86
|
name?: string;
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import * as liteTapable from "@rspack/lite-tapable";
|
|
11
|
-
import type { CompilationParams, Compiler, RspackOptions } from ".";
|
|
11
|
+
import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from ".";
|
|
12
12
|
import type { WatchOptions } from "./config";
|
|
13
13
|
import MultiStats from "./MultiStats";
|
|
14
14
|
import MultiWatching from "./MultiWatching";
|
|
@@ -32,7 +32,10 @@ export declare class MultiCompiler {
|
|
|
32
32
|
run: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
33
33
|
watchClose: liteTapable.SyncHook<[]>;
|
|
34
34
|
watchRun: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link CompilerHooks['infrastructureLog']}
|
|
37
|
+
*/
|
|
38
|
+
infrastructureLog: liteTapable.MultiHook<CompilerHooks["infrastructureLog"]>;
|
|
36
39
|
};
|
|
37
40
|
_options: MultiCompilerOptions;
|
|
38
41
|
running: boolean;
|
|
@@ -2,7 +2,7 @@ export declare const APIPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const AssetModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -33,7 +33,7 @@ export declare const BannerPlugin: {
|
|
|
33
33
|
new (args: BannerPluginArgument): {
|
|
34
34
|
name: string;
|
|
35
35
|
_args: [args: BannerPluginArgument];
|
|
36
|
-
affectedHooks:
|
|
36
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
37
37
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
38
38
|
apply(compiler: import("..").Compiler): void;
|
|
39
39
|
};
|
|
@@ -7,7 +7,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
|
7
7
|
new (options: BundleInfoOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: BundleInfoOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ContextReplacementPlugin: {
|
|
|
2
2
|
new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -7,7 +7,7 @@ export declare const CopyRspackPlugin: {
|
|
|
7
7
|
new (copy: CopyRspackPluginOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [copy: CopyRspackPluginOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -14,7 +14,7 @@ export declare const CssChunkingPlugin: {
|
|
|
14
14
|
new (options?: CssChunkingPluginOptions | undefined): {
|
|
15
15
|
name: string;
|
|
16
16
|
_args: [options?: CssChunkingPluginOptions | undefined];
|
|
17
|
-
affectedHooks:
|
|
17
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
18
18
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
|
19
19
|
apply(compiler: import("..").Compiler): void;
|
|
20
20
|
};
|
|
@@ -2,7 +2,7 @@ export declare const CssModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const DataUriPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DefinePlugin: {
|
|
|
3
3
|
new (define: DefinePluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [define: DefinePluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -5,7 +5,7 @@ export declare const DllEntryPlugin: {
|
|
|
5
5
|
new (context: string, entries: string[], options: DllEntryPluginOptions): {
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [context: string, entries: string[], options: DllEntryPluginOptions];
|
|
8
|
-
affectedHooks:
|
|
8
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
9
9
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DllReferenceAgencyPlugin: {
|
|
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawDllReferenceAgencyPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ElectronTargetPlugin: {
|
|
|
2
2
|
new (context?: string | undefined): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [context?: string | undefined];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ declare const EnableChunkLoadingPluginInner: {
|
|
|
12
12
|
new (type: string): {
|
|
13
13
|
name: string;
|
|
14
14
|
_args: [type: string];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: Compiler): import("../binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: Compiler): void;
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
|
2
2
|
new (type: string): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [type: string];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const EnsureChunkConditionsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -19,7 +19,7 @@ declare const OriginEntryPlugin: {
|
|
|
19
19
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
|
20
20
|
name: string;
|
|
21
21
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
|
22
|
-
affectedHooks:
|
|
22
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
23
23
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
24
24
|
apply(compiler: import("..").Compiler): void;
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ export declare const EvalDevToolModulePlugin: {
|
|
|
4
4
|
new (options: RawEvalDevToolModulePluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawEvalDevToolModulePluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EvalSourceMapDevToolPlugin: {
|
|
|
3
3
|
new (options: SourceMapDevToolPluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FetchCompileAsyncWasmPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FileUriPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FlagAllModulesAsUsedPlugin: {
|
|
|
2
2
|
new (explanation: string): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [explanation: string];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FlagDependencyExportsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const HttpExternalsRspackPlugin: {
|
|
|
2
2
|
new (css: boolean, webAsync: boolean): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [css: boolean, webAsync: boolean];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ export declare const IgnorePlugin: {
|
|
|
12
12
|
new (options: IgnorePluginOptions): {
|
|
13
13
|
name: string;
|
|
14
14
|
_args: [options: IgnorePluginOptions];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("..").Compiler): void;
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@ export declare const InferAsyncModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ export declare const JsLoaderRspackPlugin: {
|
|
|
3
3
|
new (compiler: Compiler): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [compiler: Compiler];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const JsonModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ export declare const LibManifestPlugin: {
|
|
|
10
10
|
new (options: LibManifestPluginOptions): {
|
|
11
11
|
name: string;
|
|
12
12
|
_args: [options: LibManifestPluginOptions];
|
|
13
|
-
affectedHooks:
|
|
13
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
14
14
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
15
15
|
apply(compiler: import("..").Compiler): void;
|
|
16
16
|
};
|
|
@@ -25,7 +25,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
|
|
|
25
25
|
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
|
|
26
26
|
name: string;
|
|
27
27
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
|
28
|
-
affectedHooks:
|
|
28
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
29
29
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
30
30
|
apply(compiler: import("..").Compiler): void;
|
|
31
31
|
};
|
|
@@ -7,7 +7,7 @@ export declare const LimitChunkCountPlugin: {
|
|
|
7
7
|
new (options: LimitChunkCountOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: LimitChunkCountOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ export declare const MergeDuplicateChunksPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ModuleChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ModuleInfoHeaderPlugin: {
|
|
|
2
2
|
new (verbose: any): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [verbose: any];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const NamedChunkIdsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const NamedModuleIdsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const NoEmitOnErrorsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const NodeTargetPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ export declare const NormalModuleReplacementPlugin: {
|
|
|
3
3
|
new (resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const OccurrenceChunkIdsPlugin: {
|
|
|
3
3
|
new (options?: RawOccurrenceChunkIdsPluginOptions | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const ProgressPlugin: {
|
|
|
4
4
|
new (progress?: ProgressPluginArgument): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ProvidePlugin: {
|
|
|
3
3
|
new (provide: ProvidePluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [provide: ProvidePluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RealContentHashPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RemoveDuplicateModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -18,7 +18,7 @@ declare const RsdoctorPluginImpl: {
|
|
|
18
18
|
new (c?: RsdoctorPluginOptions | undefined): {
|
|
19
19
|
name: string;
|
|
20
20
|
_args: [c?: RsdoctorPluginOptions | undefined];
|
|
21
|
-
affectedHooks:
|
|
21
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
22
22
|
raw(compiler: Compiler): import("../binding").BuiltinPlugin;
|
|
23
23
|
apply(compiler: Compiler): void;
|
|
24
24
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RslibPlugin: {
|
|
|
4
4
|
new (rslib: RawRslibPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rslib: RawRslibPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RstestPlugin: {
|
|
|
4
4
|
new (rstest: RawRstestPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rstest: RawRstestPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RuntimeChunkPlugin: {
|
|
|
4
4
|
new (options: RawRuntimeChunkOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -7,7 +7,7 @@ export declare const RuntimePluginImpl: {
|
|
|
7
7
|
new (): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ export declare const SideEffectsFlagPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ export declare const SizeLimitsPlugin: {
|
|
|
12
12
|
maxAssetSize?: number;
|
|
13
13
|
maxEntrypointSize?: number;
|
|
14
14
|
}];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("..").Compiler): void;
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ export declare const SourceMapDevToolPlugin: {
|
|
|
4
4
|
new (options: SourceMapDevToolPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -20,7 +20,7 @@ declare const NativeSubresourceIntegrityPlugin: {
|
|
|
20
20
|
new (options: NativeSubresourceIntegrityPluginOptions): {
|
|
21
21
|
name: string;
|
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
|
-
affectedHooks:
|
|
23
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
24
24
|
raw(compiler: Compiler): import("../binding").BuiltinPlugin;
|
|
25
25
|
apply(compiler: Compiler): void;
|
|
26
26
|
};
|
|
@@ -206,7 +206,7 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
206
206
|
new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
|
|
207
207
|
name: string;
|
|
208
208
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
209
|
-
affectedHooks:
|
|
209
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
210
210
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
211
211
|
apply(compiler: import("..").Compiler): void;
|
|
212
212
|
};
|
|
@@ -2,7 +2,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
|
|
|
14
14
|
new (...args: T): {
|
|
15
15
|
name: string;
|
|
16
16
|
_args: T;
|
|
17
|
-
affectedHooks:
|
|
17
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
18
18
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
19
19
|
apply(compiler: Compiler): void;
|
|
20
20
|
};
|
|
@@ -37,7 +37,7 @@ export declare function createNativePlugin<T extends any[], R>(name: CustomPlugi
|
|
|
37
37
|
new (...args: T): {
|
|
38
38
|
name: string;
|
|
39
39
|
_args: T;
|
|
40
|
-
affectedHooks:
|
|
40
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
41
41
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
42
42
|
apply(compiler: Compiler): void;
|
|
43
43
|
};
|
|
@@ -7,7 +7,7 @@ declare const HtmlRspackPluginImpl: {
|
|
|
7
7
|
new (c?: HtmlRspackPluginOptions | undefined): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [c?: HtmlRspackPluginOptions | undefined];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("../../Compiler").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: Compiler): import("../../binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ export declare const BuiltinLazyCompilationPlugin: {
|
|
|
3
3
|
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("../..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("../..").Compiler): import("../../binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../..").Compiler): void;
|
|
9
9
|
};
|
package/dist/config/types.d.ts
CHANGED
|
@@ -796,10 +796,16 @@ export type JavascriptParserOptions = {
|
|
|
796
796
|
requireDynamic?: boolean;
|
|
797
797
|
requireResolve?: boolean;
|
|
798
798
|
importDynamic?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Enable magic comments for CommonJS require() expressions.
|
|
801
|
+
*/
|
|
802
|
+
commonjsMagicComments?: boolean;
|
|
799
803
|
/** Inline const values in this module */
|
|
800
804
|
inlineConst?: boolean;
|
|
801
805
|
/** Whether to tolerant exportsPresence for type reexport */
|
|
802
806
|
typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
|
|
807
|
+
/** Whether to enable JSX parsing */
|
|
808
|
+
jsx?: boolean;
|
|
803
809
|
};
|
|
804
810
|
export type JsonParserOptions = {
|
|
805
811
|
/**
|
|
@@ -5,7 +5,7 @@ export declare const ModuleFederationRuntimePlugin: {
|
|
|
5
5
|
new (options?: ModuleFederationRuntimeOptions | undefined): {
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [options?: ModuleFederationRuntimeOptions | undefined];
|
|
8
|
-
affectedHooks:
|
|
8
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
9
9
|
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
|
11
11
|
};
|
package/dist/exports.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const version: string;
|
|
|
3
3
|
export { rspackVersion, version };
|
|
4
4
|
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
|
|
5
5
|
export { Compilation } from "./Compilation";
|
|
6
|
-
export { Compiler } from "./Compiler";
|
|
6
|
+
export { Compiler, type CompilerHooks } from "./Compiler";
|
|
7
7
|
export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
8
8
|
export { MultiCompiler } from "./MultiCompiler";
|
|
9
9
|
import { RspackOptionsApply } from "./rspackOptionsApply";
|
package/dist/index.mjs
CHANGED
|
@@ -40455,8 +40455,10 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
40455
40455
|
requireDynamic: parser.requireDynamic,
|
|
40456
40456
|
requireResolve: parser.requireResolve,
|
|
40457
40457
|
importDynamic: parser.importDynamic,
|
|
40458
|
+
commonjsMagicComments: parser.commonjsMagicComments,
|
|
40458
40459
|
inlineConst: parser.inlineConst,
|
|
40459
|
-
typeReexportsPresence: parser.typeReexportsPresence
|
|
40460
|
+
typeReexportsPresence: parser.typeReexportsPresence,
|
|
40461
|
+
jsx: parser.jsx
|
|
40460
40462
|
};
|
|
40461
40463
|
}
|
|
40462
40464
|
function getRawAssetParserOptions(parser) {
|
|
@@ -47098,7 +47100,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47098
47100
|
if ("object" == typeof rspackFuture) {
|
|
47099
47101
|
D(rspackFuture, "bundlerInfo", {});
|
|
47100
47102
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47101
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
47103
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-e350b761-20250924173613");
|
|
47102
47104
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47103
47105
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47104
47106
|
}
|
|
@@ -47125,6 +47127,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { usedExports, inli
|
|
|
47125
47127
|
D(parserOptions, "importMeta", true);
|
|
47126
47128
|
D(parserOptions, "inlineConst", usedExports && inlineConst);
|
|
47127
47129
|
D(parserOptions, "typeReexportsPresence", "no-tolerant");
|
|
47130
|
+
D(parserOptions, "jsx", false);
|
|
47128
47131
|
};
|
|
47129
47132
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
47130
47133
|
D(generatorOptions, "JSONParse", true);
|
|
@@ -51197,7 +51200,7 @@ class MultiStats {
|
|
|
51197
51200
|
return obj;
|
|
51198
51201
|
});
|
|
51199
51202
|
if (childOptions.version) {
|
|
51200
|
-
obj.rspackVersion = "1.5.
|
|
51203
|
+
obj.rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
51201
51204
|
obj.version = "5.75.0";
|
|
51202
51205
|
}
|
|
51203
51206
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52504,7 +52507,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52504
52507
|
},
|
|
52505
52508
|
version: (object)=>{
|
|
52506
52509
|
object.version = "5.75.0";
|
|
52507
|
-
object.rspackVersion = "1.5.
|
|
52510
|
+
object.rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
52508
52511
|
},
|
|
52509
52512
|
env: (object, _compilation, _context, { _env })=>{
|
|
52510
52513
|
object.env = _env;
|
|
@@ -55191,7 +55194,8 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55191
55194
|
}).partial()),
|
|
55192
55195
|
runtime: schemas_enum([
|
|
55193
55196
|
"automatic",
|
|
55194
|
-
"classic"
|
|
55197
|
+
"classic",
|
|
55198
|
+
"preserve"
|
|
55195
55199
|
]),
|
|
55196
55200
|
importSource: schemas_string()
|
|
55197
55201
|
}).partial();
|
|
@@ -55809,12 +55813,14 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55809
55813
|
const requireDynamic = schemas_boolean();
|
|
55810
55814
|
const requireResolve = schemas_boolean();
|
|
55811
55815
|
const importDynamic = schemas_boolean();
|
|
55816
|
+
const commonjsMagicComments = schemas_boolean();
|
|
55812
55817
|
const inlineConst = schemas_boolean();
|
|
55813
55818
|
const typeReexportsPresence = schemas_enum([
|
|
55814
55819
|
"no-tolerant",
|
|
55815
55820
|
"tolerant",
|
|
55816
55821
|
"tolerant-no-check"
|
|
55817
55822
|
]);
|
|
55823
|
+
const jsx = schemas_boolean();
|
|
55818
55824
|
const javascriptParserOptions = strictObject({
|
|
55819
55825
|
dynamicImportMode: dynamicImportMode,
|
|
55820
55826
|
dynamicImportPreload: dynamicImportPreload,
|
|
@@ -55832,12 +55838,14 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55832
55838
|
strictExportPresence: strictExportPresence,
|
|
55833
55839
|
worker: worker,
|
|
55834
55840
|
overrideStrict: overrideStrict,
|
|
55841
|
+
commonjsMagicComments: commonjsMagicComments,
|
|
55835
55842
|
requireAsExpression: requireAsExpression,
|
|
55836
55843
|
requireDynamic: requireDynamic,
|
|
55837
55844
|
requireResolve: requireResolve,
|
|
55838
55845
|
importDynamic: importDynamic,
|
|
55839
55846
|
inlineConst: inlineConst,
|
|
55840
|
-
typeReexportsPresence: typeReexportsPresence
|
|
55847
|
+
typeReexportsPresence: typeReexportsPresence,
|
|
55848
|
+
jsx: jsx
|
|
55841
55849
|
}).partial();
|
|
55842
55850
|
const parserOptionsByModuleTypeKnown = strictObject({
|
|
55843
55851
|
asset: assetParserOptions,
|
|
@@ -56953,7 +56961,7 @@ function transformSync(source, options) {
|
|
|
56953
56961
|
const _options = JSON.stringify(options || {});
|
|
56954
56962
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56955
56963
|
}
|
|
56956
|
-
const exports_rspackVersion = "1.5.
|
|
56964
|
+
const exports_rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
56957
56965
|
const exports_version = "5.75.0";
|
|
56958
56966
|
const exports_WebpackError = Error;
|
|
56959
56967
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2322,6 +2322,7 @@ export interface RawJavascriptParserOptions {
|
|
|
2322
2322
|
* @experimental
|
|
2323
2323
|
*/
|
|
2324
2324
|
importDynamic?: boolean
|
|
2325
|
+
commonjsMagicComments?: boolean
|
|
2325
2326
|
/**
|
|
2326
2327
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2327
2328
|
* @experimental
|
|
@@ -2332,6 +2333,11 @@ export interface RawJavascriptParserOptions {
|
|
|
2332
2333
|
* @experimental
|
|
2333
2334
|
*/
|
|
2334
2335
|
typeReexportsPresence?: string
|
|
2336
|
+
/**
|
|
2337
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2338
|
+
* @experimental
|
|
2339
|
+
*/
|
|
2340
|
+
jsx?: boolean
|
|
2335
2341
|
}
|
|
2336
2342
|
|
|
2337
2343
|
export interface RawJsonGeneratorOptions {
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -761,6 +761,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
761
761
|
strict: "strict";
|
|
762
762
|
"non-strict": "non-strict";
|
|
763
763
|
}>>;
|
|
764
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
764
765
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
765
766
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
766
767
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -771,6 +772,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
771
772
|
tolerant: "tolerant";
|
|
772
773
|
"tolerant-no-check": "tolerant-no-check";
|
|
773
774
|
}>>;
|
|
775
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
774
776
|
}, z.core.$strict>>;
|
|
775
777
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
776
778
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -813,6 +815,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
813
815
|
strict: "strict";
|
|
814
816
|
"non-strict": "non-strict";
|
|
815
817
|
}>>;
|
|
818
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
816
819
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
817
820
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
818
821
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -823,6 +826,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
823
826
|
tolerant: "tolerant";
|
|
824
827
|
"tolerant-no-check": "tolerant-no-check";
|
|
825
828
|
}>>;
|
|
829
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
826
830
|
}, z.core.$strict>>;
|
|
827
831
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
828
832
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -865,6 +869,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
865
869
|
strict: "strict";
|
|
866
870
|
"non-strict": "non-strict";
|
|
867
871
|
}>>;
|
|
872
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
868
873
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
869
874
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
870
875
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -875,6 +880,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
875
880
|
tolerant: "tolerant";
|
|
876
881
|
"tolerant-no-check": "tolerant-no-check";
|
|
877
882
|
}>>;
|
|
883
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
878
884
|
}, z.core.$strict>>;
|
|
879
885
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
880
886
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -917,6 +923,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
917
923
|
strict: "strict";
|
|
918
924
|
"non-strict": "non-strict";
|
|
919
925
|
}>>;
|
|
926
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
920
927
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
921
928
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
922
929
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -927,6 +934,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
927
934
|
tolerant: "tolerant";
|
|
928
935
|
"tolerant-no-check": "tolerant-no-check";
|
|
929
936
|
}>>;
|
|
937
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
930
938
|
}, z.core.$strict>>;
|
|
931
939
|
}, z.core.$strict>>;
|
|
932
940
|
generator: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/loaders.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
|
|
|
89
89
|
emitFullSignatures: z.ZodOptional<z.ZodBoolean>;
|
|
90
90
|
}, z.core.$strict>]>>;
|
|
91
91
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
preserve: "preserve";
|
|
92
93
|
automatic: "automatic";
|
|
93
94
|
classic: "classic";
|
|
94
95
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8-canary-e350b761-20250924173613",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|