Socket
Socket
Sign inDemoInstall

@rspack/core

Package Overview
Dependencies
Maintainers
2
Versions
1085
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/core - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0-beta.1

dist/lib/IgnoreWarningsPlugin.d.ts

2

dist/builtin-plugin/APIPlugin.d.ts

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -12,9 +12,9 @@ import { BuiltinPluginName, type JsChunk } from "@rspack/binding";

}, "strip", z.ZodTypeAny, {
filename: string;
hash: string;
chunk: JsChunk;
}, {
filename: string;
}, {
hash: string;
chunk: JsChunk;
filename: string;
}>], z.ZodUnknown>, z.ZodString>;

@@ -27,9 +27,9 @@ export type BannerFunction = z.infer<typeof bannerFunction>;

}, "strip", z.ZodTypeAny, {
filename: string;
hash: string;
chunk: JsChunk;
}, {
filename: string;
}, {
hash: string;
chunk: JsChunk;
filename: string;
}>], z.ZodUnknown>, z.ZodString>]>;

@@ -43,9 +43,9 @@ export type BannerContent = z.infer<typeof bannerContent>;

}, "strip", z.ZodTypeAny, {
filename: string;
hash: string;
chunk: JsChunk;
}, {
filename: string;
}, {
hash: string;
chunk: JsChunk;
filename: string;
}>], z.ZodUnknown>, z.ZodString>]>;

@@ -61,26 +61,26 @@ entryOnly: z.ZodOptional<z.ZodBoolean>;

banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}, {
banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}>;

@@ -93,9 +93,9 @@ export type BannerPluginOptions = z.infer<typeof bannerPluginOptions>;

}, "strip", z.ZodTypeAny, {
filename: string;
hash: string;
chunk: JsChunk;
}, {
filename: string;
}, {
hash: string;
chunk: JsChunk;
filename: string;
}>], z.ZodUnknown>, z.ZodString>]>, z.ZodObject<{

@@ -107,9 +107,9 @@ banner: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{

}, "strip", z.ZodTypeAny, {
filename: string;
hash: string;
chunk: JsChunk;
}, {
filename: string;
}, {
hash: string;
chunk: JsChunk;
filename: string;
}>], z.ZodUnknown>, z.ZodString>]>;

@@ -125,26 +125,26 @@ entryOnly: z.ZodOptional<z.ZodBoolean>;

banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}, {
banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}>]>;

@@ -154,39 +154,39 @@ export type BannerPluginArgument = z.infer<typeof bannerPluginArgument>;

new (args: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string) | {
banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}): {
name: BuiltinPluginName;
_args: [args: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string) | {
banner: string | ((args_0: {
filename: string;
hash: string;
chunk: JsChunk;
filename: string;
}, ...args_1: unknown[]) => string);
test?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
test?: string | RegExp | (string | RegExp)[] | undefined;
}];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -193,0 +193,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -17,3 +17,3 @@ import type * as binding from "@rspack/binding";

_args: T;
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: Compiler): binding.BuiltinPlugin;

@@ -20,0 +20,0 @@ apply(compiler: Compiler): void;

