@rspack/core 1.0.12 → 1.0.14
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 +0 -1
- package/dist/FileSystem.d.ts +0 -1
- package/dist/NormalModule.d.ts +2 -7
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DataUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FileUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +15 -9
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +2 -2
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -5
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
- package/dist/config/adapterRuleUse.d.ts +0 -1
- package/dist/config/types.d.ts +809 -1
- package/dist/config/zod.d.ts +261 -3709
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +2 -2
- package/dist/exports.d.ts +2 -2
- package/dist/index.js +51 -20
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +0 -1
- package/dist/node/nodeConsole.d.ts +0 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -2
- package/dist/util/fs.d.ts +0 -3
- package/dist/util/hash/BatchedHash.d.ts +0 -1
- package/dist/util/hash/index.d.ts +0 -1
- package/dist/util/hash/wasm-hash.d.ts +0 -1
- package/dist/util/identifier.d.ts +8 -8
- package/dist/util/index.d.ts +0 -1
- package/dist/util/memoize.d.ts +1 -1
- package/dist/util/webpack.d.ts +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ export declare const NaturalModuleIdsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NoEmitOnErrorsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NodeTargetPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ProgressPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
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" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ProvidePlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [provide: ProvidePluginOptions];
|
|
7
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" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RealContentHashPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ export declare const RuntimeChunkPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
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" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RuntimePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const SideEffectsFlagPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { BuiltinPluginName } from "@rspack/binding";
|
|
2
2
|
export declare const SizeLimitsPlugin: {
|
|
3
3
|
new (options: {
|
|
4
|
-
assetFilter?: ((args_0: string, ...
|
|
4
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
5
5
|
hints?: false | "error" | "warning" | undefined;
|
|
6
6
|
maxAssetSize?: number | undefined;
|
|
7
7
|
maxEntrypointSize?: number | undefined;
|
|
8
8
|
}): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [options: {
|
|
11
|
-
assetFilter?: ((args_0: string, ...
|
|
11
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
|
12
12
|
hints?: false | "error" | "warning" | undefined;
|
|
13
13
|
maxAssetSize?: number | undefined;
|
|
14
14
|
maxEntrypointSize?: number | undefined;
|
|
15
15
|
}];
|
|
16
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" | undefined;
|
|
17
|
-
raw(compiler: import("
|
|
18
|
-
apply(compiler: import("
|
|
17
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
18
|
+
apply(compiler: import("..").Compiler): void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -17,8 +17,8 @@ export declare const SourceMapDevToolPlugin: {
|
|
|
17
17
|
name: BuiltinPluginName;
|
|
18
18
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
19
19
|
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" | undefined;
|
|
20
|
-
raw(compiler: import("
|
|
21
|
-
apply(compiler: import("
|
|
20
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
21
|
+
apply(compiler: import("..").Compiler): void;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -206,8 +206,8 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
206
206
|
name: BuiltinPluginName;
|
|
207
207
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
208
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" | undefined;
|
|
209
|
-
raw(compiler: import("
|
|
210
|
-
apply(compiler: import("
|
|
209
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
210
|
+
apply(compiler: import("..").Compiler): void;
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
213
|
export {};
|
|
@@ -4,7 +4,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const WebWorkerTemplatePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
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" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@ import type { LoaderContext, LoaderDefinition } from "../..";
|
|
|
2
2
|
export declare const BASE_URI = "webpack://";
|
|
3
3
|
export declare const MODULE_TYPE = "css/mini-extract";
|
|
4
4
|
export declare const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
|
|
5
|
-
export declare const ABSOLUTE_PUBLIC_PATH
|
|
5
|
+
export declare const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
|
|
6
6
|
export declare const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
|
|
7
7
|
export interface CssExtractRspackLoaderOptions {
|
|
8
8
|
publicPath?: string | ((resourcePath: string, context: string) => string);
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
/// <reference types="node" />
|
|
5
1
|
import type { IncomingMessage, ServerOptions as ServerOptionsImport, ServerResponse } from "node:http";
|
|
6
2
|
import type { ListenOptions, Server } from "node:net";
|
|
7
3
|
import type { SecureContextOptions, TlsOptions } from "node:tls";
|
|
@@ -37,7 +33,7 @@ declare const getBackend: (options: Omit<LazyCompilationDefaultBackendOptions, "
|
|
|
37
33
|
client: string;
|
|
38
34
|
active: boolean;
|
|
39
35
|
};
|
|
40
|
-
}
|
|
36
|
+
}) => void) => void;
|
|
41
37
|
export default getBackend;
|
|
42
38
|
export declare function dispose(callback: any): void;
|
|
43
39
|
export declare function moduleImpl(args: {
|
|
@@ -18,7 +18,7 @@ export declare const BuiltinLazyCompilationPlugin: {
|
|
|
18
18
|
client: string;
|
|
19
19
|
}, cacheable: boolean, entries: boolean, imports: boolean, test?: RawRegex | ((m: JsModule) => boolean) | undefined];
|
|
20
20
|
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" | undefined;
|
|
21
|
-
raw(compiler: import("
|
|
22
|
-
apply(compiler: import("
|
|
21
|
+
raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
22
|
+
apply(compiler: import("../..").Compiler): void;
|
|
23
23
|
};
|
|
24
24
|
};
|