@rspack/core 1.5.6 → 1.5.8
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/RuntimeModule.d.ts +1 -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/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/DeterministicChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
- 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/EsmLibraryPlugin.d.ts +5 -0
- 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/FlagDependencyUsagePlugin.d.ts +1 -2
- 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/MangleExportsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
- 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/NaturalChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
- 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/URLPlugin.d.ts +9 -0
- 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/index.d.ts +2 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +13 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +3 -2
- package/dist/index.js +71 -44
- package/dist/schema/config.d.ts +20 -4
- package/dist/schema/loaders.d.ts +1 -0
- package/dist/worker.js +3 -3
- package/package.json +3 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -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("@rspack/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("@rspack/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("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -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("@rspack/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("@rspack/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("@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: string;
|
|
5
5
|
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | 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: string;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | 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 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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@rspack/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("@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: string;
|
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
|
-
affectedHooks:
|
|
23
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
24
24
|
raw(compiler: Compiler): import("@rspack/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("@rspack/binding").BuiltinPlugin;
|
|
211
211
|
apply(compiler: import("..").Compiler): void;
|
|
212
212
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const URLPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -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("@rspack/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("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
};
|
|
@@ -26,6 +26,7 @@ export * from "./EnableLibraryPlugin";
|
|
|
26
26
|
export * from "./EnableWasmLoadingPlugin";
|
|
27
27
|
export * from "./EnsureChunkConditionsPlugin";
|
|
28
28
|
export * from "./EntryPlugin";
|
|
29
|
+
export * from "./EsmLibraryPlugin";
|
|
29
30
|
export * from "./EvalDevToolModulePlugin";
|
|
30
31
|
export * from "./EvalSourceMapDevToolPlugin";
|
|
31
32
|
export * from "./ExternalsPlugin";
|
|
@@ -76,6 +77,7 @@ export * from "./SourceMapDevToolPlugin";
|
|
|
76
77
|
export * from "./SplitChunksPlugin";
|
|
77
78
|
export * from "./SubresourceIntegrityPlugin";
|
|
78
79
|
export * from "./SwcJsMinimizerPlugin";
|
|
80
|
+
export * from "./URLPlugin";
|
|
79
81
|
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
80
82
|
export * from "./WebWorkerTemplatePlugin";
|
|
81
83
|
export * from "./WorkerPlugin";
|
|
@@ -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("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../..").Compiler): void;
|
|
9
9
|
};
|
package/dist/config/types.d.ts
CHANGED
|
@@ -727,6 +727,11 @@ export type CssModuleParserOptions = {
|
|
|
727
727
|
url?: CssParserUrl;
|
|
728
728
|
};
|
|
729
729
|
type ExportsPresence = "error" | "warn" | "auto" | false;
|
|
730
|
+
export type JavascriptParserCommonjsExports = boolean | "skipInEsm";
|
|
731
|
+
export type JavascriptParserCommonjsOption = boolean | {
|
|
732
|
+
/** Controls how CommonJS export mutations are handled. */
|
|
733
|
+
exports?: JavascriptParserCommonjsExports;
|
|
734
|
+
};
|
|
730
735
|
export type JavascriptParserOptions = {
|
|
731
736
|
/**
|
|
732
737
|
* Specifies global mode for dynamic import.
|
|
@@ -757,7 +762,7 @@ export type JavascriptParserOptions = {
|
|
|
757
762
|
* Enable parsing of new URL() syntax.
|
|
758
763
|
* @default true
|
|
759
764
|
* */
|
|
760
|
-
url?: "relative" | boolean;
|
|
765
|
+
url?: "relative" | "new-url-relative" | boolean;
|
|
761
766
|
/**
|
|
762
767
|
* Enable warnings for full dynamic dependencies
|
|
763
768
|
* @default true
|
|
@@ -795,6 +800,11 @@ export type JavascriptParserOptions = {
|
|
|
795
800
|
requireAsExpression?: boolean;
|
|
796
801
|
requireDynamic?: boolean;
|
|
797
802
|
requireResolve?: boolean;
|
|
803
|
+
/**
|
|
804
|
+
* CommonJS-specific parser options. `true` enables the default behaviour, `{ exports: 'skipInEsm' }` preserves CommonJS export mutations when executed inside ESM.
|
|
805
|
+
* @default true
|
|
806
|
+
*/
|
|
807
|
+
commonjs?: JavascriptParserCommonjsOption;
|
|
798
808
|
importDynamic?: boolean;
|
|
799
809
|
/**
|
|
800
810
|
* Enable magic comments for CommonJS require() expressions.
|
|
@@ -804,6 +814,8 @@ export type JavascriptParserOptions = {
|
|
|
804
814
|
inlineConst?: boolean;
|
|
805
815
|
/** Whether to tolerant exportsPresence for type reexport */
|
|
806
816
|
typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
|
|
817
|
+
/** Whether to enable JSX parsing */
|
|
818
|
+
jsx?: boolean;
|
|
807
819
|
};
|
|
808
820
|
export type JsonParserOptions = {
|
|
809
821
|
/**
|
|
@@ -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("@rspack/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";
|
|
@@ -57,7 +57,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
|
57
57
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
58
58
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
59
59
|
export type { OutputFileSystem } from "./util/fs";
|
|
60
|
-
import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
60
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
61
61
|
interface Web {
|
|
62
62
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
63
63
|
}
|
|
@@ -143,6 +143,7 @@ interface Experiments {
|
|
|
143
143
|
cleanup: () => Promise<void>;
|
|
144
144
|
};
|
|
145
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
146
|
+
EsmLibraryPlugin: typeof EsmLibraryPlugin;
|
|
146
147
|
RsdoctorPlugin: typeof RsdoctorPlugin;
|
|
147
148
|
RstestPlugin: typeof RstestPlugin;
|
|
148
149
|
RslibPlugin: typeof RslibPlugin;
|