@@ -11,3 +11,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [options: BundleInfoOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -14,0 +14,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -11,3 +11,3 @@ import { BuiltinPluginName, type RawCopyPattern } from "@rspack/binding";

_args: [copy: CopyRspackPluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -14,0 +14,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -1,6 +0,6 @@

import type { LoaderDefinition } from "../..";
import type { LoaderContext, LoaderDefinition } from "../..";
export declare const BASE_URI = "webpack://";
export declare const MODULE_TYPE = "css/mini-extract";
export declare const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
export declare const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
export declare const BASE_URI = "webpack://";
export declare const ABSOLUTE_PUBLIC_PATH: string;
export declare const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";

@@ -14,4 +14,9 @@ export interface CssExtractRspackLoaderOptions {

}
export declare function hotLoader(content: string, context: {
loaderContext: LoaderContext;
options?: CssExtractRspackLoaderOptions;
locals?: Record<string, string>;
}): string;
declare const loader: LoaderDefinition;
export declare const pitch: LoaderDefinition["pitch"];
export default loader;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.pitch = exports.SINGLE_DOT_PATH_SEGMENT = exports.BASE_URI = exports.ABSOLUTE_PUBLIC_PATH = exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0;
exports.pitch = exports.hotLoader = exports.SINGLE_DOT_PATH_SEGMENT = exports.ABSOLUTE_PUBLIC_PATH = exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = exports.BASE_URI = void 0;
const node_path_1 = __importDefault(require("node:path"));

@@ -12,24 +12,35 @@ const index_1 = require("./index");

const utils_1 = require("./utils");
exports.BASE_URI = "webpack://";
exports.MODULE_TYPE = "css/mini-extract";
exports.AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
exports.ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
exports.BASE_URI = "webpack://";
exports.ABSOLUTE_PUBLIC_PATH = exports.BASE_URI + "/mini-css-extract-plugin/";
exports.SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
const SERIALIZE_SEP = "__RSPACK_CSS_EXTRACT_SEP__";
function hotLoader(content, context) {
const accept = context.locals
? ""
: "module.hot.accept(undefined, cssReload);";
const localsJsonString = JSON.stringify(JSON.stringify(context.locals));
return `${content}
if(module.hot) {
// ${Date.now()}
var cssReload = require(${(0, utils_1.stringifyRequest)(context.loaderContext, node_path_1.default.join(__dirname, "./hmr/hotModuleReplacement.js"))}).cssReload(module.id, ${JSON.stringify({
...context.options,
locals: !!context.locals
})});
module.hot.dispose(cssReload);
${accept}
(function() {
var localsJsonString = ${localsJsonString};
// ${Date.now()}
var cssReload = require(${(0, utils_1.stringifyRequest)(context.loaderContext, node_path_1.default.join(__dirname, "hmr/hotModuleReplacement.js"))}).cssReload(module.id, ${JSON.stringify(context.options ?? {})});
// only invalidate when locals change
if (
module.hot.data &&
module.hot.data.value &&
module.hot.data.value !== localsJsonString
) {
module.hot.invalidate();
} else {
module.hot.accept();
}
module.hot.dispose(function(data) {
data.value = localsJsonString;
cssReload();
});
})();
}
`;
}
exports.hotLoader = hotLoader;
const loader = function loader(content) {

@@ -36,0 +47,0 @@ if (this._compiler &&

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [define: DefinePluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [context: string, entry: EntryDynamicNormalized];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [context?: string | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [type: any];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [type: any];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

import { BuiltinPluginName, type RawEntryOptions } from "@rspack/binding";
import { type ChunkLoading, type EntryRuntime, type Filename, type LibraryOptions, type PublicPath } from "../config";
import { type ChunkLoading, type EntryRuntime, type Filename, type Layer, type LibraryOptions, type PublicPath } from "../config";
export type EntryOptions = {

@@ -12,2 +12,3 @@ name?: string;

library?: LibraryOptions;
layer?: Layer;
dependOn?: string[];

@@ -19,3 +20,3 @@ };

_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -22,0 +23,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -30,2 +30,3 @@ "use strict";

library: entry.library && (0, config_1.getRawLibrary)(entry.library),
layer: entry.layer ?? undefined,
dependOn: entry.dependOn

@@ -32,0 +33,0 @@ };

@@ -7,3 +7,3 @@ import { BuiltinPluginName, type RawEvalDevToolModulePluginOptions } from "@rspack/binding";

_args: [options: RawEvalDevToolModulePluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [options: SourceMapDevToolPluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -10,3 +10,3 @@ import { BuiltinPluginName } from "@rspack/binding";

} | undefined;
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;

@@ -25,3 +25,3 @@ dependencyType?: string | undefined;

} | undefined;
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;

@@ -42,3 +42,3 @@ dependencyType?: string | undefined;

} | undefined;
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;

@@ -57,3 +57,3 @@ dependencyType?: string | undefined;

} | undefined;
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;

@@ -66,3 +66,3 @@ dependencyType?: string | undefined;

}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[]];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -69,0 +69,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [global: boolean];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -19,5 +19,5 @@ import { BuiltinPluginName } from "@rspack/binding";

}, "strict", z.ZodTypeAny, {
filename?: string | undefined;
publicPath?: string | undefined;
chunks?: string[] | undefined;
publicPath?: string | undefined;
filename?: string | undefined;
template?: string | undefined;

@@ -35,5 +35,5 @@ templateContent?: string | undefined;

}, {
filename?: string | undefined;
publicPath?: string | undefined;
chunks?: string[] | undefined;
publicPath?: string | undefined;
filename?: string | undefined;
template?: string | undefined;

@@ -54,5 +54,5 @@ templateContent?: string | undefined;

new (c?: {
filename?: string | undefined;
publicPath?: string | undefined;
chunks?: string[] | undefined;
publicPath?: string | undefined;
filename?: string | undefined;
template?: string | undefined;

@@ -72,5 +72,5 @@ templateContent?: string | undefined;

_args: [c?: {
filename?: string | undefined;
publicPath?: string | undefined;
chunks?: string[] | undefined;
publicPath?: string | undefined;
filename?: string | undefined;
template?: string | undefined;

@@ -88,3 +88,3 @@ templateContent?: string | undefined;

} | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -91,0 +91,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [css: boolean, webAsync: boolean];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -12,3 +12,3 @@ import { BuiltinPluginName, type RawIgnorePluginOptions } from "@rspack/binding";

_args: [options: IgnorePluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -15,0 +15,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [compiler: Compiler];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -20,3 +20,3 @@ import { BuiltinPluginName, type JsModule, type RawRegex } from "@rspack/binding";

}, cacheable: boolean, entries: boolean, imports: boolean, test?: RawRegex | ((m: JsModule) => boolean) | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -23,0 +23,0 @@ apply(compiler: import("../../Compiler").Compiler): void;

import { BuiltinPluginName, type RawLightningCssMinimizerRspackPluginOptions } from "@rspack/binding";
type MinifyCondition = string | RegExp;
type MinifyConditions = MinifyCondition | MinifyCondition[];
export type LightningCssMinimizerRspackPluginOptions = Partial<RawLightningCssMinimizerRspackPluginOptions> & {
test?: MinifyConditions;
exclude?: MinifyConditions;
include?: MinifyConditions;
};
export type LightningCssMinimizerRspackPluginOptions = Partial<RawLightningCssMinimizerRspackPluginOptions>;
export declare const LightningCssMinimizerRspackPlugin: {
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
new (options?: Partial<RawLightningCssMinimizerRspackPluginOptions> | undefined): {
name: BuiltinPluginName;
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
_args: [options?: Partial<RawLightningCssMinimizerRspackPluginOptions> | undefined];
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -18,2 +12,1 @@ apply(compiler: import("../Compiler").Compiler): void;

};
export {};

@@ -11,3 +11,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [options: LimitChunkCountOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -14,0 +14,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [deterministic: boolean];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName, type RawProgressPluginOptions } from "@rspack/binding";

_args: [progress?: ProgressPluginArgument];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [provide: ProvidePluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -7,3 +7,3 @@ import { BuiltinPluginName, type RawRuntimeChunkOptions } from "@rspack/binding";

_args: [options: RawRuntimeChunkOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -10,0 +10,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -16,3 +16,3 @@ import { BuiltinPluginName } from "@rspack/binding";

}];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -19,0 +19,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -19,3 +19,3 @@ import { BuiltinPluginName, type RawSourceMapDevToolPluginOptions } from "@rspack/binding";

_args: [options: SourceMapDevToolPluginOptions];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -22,0 +22,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -13,3 +13,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [options?: SwcCssMinimizerRspackPluginOptions | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -16,0 +16,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -207,3 +207,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -210,0 +210,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -204,3 +204,3 @@ /**

};
getCache(name: string): import("./lib/CacheFacade");
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
createStatsOptions(optionsOrPreset: StatsValue | undefined, context?: CreateStatsOptionsContext): NormalizedStatsOptions;

@@ -207,0 +207,0 @@ createStatsFactory(options: StatsOptions): StatsFactory;

@@ -13,18 +13,19 @@ /// <reference types="node" />

import * as liteTapable from "@rspack/lite-tapable";
import type Watchpack from "../compiled/watchpack";
import { Compilation, type CompilationParams } from "./Compilation";
import Cache from "./lib/Cache";
import CacheFacade from "./lib/CacheFacade";
import { Chunk } from "./Chunk";
import { Compilation } from "./Compilation";
import { ContextModuleFactory } from "./ContextModuleFactory";
import { NormalModuleFactory } from "./NormalModuleFactory";
import { ResolverFactory } from "./ResolverFactory";
import { RuleSetCompiler } from "./RuleSetCompiler";
import { Stats } from "./Stats";
import { type EntryNormalized, type OutputNormalized, type RspackOptionsNormalized, type RspackPluginInstance } from "./config";
import { Watching } from "./Watching";
import { rspack } from "./index";
import Cache = require("./lib/Cache");
import CacheFacade = require("./lib/CacheFacade");
import { Logger } from "./logging/Logger";
import type Watchpack from "../compiled/watchpack";
import type { Source } from "../compiled/webpack-sources";
import { Chunk } from "./Chunk";
import type { CompilationParams } from "./Compilation";
import type { FileSystemInfoEntry } from "./FileSystemInfo";
import { NormalModuleFactory } from "./NormalModuleFactory";
import { ResolverFactory } from "./ResolverFactory";
import { Watching } from "./Watching";
import { Logger } from "./logging/Logger";
import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config";
import type { OutputFileSystem, WatchFileSystem } from "./util/fs";

@@ -31,0 +32,0 @@ export interface AssetEmittedInfo {

@@ -53,20 +53,21 @@ "use strict";

const liteTapable = __importStar(require("@rspack/lite-tapable"));
const ExecuteModulePlugin_1 = __importDefault(require("./ExecuteModulePlugin"));
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
const Cache_1 = __importDefault(require("./lib/Cache"));
const CacheFacade_1 = __importDefault(require("./lib/CacheFacade"));
const RuntimeGlobals_1 = require("./RuntimeGlobals");
const builtin_plugin_1 = require("./builtin-plugin");
const Chunk_1 = require("./Chunk");
const Compilation_1 = require("./Compilation");
const ContextModuleFactory_1 = require("./ContextModuleFactory");
const FileSystem_1 = require("./FileSystem");
const Module_1 = require("./Module");
const NormalModuleFactory_1 = require("./NormalModuleFactory");
const ResolverFactory_1 = require("./ResolverFactory");
const RuleSetCompiler_1 = require("./RuleSetCompiler");
const Stats_1 = require("./Stats");
const Watching_1 = require("./Watching");
const config_1 = require("./config");
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
const index_1 = require("./index");
const Cache = require("./lib/Cache");
const CacheFacade = require("./lib/CacheFacade");
const Chunk_1 = require("./Chunk");
const ExecuteModulePlugin_1 = __importDefault(require("./ExecuteModulePlugin"));
const Module_1 = require("./Module");
const NormalModuleFactory_1 = require("./NormalModuleFactory");
const ResolverFactory_1 = require("./ResolverFactory");
const RuntimeGlobals_1 = require("./RuntimeGlobals");
const Watching_1 = require("./Watching");
const builtin_plugin_1 = require("./builtin-plugin");
const util_1 = require("./util");
const base_1 = require("./builtin-plugin/base");

@@ -76,3 +77,2 @@ const defaults_1 = require("./config/defaults");

const Logger_1 = require("./logging/Logger");
const util_1 = require("./util");
const assertNotNil_1 = require("./util/assertNotNil");

@@ -152,3 +152,3 @@ const bindingVersionCheck_1 = require("./util/bindingVersionCheck");

this.context = context;
this.cache = new Cache();
this.cache = new Cache_1.default();
this.compilerPath = "";

@@ -195,3 +195,3 @@ this.running = false;

getCache(name) {
return new CacheFacade(this.cache, `${this.compilerPath}${name}`, this.options.output.hashFunction);
return new CacheFacade_1.default(this.cache, `${this.compilerPath}${name}`, this.options.output.hashFunction);
}

@@ -198,0 +198,0 @@ /**

@@ -142,2 +142,3 @@ "use strict";

importFunctionName: output.importFunctionName,
importMetaName: output.importMetaName,
iife: output.iife,

@@ -282,2 +283,5 @@ module: output.module,

issuer: rule.issuer ? getRawRuleSetCondition(rule.issuer) : undefined,
issuerLayer: rule.issuerLayer
? getRawRuleSetCondition(rule.issuerLayer)
: undefined,
dependency: rule.dependency

@@ -292,2 +296,8 @@ ? getRawRuleSetCondition(rule.dependency)

: undefined,
with: rule.with
? Object.fromEntries(Object.entries(rule.with).map(([k, v]) => [
k,
getRawRuleSetCondition(v)
]))
: undefined,
resource: rule.resource ? getRawRuleSetCondition(rule.resource) : undefined,

@@ -307,2 +317,3 @@ resourceQuery: rule.resourceQuery

type: rule.type,
layer: rule.layer,
parser: rule.parser

@@ -465,2 +476,3 @@ ? getRawParserOptions(rule.parser, rule.type ?? upperType)

dynamicImportFetchPriority: parser.dynamicImportFetchPriority?.toString(),
importMeta: parser.importMeta ?? true,
url: parser.url === false

@@ -637,5 +649,6 @@ ? "false"

function getRawExperiments(experiments) {
const { topLevelAwait, rspackFuture } = experiments;
(0, node_assert_1.default)(!(0, util_1.isNil)(topLevelAwait) && !(0, util_1.isNil)(rspackFuture));
const { topLevelAwait, layers, rspackFuture } = experiments;
(0, node_assert_1.default)(!(0, util_1.isNil)(topLevelAwait) && !(0, util_1.isNil)(rspackFuture) && !(0, util_1.isNil)(layers));
return {
layers,
topLevelAwait,

@@ -642,0 +655,0 @@ rspackFuture: getRawRspackFutureOptions(rspackFuture)

@@ -33,8 +33,8 @@ "use strict";

if (o.targets && Array.isArray(o.targets)) {
o.targets = (0, lightningcss_1.browserslistToTargets)(o.targets);
o.targets = (0, lightningcss_1.browserslistToTargets)(browserslist(o.targets));
}
if (o.include) {
if (o.include && typeof o.include === "object") {
o.include = (0, lightningcss_1.toFeatures)(o.include);
}
if (o.exclude) {
if (o.exclude && typeof o.exclude === "object") {
o.exclude = (0, lightningcss_1.toFeatures)(o.exclude);

@@ -41,0 +41,0 @@ }

@@ -129,2 +129,3 @@ "use strict";

D(experiments, "css", experiments.futureDefaults ? true : undefined);
D(experiments, "layers", false);
D(experiments, "topLevelAwait", true);

@@ -156,2 +157,3 @@ // IGNORE(experiments.rspackFuture): Rspack specific configuration

D(parserOptions, "overrideStrict", fallback?.overrideStrict ?? undefined);
D(parserOptions, "importMeta", fallback?.importMeta ?? true);
};

@@ -321,12 +323,6 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }) => {

]
}
// {
// assert: { type: "json" },
// type: "json"
// },
// {
// with: { type: "json" },
// type: "json"
// }
);
}, {
with: { type: "json" },
type: "json"
});
return rules;

@@ -536,2 +532,3 @@ });

D(output, "importFunctionName", "import");
D(output, "importMetaName", "import.meta");
// IGNORE(output.clean): The default value of `output.clean` in webpack is undefined, but it has the same effect as false.

@@ -538,0 +535,0 @@ F(output, "clean", () => !!output.clean);

@@ -11,3 +11,3 @@ /**

import type { Compilation } from "../Compilation";
import type { AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryFilename, EntryRuntime, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, 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 "./zod";
import type { AssetModuleFilename, AsyncChunks, Bail, BaseUri, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryFilename, EntryRuntime, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, InfrastructureLogging, Layer, 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 "./zod";
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;

@@ -23,8 +23,9 @@ export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;

chunkLoading?: ChunkLoading;
asyncChunks?: boolean;
asyncChunks?: AsyncChunks;
publicPath?: PublicPath;
baseUri?: string;
baseUri?: BaseUri;
filename?: EntryFilename;
library?: LibraryOptions;
dependOn?: string[];
layer?: Layer;
}

@@ -53,2 +54,3 @@ export interface OutputNormalized {

importFunctionName?: ImportFunctionName;
importMetaName?: ImportMetaName;
iife?: Iife;

@@ -92,2 +94,3 @@ wasmLoading?: WasmLoading;

css?: boolean;
layers?: boolean;
futureDefaults?: boolean;

@@ -94,0 +97,0 @@ rspackFuture?: RspackFutureOptions;

@@ -78,2 +78,3 @@ "use strict";

importFunctionName: output.importFunctionName,
importMetaName: output.importMetaName,
iife: output.iife,

@@ -244,2 +245,3 @@ module: output.module,

library: value.library,
layer: value.layer,
dependOn: Array.isArray(value.dependOn)

@@ -246,0 +248,0 @@ ? value.dependOn

@@ -96,2 +96,3 @@ "use strict";

const library = libraryName.or(libraryOptions).optional();
const layer = zod_1.z.string().or(zod_1.z.null());
const entryFilename = filename;

@@ -111,3 +112,4 @@ const entryRuntime = zod_1.z.literal(false).or(zod_1.z.string());

library: libraryOptions.optional(),
dependOn: entryDependOn.optional()
dependOn: entryDependOn.optional(),
layer: layer.optional()
});

@@ -143,2 +145,3 @@ const entryUnnamed = entryItem;

const importFunctionName = zod_1.z.string();
const importMetaName = zod_1.z.string();
const iife = zod_1.z.boolean();

@@ -205,2 +208,3 @@ const enabledChunkLoadingTypes = zod_1.z.array(chunkLoadingType);

importFunctionName: importFunctionName.optional(),
importMetaName: importMetaName.optional(),
iife: iife.optional(),

@@ -298,2 +302,3 @@ wasmLoading: wasmLoading.optional(),

issuer: ruleSetCondition.optional(),
issuerLayer: ruleSetCondition.optional(),
dependency: ruleSetCondition.optional(),

@@ -306,3 +311,5 @@ resource: ruleSetCondition.optional(),

descriptionData: zod_1.z.record(ruleSetCondition).optional(),
with: zod_1.z.record(ruleSetCondition).optional(),
type: zod_1.z.string().optional(),
layer: zod_1.z.string().optional(),
loader: ruleSetLoader.optional(),

@@ -361,2 +368,3 @@ options: ruleSetLoaderOptions.optional(),

dynamicImportFetchPriority: dynamicImportFetchPriority.optional(),
importMeta: zod_1.z.boolean().optional(),
url: javascriptParserUrl.optional(),

@@ -867,2 +875,3 @@ exprContextCritical: exprContextCritical.optional(),

css: zod_1.z.boolean().optional(),
layers: zod_1.z.boolean().optional(),
futureDefaults: zod_1.z.boolean().optional(),

@@ -869,0 +878,0 @@ rspackFuture: rspackFutureOptions.optional()

@@ -24,3 +24,3 @@ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";

_options: {
remoteType: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs";
remoteType: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs";
remotes: [string, {

@@ -27,0 +27,0 @@ external: string[];

@@ -6,3 +6,3 @@ import { BuiltinPluginName } from "@rspack/binding";

_args: [];
affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
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;
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;

@@ -9,0 +9,0 @@ apply(compiler: import("../Compiler").Compiler): void;

@@ -36,3 +36,3 @@ declare const rspackVersion: any, webpackVersion: any;

export declare const util: {
createHash: (algorithm: "debug" | "md4" | "xxhash64" | (string & {}) | "native-md4" | (new () => import("./util/hash").default)) => import("./util/hash").default;
createHash: (algorithm: (string & {}) | "debug" | "xxhash64" | "md4" | "native-md4" | (new () => import("./util/hash").default)) => import("./util/hash").default;
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);

@@ -39,0 +39,0 @@ };

@@ -1,3 +0,12 @@

export = AbstractMethodError;
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/AbstractMethodError.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import WebpackError from "./WebpackError";
/**
* Error for abstract method

@@ -12,5 +21,5 @@ * @example

*/
declare class AbstractMethodError extends WebpackError {
export declare class AbstractMethodError extends WebpackError {
constructor();
}
import WebpackError = require("./WebpackError");
export default AbstractMethodError;

@@ -1,11 +0,21 @@

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Ivan Kopeykin @vankop
*/
"use strict";
const WebpackError = require("./WebpackError");
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/AbstractMethodError.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractMethodError = void 0;
const WebpackError_1 = __importDefault(require("./WebpackError"));
const CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
/**
* @param {string=} method method name
* @returns {string} message
* @param method method name
* @returns message
*/

@@ -15,14 +25,11 @@ function createMessage(method) {

}
/**
* @constructor
*/
function Message() {
/** @type {string} */
// @ts-expect-error
this.stack = undefined;
Error.captureStackTrace(this);
/** @type {RegExpMatchArray} */
// @ts-expect-error
const match = this.stack.split("\n")[3].match(CURRENT_METHOD_REGEXP);
this.message = match && match[1] ? createMessage(match[1]) : createMessage();
class Message extends Error {
constructor() {
super();
this.stack = undefined;
Error.captureStackTrace(this);
const match = this.stack.split("\n")[3].match(CURRENT_METHOD_REGEXP);
this.message =
match && match[1] ? createMessage(match[1]) : createMessage();
}
}

@@ -39,3 +46,3 @@ /**

*/
class AbstractMethodError extends WebpackError {
class AbstractMethodError extends WebpackError_1.default {
constructor() {

@@ -46,2 +53,3 @@ super(new Message().message);

}
module.exports = AbstractMethodError;
exports.AbstractMethodError = AbstractMethodError;
exports.default = AbstractMethodError;

@@ -1,71 +0,65 @@

export = Cache;
declare class Cache {
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/Cache.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from "@rspack/lite-tapable";
import type { WebpackError } from "./WebpackError";
export interface Etag {
toString(): string;
}
export type CallbackCache<T> = (err?: WebpackError | null, result?: T) => void;
type GotHandler<T = any> = (result: any | null, callback: (error: Error) => void) => void;
export declare class Cache {
static STAGE_DISK: number;
static STAGE_MEMORY: number;
static STAGE_DEFAULT: number;
static STAGE_NETWORK: number;
hooks: {
/** @type {AsyncSeriesBailHook<[string, Etag | null, GotHandler[]], any>} */
get: AsyncSeriesBailHook<[string, Etag | null, GotHandler[]], any>;
/** @type {AsyncParallelHook<[string, Etag | null, any]>} */
store: AsyncParallelHook<[string, Etag | null, any]>;
/** @type {AsyncParallelHook<[Iterable<string>]>} */
storeBuildDependencies: AsyncParallelHook<[Iterable<string>]>;
/** @type {SyncHook<[]>} */
beginIdle: SyncHook<[]>;
/** @type {AsyncParallelHook<[]>} */
endIdle: AsyncParallelHook<[]>;
/** @type {AsyncParallelHook<[]>} */
shutdown: AsyncParallelHook<[]>;
};
constructor();
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {CallbackCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param callback signals when the value is retrieved
* @returns
*/
get<T>(identifier: string, etag: Etag | null, callback: CallbackCache<T>): void;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {T} data the value to store
* @param {CallbackCache<void>} callback signals when the value is stored
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param data the value to store
* @param callback signals when the value is stored
* @returns
*/
store<T_1>(identifier: string, etag: Etag | null, data: T_1, callback: CallbackCache<void>): void;
store<T>(identifier: string, etag: Etag | null, data: T, callback: CallbackCache<void>): void;
/**
* After this method has succeeded the cache can only be restored when build dependencies are
* @param {Iterable<string>} dependencies list of all build dependencies
* @param {CallbackCache<void>} callback signals when the dependencies are stored
* @returns {void}
* @param dependencies list of all build dependencies
* @param callback signals when the dependencies are stored
* @returns
*/
storeBuildDependencies(dependencies: Iterable<string>, callback: CallbackCache<void>): void;
/**
* @returns {void}
*/
beginIdle(): void;
/**
* @param {CallbackCache<void>} callback signals when the call finishes
* @returns {void}
* @param callback signals when the call finishes
* @returns
*/
endIdle(callback: CallbackCache<void>): void;
/**
* @param {CallbackCache<void>} callback signals when the call finishes
* @returns {void}
* @param callback signals when the call finishes
* @returns
*/
shutdown(callback: CallbackCache<void>): void;
}
declare namespace Cache {
export { STAGE_MEMORY, STAGE_DEFAULT, STAGE_DISK, STAGE_NETWORK, WebpackError, Etag, CallbackCache, GotHandler };
}
import { AsyncSeriesBailHook } from "@rspack/lite-tapable";
type Etag = {
toString: () => string;
};
type GotHandler = (result: any, callback: (arg0: Error | undefined) => void) => void;
import { AsyncParallelHook } from "@rspack/lite-tapable";
import { SyncHook } from "@rspack/lite-tapable";
type CallbackCache<T> = (err?: (WebpackError | null) | undefined, result?: T | undefined) => void;
declare var STAGE_MEMORY: number;
declare var STAGE_DEFAULT: number;
declare var STAGE_DISK: number;
declare var STAGE_NETWORK: number;
type WebpackError = import("./WebpackError");
export default Cache;

@@ -1,36 +0,23 @@

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } = require("@rspack/lite-tapable");
const { makeWebpackError, makeWebpackErrorCallback } = require("./HookWebpackError.js");
/** @typedef {import("./WebpackError")} WebpackError */
/**
* @typedef {Object} Etag
* @property {function(): string} toString
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/Cache.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
/**
* @template T
* @callback CallbackCache
* @param {(WebpackError | null)=} err
* @param {T=} result
* @returns {void}
*/
/**
* @callback GotHandler
* @param {any} result
* @param {function(Error=): void} callback
* @returns {void}
*/
// @ts-expect-error
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cache = void 0;
const lite_tapable_1 = require("@rspack/lite-tapable");
const HookWebpackError_1 = require("./HookWebpackError");
const needCalls = (times, callback) => {
// @ts-expect-error
return err => {
if (--times === 0) {
return callback(err);
return callback();
}
if (err && times > 0) {
times = 0;
return callback(err);
return callback();
}

@@ -42,30 +29,21 @@ };

this.hooks = {
/** @type {AsyncSeriesBailHook<[string, Etag | null, GotHandler[]], any>} */
get: new AsyncSeriesBailHook(["identifier", "etag", "gotHandlers"]),
/** @type {AsyncParallelHook<[string, Etag | null, any]>} */
store: new AsyncParallelHook(["identifier", "etag", "data"]),
/** @type {AsyncParallelHook<[Iterable<string>]>} */
storeBuildDependencies: new AsyncParallelHook(["dependencies"]),
/** @type {SyncHook<[]>} */
beginIdle: new SyncHook([]),
/** @type {AsyncParallelHook<[]>} */
endIdle: new AsyncParallelHook([]),
/** @type {AsyncParallelHook<[]>} */
shutdown: new AsyncParallelHook([])
get: new lite_tapable_1.AsyncSeriesBailHook(["identifier", "etag", "gotHandlers"]),
store: new lite_tapable_1.AsyncParallelHook(["identifier", "etag", "data"]),
storeBuildDependencies: new lite_tapable_1.AsyncParallelHook(["dependencies"]),
beginIdle: new lite_tapable_1.SyncHook([]),
endIdle: new lite_tapable_1.AsyncParallelHook([]),
shutdown: new lite_tapable_1.AsyncParallelHook([])
};
}
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {CallbackCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param callback signals when the value is retrieved
* @returns
*/
get(identifier, etag, callback) {
// @ts-expect-error
const gotHandlers = [];
// @ts-expect-error
this.hooks.get.callAsync(identifier, etag, gotHandlers, (err, result) => {
if (err) {
callback(makeWebpackError(err, "Cache.hooks.get"));
callback((0, HookWebpackError_1.makeWebpackError)(err, "Cache.hooks.get"));
return;

@@ -78,3 +56,2 @@ }

const innerCallback = needCalls(gotHandlers.length, () => callback(null, result));
// @ts-expect-error
for (const gotHandler of gotHandlers) {

@@ -85,3 +62,2 @@ gotHandler(result, innerCallback);

else if (gotHandlers.length === 1) {
// @ts-expect-error
gotHandlers[0](result, () => callback(null, result));

@@ -95,28 +71,20 @@ }

/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {T} data the value to store
* @param {CallbackCache<void>} callback signals when the value is stored
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param data the value to store
* @param callback signals when the value is stored
* @returns
*/
store(identifier, etag, data, callback) {
this.hooks.store.callAsync(identifier, etag, data,
// @ts-expect-error
makeWebpackErrorCallback(callback, "Cache.hooks.store"));
this.hooks.store.callAsync(identifier, etag, data, (0, HookWebpackError_1.makeWebpackErrorCallback)(callback, "Cache.hooks.store"));
}
/**
* After this method has succeeded the cache can only be restored when build dependencies are
* @param {Iterable<string>} dependencies list of all build dependencies
* @param {CallbackCache<void>} callback signals when the dependencies are stored
* @returns {void}
* @param dependencies list of all build dependencies
* @param callback signals when the dependencies are stored
* @returns
*/
storeBuildDependencies(dependencies, callback) {
this.hooks.storeBuildDependencies.callAsync(dependencies,
// @ts-expect-error
makeWebpackErrorCallback(callback, "Cache.hooks.storeBuildDependencies"));
this.hooks.storeBuildDependencies.callAsync(dependencies, (0, HookWebpackError_1.makeWebpackErrorCallback)(callback, "Cache.hooks.storeBuildDependencies"));
}
/**
* @returns {void}
*/
beginIdle() {

@@ -126,24 +94,21 @@ this.hooks.beginIdle.call();

/**
* @param {CallbackCache<void>} callback signals when the call finishes
* @returns {void}
* @param callback signals when the call finishes
* @returns
*/
endIdle(callback) {
this.hooks.endIdle.callAsync(
// @ts-expect-error
makeWebpackErrorCallback(callback, "Cache.hooks.endIdle"));
this.hooks.endIdle.callAsync((0, HookWebpackError_1.makeWebpackErrorCallback)(callback, "Cache.hooks.endIdle"));
}
/**
* @param {CallbackCache<void>} callback signals when the call finishes
* @returns {void}
* @param callback signals when the call finishes
* @returns
*/
shutdown(callback) {
this.hooks.shutdown.callAsync(
// @ts-expect-error
makeWebpackErrorCallback(callback, "Cache.hooks.shutdown"));
this.hooks.shutdown.callAsync((0, HookWebpackError_1.makeWebpackErrorCallback)(callback, "Cache.hooks.shutdown"));
}
}
Cache.STAGE_DISK = 10;
Cache.STAGE_MEMORY = -10;
Cache.STAGE_DEFAULT = 0;
Cache.STAGE_DISK = 10;
Cache.STAGE_NETWORK = 20;
module.exports = Cache;
exports.Cache = Cache;
exports.default = Cache;

@@ -1,35 +0,35 @@

export = getter;
/**
* @param {HashableObject} obj object with updateHash method
* @param {string | HashConstructor} hashFunction the hash function to use
* @returns {LazyHashedEtag} etag
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/cache/getLazyHashedEtag.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
declare function getter(obj: HashableObject, hashFunction?: string | HashConstructor): LazyHashedEtag;
declare namespace getter {
export { Hash, HashConstructor, HashableObject };
import type Hash from "../../util/hash";
export type HashConstructor = typeof Hash;
export interface HashableObject {
updateHash(hash: Hash): void;
}
type HashableObject = {
updateHash: (arg0: Hash) => void;
};
type HashConstructor = any;
/** @typedef {any} Hash */
/** @typedef {any} HashConstructor */
/**
* @typedef {Object} HashableObject
* @property {function(Hash): void} updateHash
*/
declare class LazyHashedEtag {
_obj: HashableObject;
_hash?: string;
_hashFunction: string | HashConstructor;
/**
* @param {HashableObject} obj object with updateHash method
* @param {string | HashConstructor} hashFunction the hash function to use
* @param obj object with updateHash method
* @param hashFunction the hash function to use
*/
constructor(obj: HashableObject, hashFunction?: string | HashConstructor);
_obj: HashableObject;
_hash: string | undefined;
_hashFunction: any;
/**
* @returns {string} hash of object
* @returns hash of object
*/
toString(): string;
}
type Hash = any;
/**
* @param obj object with updateHash method
* @param ashFunction the hash function to use
* @returns etag
*/
export declare const getter: (obj: HashableObject, hashFunction?: string | HashConstructor) => LazyHashedEtag;
export default getter;

@@ -1,19 +0,18 @@

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const createHash = require("../../util/createHash");
// /** @typedef {import("../util/Hash")} Hash */
// /** @typedef {typeof import("../util/Hash")} HashConstructor */
/** @typedef {any} Hash */
/** @typedef {any} HashConstructor */
/**
* @typedef {Object} HashableObject
* @property {function(Hash): void} updateHash
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/cache/getLazyHashedEtag.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getter = void 0;
const createHash_1 = require("../../util/createHash");
class LazyHashedEtag {
/**
* @param {HashableObject} obj object with updateHash method
* @param {string | HashConstructor} hashFunction the hash function to use
* @param obj object with updateHash method
* @param hashFunction the hash function to use
*/

@@ -26,10 +25,9 @@ constructor(obj, hashFunction = "md4") {

/**
* @returns {string} hash of object
* @returns hash of object
*/
toString() {
if (this._hash === undefined) {
// @ts-expect-error
const hash = createHash(this._hashFunction);
const hash = (0, createHash_1.createHash)(this._hashFunction);
this._obj.updateHash(hash);
this._hash = /** @type {string} */ (hash.digest("base64"));
this._hash = hash.digest("base64");
}

@@ -39,10 +37,8 @@ return this._hash;

}
/** @type {Map<string | HashConstructor, WeakMap<HashableObject, LazyHashedEtag>>} */
const mapStrings = new Map();
/** @type {WeakMap<HashConstructor, WeakMap<HashableObject, LazyHashedEtag>>} */
const mapObjects = new WeakMap();
/**
* @param {HashableObject} obj object with updateHash method
* @param {string | HashConstructor} hashFunction the hash function to use
* @returns {LazyHashedEtag} etag
* @param obj object with updateHash method
* @param ashFunction the hash function to use
* @returns etag
*/

@@ -78,2 +74,3 @@ const getter = (obj, hashFunction = "md4") => {

};
module.exports = getter;
exports.getter = getter;
exports.default = exports.getter;

@@ -1,11 +0,17 @@

export = mergeEtags;
/**
* @param {Etag} a first
* @param {Etag} b second
* @returns {Etag} result
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/cache/mergeEtags.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
declare function mergeEtags(a: Etag, b: Etag): Etag;
declare namespace mergeEtags {
export { Etag };
}
type Etag = import("../Cache").Etag;
import type { Etag } from "../Cache";
/**
* @param a first
* @param b second
* @returns result
*/
export declare const mergeEtags: (a: Etag, b: Etag) => Etag;
export default mergeEtags;

@@ -1,11 +0,17 @@

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("../Cache").Etag} Etag */
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/cache/mergeEtags.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeEtags = void 0;
class MergedEtag {
/**
* @param {Etag} a first
* @param {Etag} b second
* @param a first
* @param b second
*/

@@ -23,5 +29,5 @@ constructor(a, b) {

/**
* @param {Etag} a first
* @param {Etag} b second
* @returns {Etag} result
* @param a first
* @param b second
* @returns result
*/

@@ -66,2 +72,3 @@ const mergeEtags = (a, b) => {

};
module.exports = mergeEtags;
exports.mergeEtags = mergeEtags;
exports.default = exports.mergeEtags;

@@ -1,191 +0,167 @@

export = CacheFacade;
declare class CacheFacade {
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/CacheFacade.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import type { Cache, CallbackCache, Etag } from "./Cache";
import type WebpackError from "./WebpackError";
import type { HashConstructor, HashableObject } from "./cache/getLazyHashedEtag";
type CallbackNormalErrorCache<T> = (err?: WebpackError | null, result?: T) => void;
declare abstract class BaseCache {
abstract get<T>(callback: CallbackCache<T>): void;
abstract getPromise<T>(): Promise<T | undefined>;
abstract store<T>(data: T, callback: CallbackCache<void>): void;
abstract storePromise<T>(data: T): Promise<void>;
}
export declare class MultiItemCache implements BaseCache {
_items: ItemCacheFacade[];
/**
* @param {Cache} cache the root cache
* @param {string} name the child cache name
* @param {string | HashConstructor} hashFunction the hash function to use
* @param items item caches
* @returns
*/
constructor(cache: Cache, name: string, hashFunction: string | HashConstructor);
_cache: import("./Cache");
_name: string;
_hashFunction: any;
constructor(items: ItemCacheFacade[]);
/**
* @param {string} name the child cache name#
* @returns {CacheFacade} child cache
* @param callback signals when the value is retrieved
* @returns
*/
getChildCache(name: string): CacheFacade;
get<T>(callback: CallbackCache<T>): void;
/**
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @returns {ItemCacheFacade} item cache
* @returns promise with the data
*/
getItemCache(identifier: string, etag: Etag | null): ItemCacheFacade;
getPromise<T>(): Promise<T | undefined>;
/**
* @param {HashableObject} obj an hashable object
* @returns {Etag} an etag that is lazy hashed
* @param data the value to store
* @param callback signals when the value is stored
* @returns
*/
getLazyHashedEtag(obj: HashableObject): Etag;
store<T>(data: T, callback: CallbackCache<void>): void;
/**
* @param {Etag} a an etag
* @param {Etag} b another etag
* @returns {Etag} an etag that represents both
* @param data the value to store
* @returns promise signals when the value is stored
*/
mergeEtags(a: Etag, b: Etag): Etag;
storePromise<T>(data: T): Promise<void>;
}
export declare class ItemCacheFacade implements BaseCache {
_cache: Cache;
_name: string;
_etag: Etag | null;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {CallbackCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param cache the root cache
* @param name the child cache item name
* @param etag the etag
* @returns
*/
get<T>(identifier: string, etag: Etag | null, callback: CallbackCache<T>): void;
constructor(cache: Cache, name: string, etag: Etag | null);
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @returns {Promise<T>} promise with the data
* @param callback signals when the value is retrieved
* @returns
*/
getPromise<T_1>(identifier: string, etag: Etag | null): Promise<T_1>;
get<T>(callback: CallbackCache<T>): void;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {T} data the value to store
* @param {CallbackCache<void>} callback signals when the value is stored
* @returns {void}
* @returns promise with the data
*/
store<T_2>(identifier: string, etag: Etag | null, data: T_2, callback: CallbackCache<void>): void;
getPromise<T>(): Promise<T | undefined>;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {T} data the value to store
* @returns {Promise<void>} promise signals when the value is stored
* @param data the value to store
* @param callback signals when the value is stored
* @returns
*/
storePromise<T_3>(identifier: string, etag: Etag | null, data: T_3): Promise<void>;
store<T>(data: T, callback: CallbackCache<void>): void;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {function(CallbackNormalErrorCache<T>): void} computer function to compute the value if not cached
* @param {CallbackNormalErrorCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param data the value to store
* @returns promise signals when the value is stored
*/
provide<T_4>(identifier: string, etag: Etag | null, computer: (arg0: CallbackNormalErrorCache<T_4>) => void, callback: CallbackNormalErrorCache<T_4>): void;
storePromise<T>(data: T): Promise<void>;
/**
* @template T
* @param {string} identifier the cache identifier
* @param {Etag | null} etag the etag
* @param {function(): Promise<T> | T} computer function to compute the value if not cached
* @returns {Promise<T>} promise with the data
* @param computer function to compute the value if not cached
* @param callback signals when the value is retrieved
* @returns
*/
providePromise<T_5>(identifier: string, etag: Etag | null, computer: () => T_5 | Promise<T_5>): Promise<T_5>;
}
declare namespace CacheFacade {
export { ItemCacheFacade, MultiItemCache, Cache, Etag, WebpackError, HashableObject, HashConstructor, CallbackCache, CallbackNormalErrorCache };
}
type Etag = import("./Cache").Etag;
declare class ItemCacheFacade {
provide<T>(computer: (callback: CallbackNormalErrorCache<T>) => void, callback: CallbackNormalErrorCache<T>): void;
/**
* @param {Cache} cache the root cache
* @param {string} name the child cache item name
* @param {Etag | null} etag the etag
* @param computer function to compute the value if not cached
* @returns promise with the data
*/
constructor(cache: Cache, name: string, etag: Etag | null);
_cache: import("./Cache");
providePromise<T>(computer: () => Promise<T> | T): Promise<T>;
}
export declare class CacheFacade {
_name: string;
_etag: import("./Cache").Etag | null;
_cache: Cache;
_hashFunction: string | HashConstructor;
/**
* @template T
* @param {CallbackCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param cache the root cache
* @param name the child cache name
* @param hashFunction the hash function to use
*/
get<T>(callback: CallbackCache<T>): void;
constructor(cache: Cache, name: string, hashFunction: string | HashConstructor);
/**
* @template T
* @returns {Promise<T>} promise with the data
* @param name the child cache name#
* @returns child cache
*/
getPromise<T_1>(): Promise<T_1>;
getChildCache(name: string): CacheFacade;
/**
* @template T
* @param {T} data the value to store
* @param {CallbackCache<void>} callback signals when the value is stored
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @returns item cache
*/
store<T_2>(data: T_2, callback: CallbackCache<void>): void;
getItemCache(identifier: string, etag: Etag | null): ItemCacheFacade;
/**
* @template T
* @param {T} data the value to store
* @returns {Promise<void>} promise signals when the value is stored
* @param obj an hashable object
* @returns an etag that is lazy hashed
*/
storePromise<T_3>(data: T_3): Promise<void>;
getLazyHashedEtag(obj: HashableObject): Etag;
/**
* @template T
* @param {function(CallbackNormalErrorCache<T>): void} computer function to compute the value if not cached
* @param {CallbackNormalErrorCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param a an etag
* @param b another etag
* @returns an etag that represents both
*/
provide<T_4>(computer: (arg0: CallbackNormalErrorCache<T_4>) => void, callback: CallbackNormalErrorCache<T_4>): void;
mergeEtags(a: Etag, b: Etag): Etag;
/**
* @template T
* @param {function(): Promise<T> | T} computer function to compute the value if not cached
* @returns {Promise<T>} promise with the data
* @param identifier the cache identifier
* @param etag the etag
* @param callback signals when the value is retrieved
* @returns
*/
providePromise<T_5>(computer: () => T_5 | Promise<T_5>): Promise<T_5>;
}
type HashableObject = import("./cache/getLazyHashedEtag").HashableObject;
type CallbackCache<T> = (err?: (WebpackError | null) | undefined, result?: T | undefined) => void;
type CallbackNormalErrorCache<T> = (err?: (Error | null) | undefined, result?: T | undefined) => void;
type Cache = import("./Cache");
type HashConstructor = any;
/** @typedef {import("./Cache")} Cache */
/** @typedef {import("./Cache").Etag} Etag */
/** @typedef {import("./WebpackError")} WebpackError */
/** @typedef {import("./cache/getLazyHashedEtag").HashableObject} HashableObject */
/** @typedef {any} HashConstructor */
/**
* @template T
* @callback CallbackCache
* @param {(WebpackError | null)=} err
* @param {T=} result
* @returns {void}
*/
/**
* @template T
* @callback CallbackNormalErrorCache
* @param {(Error | null)=} err
* @param {T=} result
* @returns {void}
*/
declare class MultiItemCache {
get<T>(identifier: string, etag: Etag | null, callback: CallbackCache<T>): void;
/**
* @param {ItemCacheFacade[]} items item caches
* @param identifier the cache identifier
* @param etag the etag
* @returns promise with the data
*/
constructor(items: ItemCacheFacade[]);
_items: ItemCacheFacade[];
getPromise<T>(identifier: string, etag: Etag | null): Promise<T | undefined>;
/**
* @template T
* @param {CallbackCache<T>} callback signals when the value is retrieved
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param data the value to store
* @param callback signals when the value is stored
* @returns
*/
get<T>(callback: CallbackCache<T>): void;
store<T>(identifier: string, etag: Etag | null, data: T, callback: CallbackCache<void>): void;
/**
* @template T
* @returns {Promise<T>} promise with the data
* @param identifier the cache identifier
* @param etag the etag
* @param data the value to store
* @returns promise signals when the value is stored
*/
getPromise<T_1>(): Promise<T_1>;
storePromise<T>(identifier: string, etag: Etag | null, data: T): Promise<void>;
/**
* @template T
* @param {T} data the value to store
* @param {CallbackCache<void>} callback signals when the value is stored
* @returns {void}
* @param identifier the cache identifier
* @param etag the etag
* @param computer function to compute the value if not cached
* @param callback signals when the value is retrieved
* @returns
*/
store<T_2>(data: T_2, callback: CallbackCache<void>): void;
provide<T>(identifier: string, etag: Etag | null, computer: (callback: CallbackNormalErrorCache<T>) => void, callback: CallbackNormalErrorCache<T>): void;
/**
* @template T
* @param {T} data the value to store
* @returns {Promise<void>} promise signals when the value is stored
* @param identifier the cache identifier
* @param etag the etag
* @param computer function to compute the value if not cached
* @returns promise with the data
*/
storePromise<T_3>(data: T_3): Promise<void>;
providePromise<T>(identifier: string, etag: Etag | null, computer: () => Promise<T> | T): Promise<{} | T | null>;
}
type WebpackError = import("./WebpackError");
export default CacheFacade;

@@ -1,33 +0,50 @@

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { forEachBail } = require("../../compiled/enhanced-resolve");
const asyncLib = require("../../compiled/neo-async");
const getLazyHashedEtag = require("./cache/getLazyHashedEtag.js");
const mergeEtags = require("./cache/mergeEtags.js");
/** @typedef {import("./Cache")} Cache */
/** @typedef {import("./Cache").Etag} Etag */
/** @typedef {import("./WebpackError")} WebpackError */
/** @typedef {import("./cache/getLazyHashedEtag").HashableObject} HashableObject */
// /** @typedef {typeof import("./util/Hash")} HashConstructor */
/** @typedef {any} HashConstructor */
/**
* @template T
* @callback CallbackCache
* @param {(WebpackError | null)=} err
* @param {T=} result
* @returns {void}
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/CacheFacade.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
/**
* @template T
* @callback CallbackNormalErrorCache
* @param {(Error | null)=} err
* @param {T=} result
* @returns {void}
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheFacade = exports.ItemCacheFacade = exports.MultiItemCache = void 0;
const neo_async_1 = __importDefault(require("../../compiled/neo-async"));