@rspack/core 1.3.0-beta.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Compilation.d.ts +1 -0
- package/dist/NormalModule.d.ts +1 -1
- package/dist/Watching.d.ts +4 -1
- 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/CircularDependencyRspackPlugin.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/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/HttpUriPlugin.d.ts +36 -0
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.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/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 +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- 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 +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +1 -2
- package/dist/config/normalization.d.ts +3 -0
- package/dist/config/types.d.ts +17 -1
- package/dist/config/zod.d.ts +448 -360
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/index.js +851 -439
- package/dist/loader-runner/index.d.ts +5 -3
- package/dist/loader-runner/service.d.ts +66 -0
- package/dist/loader-runner/utils.d.ts +5 -0
- package/dist/loader-runner/worker.d.ts +14 -0
- package/dist/util/index.d.ts +1 -1
- package/dist/worker.js +1853 -0
- package/package.json +4 -3
@@ -3,7 +3,7 @@ export declare const NamedModuleIdsPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -3,7 +3,7 @@ export declare const NoEmitOnErrorsPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -3,7 +3,7 @@ export declare const NodeTargetPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
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: BuiltinPluginName;
|
5
5
|
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
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: BuiltinPluginName;
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
7
|
-
affectedHooks: "done" | "
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -4,7 +4,7 @@ export declare const ProvidePlugin: {
|
|
4
4
|
new (provide: ProvidePluginOptions): {
|
5
5
|
name: BuiltinPluginName;
|
6
6
|
_args: [provide: ProvidePluginOptions];
|
7
|
-
affectedHooks: "done" | "
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -3,7 +3,7 @@ export declare const RealContentHashPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -3,7 +3,7 @@ export declare const RemoveDuplicateModulesPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -3,7 +3,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BuiltinPluginName, type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorDependency, type JsRsdoctorEntrypoint, type JsRsdoctorEntrypointAssets, type JsRsdoctorExportInfo, type JsRsdoctorModule, type JsRsdoctorModuleGraph, type JsRsdoctorModuleGraphModule, type JsRsdoctorModuleIdsPatch, type JsRsdoctorModuleOriginalSource, type JsRsdoctorModuleSourcesPatch, type JsRsdoctorSideEffect, type JsRsdoctorSourcePosition, type JsRsdoctorSourceRange, type JsRsdoctorStatement, type JsRsdoctorVariable } from "@rspack/binding";
|
2
2
|
import * as liteTapable from "@rspack/lite-tapable";
|
3
|
-
import { Compilation } from "../Compilation";
|
3
|
+
import { type Compilation } from "../Compilation";
|
4
4
|
import type { Compiler } from "../Compiler";
|
5
5
|
import type { CreatePartialRegisters } from "../taps/types";
|
6
6
|
export declare namespace RsdoctorPluginData {
|
@@ -14,7 +14,7 @@ declare const RsdoctorPluginImpl: {
|
|
14
14
|
new (c?: RsdoctorPluginOptions | undefined): {
|
15
15
|
name: BuiltinPluginName;
|
16
16
|
_args: [c?: RsdoctorPluginOptions | undefined];
|
17
|
-
affectedHooks: "done" | "
|
17
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
18
18
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
19
19
|
apply(compiler: Compiler): void;
|
20
20
|
};
|
@@ -4,7 +4,7 @@ export declare const RuntimeChunkPlugin: {
|
|
4
4
|
new (options: RawRuntimeChunkOptions): {
|
5
5
|
name: BuiltinPluginName;
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
7
|
-
affectedHooks: "done" | "
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as binding from "@rspack/binding";
|
2
2
|
import * as liteTapable from "@rspack/lite-tapable";
|
3
3
|
import { Chunk } from "../Chunk";
|
4
|
-
import { Compilation } from "../Compilation";
|
4
|
+
import { type Compilation } from "../Compilation";
|
5
5
|
import type { CreatePartialRegisters } from "../taps/types";
|
6
6
|
export declare const RuntimePluginImpl: {
|
7
7
|
new (): {
|
8
8
|
name: binding.BuiltinPluginName;
|
9
9
|
_args: [];
|
10
|
-
affectedHooks: "done" | "
|
10
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
11
11
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
13
13
|
};
|
@@ -3,7 +3,7 @@ export declare const SideEffectsFlagPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -13,7 +13,7 @@ export declare const SizeLimitsPlugin: {
|
|
13
13
|
maxAssetSize?: number;
|
14
14
|
maxEntrypointSize?: number;
|
15
15
|
}];
|
16
|
-
affectedHooks: "done" | "
|
16
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
17
17
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
18
18
|
apply(compiler: import("..").Compiler): void;
|
19
19
|
};
|
@@ -4,7 +4,7 @@ export declare const SourceMapDevToolPlugin: {
|
|
4
4
|
new (options: RawSourceMapDevToolPluginOptions): {
|
5
5
|
name: BuiltinPluginName;
|
6
6
|
_args: [options: RawSourceMapDevToolPluginOptions];
|
7
|
-
affectedHooks: "done" | "
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -20,7 +20,7 @@ declare const NativeSubresourceIntegrityPlugin: {
|
|
20
20
|
new (options: NativeSubresourceIntegrityPluginOptions): {
|
21
21
|
name: BuiltinPluginName;
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
23
|
-
affectedHooks: "done" | "
|
23
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
24
24
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
25
25
|
apply(compiler: Compiler): void;
|
26
26
|
};
|
@@ -205,7 +205,7 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
205
205
|
new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
|
206
206
|
name: BuiltinPluginName;
|
207
207
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
208
|
-
affectedHooks: "done" | "
|
208
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
209
209
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
210
210
|
apply(compiler: import("..").Compiler): void;
|
211
211
|
};
|
@@ -3,7 +3,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
|
|
14
14
|
new (...args: T): {
|
15
15
|
name: binding.BuiltinPluginName;
|
16
16
|
_args: T;
|
17
|
-
affectedHooks: "done" | "
|
17
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
18
18
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
19
19
|
apply(compiler: Compiler): void;
|
20
20
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from "@rspack/binding";
|
2
2
|
import * as liteTapable from "@rspack/lite-tapable";
|
3
|
-
import { Compilation } from "../../Compilation";
|
3
|
+
import { type Compilation } from "../../Compilation";
|
4
4
|
import type { HtmlRspackPluginOptions } from "./options";
|
5
5
|
type ExtraPluginHookData = {
|
6
6
|
plugin: {
|
@@ -7,7 +7,7 @@ declare const HtmlRspackPluginImpl: {
|
|
7
7
|
new (c?: HtmlRspackPluginOptions | undefined): {
|
8
8
|
name: BuiltinPluginName;
|
9
9
|
_args: [c?: HtmlRspackPluginOptions | undefined];
|
10
|
-
affectedHooks: "done" | "
|
10
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
11
11
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
12
12
|
apply(compiler: Compiler): void;
|
13
13
|
};
|
@@ -31,6 +31,7 @@ export * from "./FlagDependencyUsagePlugin";
|
|
31
31
|
export * from "./HotModuleReplacementPlugin";
|
32
32
|
export * from "./html-plugin/index";
|
33
33
|
export * from "./HttpExternalsRspackPlugin";
|
34
|
+
export * from "./HttpUriPlugin";
|
34
35
|
export * from "./IgnorePlugin";
|
35
36
|
export * from "./InferAsyncModulesPlugin";
|
36
37
|
export * from "./JavascriptModulesPlugin";
|
@@ -18,7 +18,7 @@ export declare const BuiltinLazyCompilationPlugin: {
|
|
18
18
|
data: string;
|
19
19
|
client: string;
|
20
20
|
}, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined];
|
21
|
-
affectedHooks: "done" | "
|
21
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
22
22
|
raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
23
23
|
apply(compiler: import("../..").Compiler): void;
|
24
24
|
};
|
@@ -55,7 +55,7 @@ export interface Diagnostic {
|
|
55
55
|
file?: string;
|
56
56
|
severity: "error" | "warning";
|
57
57
|
}
|
58
|
-
interface LoaderExperiments {
|
58
|
+
export interface LoaderExperiments {
|
59
59
|
emitDiagnostic(diagnostic: Diagnostic): void;
|
60
60
|
}
|
61
61
|
export interface ImportModuleOptions {
|
@@ -331,4 +331,3 @@ export type LoaderDefinition<OptionsType = {}, ContextAdditions = {}> = LoaderDe
|
|
331
331
|
export declare function createRawModuleRuleUses(uses: RuleSetUseItem | RuleSetUseItem[], path: string, options: ComposeJsUseOptions): RawModuleRuleUse[];
|
332
332
|
export declare function isUseSourceMap(devtool: RspackOptionsNormalized["devtool"]): boolean;
|
333
333
|
export declare function isUseSimpleSourceMap(devtool: RspackOptionsNormalized["devtool"]): boolean;
|
334
|
-
export {};
|
@@ -8,6 +8,7 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import type { Compilation } from "../Compilation";
|
11
|
+
import type { HttpUriPluginOptions } from "../builtin-plugin";
|
11
12
|
import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, NoParseOption, Node, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from "./types";
|
12
13
|
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
|
13
14
|
export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
|
@@ -103,6 +104,8 @@ export interface ExperimentsNormalized {
|
|
103
104
|
parallelCodeSplitting?: boolean;
|
104
105
|
futureDefaults?: boolean;
|
105
106
|
rspackFuture?: RspackFutureOptions;
|
107
|
+
buildHttp?: HttpUriPluginOptions;
|
108
|
+
parallelLoader?: boolean;
|
106
109
|
}
|
107
110
|
export type IgnoreWarningsNormalized = ((warning: Error, compilation: Compilation) => boolean)[];
|
108
111
|
export type OptimizationRuntimeChunkNormalized = false | {
|
package/dist/config/types.d.ts
CHANGED
@@ -5,6 +5,7 @@ import type { Compilation, PathData } from "../Compilation";
|
|
5
5
|
import type { Compiler } from "../Compiler";
|
6
6
|
import type { Module } from "../Module";
|
7
7
|
import type ModuleGraph from "../ModuleGraph";
|
8
|
+
import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
|
8
9
|
import type { Chunk } from "../exports";
|
9
10
|
import type { ResolveCallback } from "./adapterRuleUse";
|
10
11
|
export type FilenameTemplate = string;
|
@@ -483,7 +484,7 @@ export type Output = {
|
|
483
484
|
* */
|
484
485
|
export type ResolveAlias = {
|
485
486
|
[x: string]: string | false | (string | false)[];
|
486
|
-
};
|
487
|
+
} | false;
|
487
488
|
/** The replacement of [tsconfig-paths-webpack-plugin](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin) in Rspack. */
|
488
489
|
export type ResolveTsConfig = string | {
|
489
490
|
configFile: string;
|
@@ -594,6 +595,7 @@ export type RuleSetLoaderOptions = string | Record<string, any>;
|
|
594
595
|
export type RuleSetLoaderWithOptions = {
|
595
596
|
ident?: string;
|
596
597
|
loader: RuleSetLoader;
|
598
|
+
parallel?: boolean;
|
597
599
|
options?: RuleSetLoaderOptions;
|
598
600
|
};
|
599
601
|
export type RuleSetUseItem = RuleSetLoader | RuleSetLoaderWithOptions;
|
@@ -1895,6 +1897,10 @@ export type Incremental = {
|
|
1895
1897
|
*/
|
1896
1898
|
emitAssets?: boolean;
|
1897
1899
|
};
|
1900
|
+
/**
|
1901
|
+
* Options for experiments.buildHttp
|
1902
|
+
*/
|
1903
|
+
export type HttpUriOptions = HttpUriPluginOptions;
|
1898
1904
|
/**
|
1899
1905
|
* Experimental features configuration.
|
1900
1906
|
*/
|
@@ -1959,6 +1965,16 @@ export type Experiments = {
|
|
1959
1965
|
* Enable future Rspack features default options.
|
1960
1966
|
*/
|
1961
1967
|
rspackFuture?: RspackFutureOptions;
|
1968
|
+
/**
|
1969
|
+
* Enable loading of modules via HTTP/HTTPS requests.
|
1970
|
+
* @default false
|
1971
|
+
*/
|
1972
|
+
buildHttp?: HttpUriOptions;
|
1973
|
+
/**
|
1974
|
+
* Enable parallel loader
|
1975
|
+
* @default false
|
1976
|
+
*/
|
1977
|
+
parallelLoader?: boolean;
|
1962
1978
|
};
|
1963
1979
|
export type Watch = boolean;
|
1964
1980
|
/** Options for watch mode. */
|