@rspack-canary/browser 1.5.7-canary-a3406c0a-20250922173625 → 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 +2 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/index.mjs +12 -7
- package/dist/napi-binding.d.ts +5 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +4 -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
|
@@ -804,6 +804,8 @@ export type JavascriptParserOptions = {
|
|
|
804
804
|
inlineConst?: boolean;
|
|
805
805
|
/** Whether to tolerant exportsPresence for type reexport */
|
|
806
806
|
typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
|
|
807
|
+
/** Whether to enable JSX parsing */
|
|
808
|
+
jsx?: boolean;
|
|
807
809
|
};
|
|
808
810
|
export type JsonParserOptions = {
|
|
809
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
|
@@ -40457,7 +40457,8 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
40457
40457
|
importDynamic: parser.importDynamic,
|
|
40458
40458
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
40459
40459
|
inlineConst: parser.inlineConst,
|
|
40460
|
-
typeReexportsPresence: parser.typeReexportsPresence
|
|
40460
|
+
typeReexportsPresence: parser.typeReexportsPresence,
|
|
40461
|
+
jsx: parser.jsx
|
|
40461
40462
|
};
|
|
40462
40463
|
}
|
|
40463
40464
|
function getRawAssetParserOptions(parser) {
|
|
@@ -47099,7 +47100,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47099
47100
|
if ("object" == typeof rspackFuture) {
|
|
47100
47101
|
D(rspackFuture, "bundlerInfo", {});
|
|
47101
47102
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47102
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
47103
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-e350b761-20250924173613");
|
|
47103
47104
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47104
47105
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47105
47106
|
}
|
|
@@ -47126,6 +47127,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { usedExports, inli
|
|
|
47126
47127
|
D(parserOptions, "importMeta", true);
|
|
47127
47128
|
D(parserOptions, "inlineConst", usedExports && inlineConst);
|
|
47128
47129
|
D(parserOptions, "typeReexportsPresence", "no-tolerant");
|
|
47130
|
+
D(parserOptions, "jsx", false);
|
|
47129
47131
|
};
|
|
47130
47132
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
47131
47133
|
D(generatorOptions, "JSONParse", true);
|
|
@@ -51198,7 +51200,7 @@ class MultiStats {
|
|
|
51198
51200
|
return obj;
|
|
51199
51201
|
});
|
|
51200
51202
|
if (childOptions.version) {
|
|
51201
|
-
obj.rspackVersion = "1.5.
|
|
51203
|
+
obj.rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
51202
51204
|
obj.version = "5.75.0";
|
|
51203
51205
|
}
|
|
51204
51206
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52505,7 +52507,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52505
52507
|
},
|
|
52506
52508
|
version: (object)=>{
|
|
52507
52509
|
object.version = "5.75.0";
|
|
52508
|
-
object.rspackVersion = "1.5.
|
|
52510
|
+
object.rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
52509
52511
|
},
|
|
52510
52512
|
env: (object, _compilation, _context, { _env })=>{
|
|
52511
52513
|
object.env = _env;
|
|
@@ -55192,7 +55194,8 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55192
55194
|
}).partial()),
|
|
55193
55195
|
runtime: schemas_enum([
|
|
55194
55196
|
"automatic",
|
|
55195
|
-
"classic"
|
|
55197
|
+
"classic",
|
|
55198
|
+
"preserve"
|
|
55196
55199
|
]),
|
|
55197
55200
|
importSource: schemas_string()
|
|
55198
55201
|
}).partial();
|
|
@@ -55817,6 +55820,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55817
55820
|
"tolerant",
|
|
55818
55821
|
"tolerant-no-check"
|
|
55819
55822
|
]);
|
|
55823
|
+
const jsx = schemas_boolean();
|
|
55820
55824
|
const javascriptParserOptions = strictObject({
|
|
55821
55825
|
dynamicImportMode: dynamicImportMode,
|
|
55822
55826
|
dynamicImportPreload: dynamicImportPreload,
|
|
@@ -55840,7 +55844,8 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55840
55844
|
requireResolve: requireResolve,
|
|
55841
55845
|
importDynamic: importDynamic,
|
|
55842
55846
|
inlineConst: inlineConst,
|
|
55843
|
-
typeReexportsPresence: typeReexportsPresence
|
|
55847
|
+
typeReexportsPresence: typeReexportsPresence,
|
|
55848
|
+
jsx: jsx
|
|
55844
55849
|
}).partial();
|
|
55845
55850
|
const parserOptionsByModuleTypeKnown = strictObject({
|
|
55846
55851
|
asset: assetParserOptions,
|
|
@@ -56956,7 +56961,7 @@ function transformSync(source, options) {
|
|
|
56956
56961
|
const _options = JSON.stringify(options || {});
|
|
56957
56962
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56958
56963
|
}
|
|
56959
|
-
const exports_rspackVersion = "1.5.
|
|
56964
|
+
const exports_rspackVersion = "1.5.8-canary-e350b761-20250924173613";
|
|
56960
56965
|
const exports_version = "5.75.0";
|
|
56961
56966
|
const exports_WebpackError = Error;
|
|
56962
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
|
@@ -2333,6 +2333,11 @@ export interface RawJavascriptParserOptions {
|
|
|
2333
2333
|
* @experimental
|
|
2334
2334
|
*/
|
|
2335
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
|
|
2336
2341
|
}
|
|
2337
2342
|
|
|
2338
2343
|
export interface RawJsonGeneratorOptions {
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -772,6 +772,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
772
772
|
tolerant: "tolerant";
|
|
773
773
|
"tolerant-no-check": "tolerant-no-check";
|
|
774
774
|
}>>;
|
|
775
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
775
776
|
}, z.core.$strict>>;
|
|
776
777
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
777
778
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -825,6 +826,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
825
826
|
tolerant: "tolerant";
|
|
826
827
|
"tolerant-no-check": "tolerant-no-check";
|
|
827
828
|
}>>;
|
|
829
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
828
830
|
}, z.core.$strict>>;
|
|
829
831
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
830
832
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -878,6 +880,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
878
880
|
tolerant: "tolerant";
|
|
879
881
|
"tolerant-no-check": "tolerant-no-check";
|
|
880
882
|
}>>;
|
|
883
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
881
884
|
}, z.core.$strict>>;
|
|
882
885
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
883
886
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -931,6 +934,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
931
934
|
tolerant: "tolerant";
|
|
932
935
|
"tolerant-no-check": "tolerant-no-check";
|
|
933
936
|
}>>;
|
|
937
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
934
938
|
}, z.core.$strict>>;
|
|
935
939
|
}, z.core.$strict>>;
|
|
936
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.",
|