@rspack/core 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Compilation.d.ts +1 -1
- package/dist/Compiler.d.ts +11 -10
- package/dist/Compiler.js +14 -14
- package/dist/Module.d.ts +1 -0
- package/dist/Module.js +1 -0
- package/dist/NormalModule.d.ts +1 -0
- package/dist/NormalModule.js +1 -0
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +31 -31
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -2
- package/dist/builtin-plugin/EntryPlugin.js +1 -0
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +5 -5
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +9 -9
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +4 -11
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/loader.d.ts +8 -3
- package/dist/builtin-plugin/css-extract/loader.js +24 -13
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapter.js +15 -2
- package/dist/config/adapterRuleUse.js +3 -3
- package/dist/config/defaults.js +7 -10
- package/dist/config/normalization.d.ts +6 -3
- package/dist/config/normalization.js +2 -0
- package/dist/config/zod.d.ts +1224 -1055
- package/dist/config/zod.js +10 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/lib/AbstractMethodError.d.ts +12 -3
- package/dist/lib/AbstractMethodError.js +29 -21
- package/dist/lib/Cache.d.ts +40 -46
- package/dist/lib/Cache.js +43 -78
- package/dist/lib/CacheFacade.d.ts +119 -143
- package/dist/lib/CacheFacade.js +123 -124
- package/dist/lib/EntryOptionPlugin.d.ts +19 -2
- package/dist/lib/EntryOptionPlugin.js +22 -6
- package/dist/lib/EnvironmentPlugin.d.ts +17 -10
- package/dist/lib/EnvironmentPlugin.js +16 -15
- package/dist/lib/HookWebpackError.d.ts +27 -33
- package/dist/lib/HookWebpackError.js +33 -34
- package/dist/lib/IgnoreWarningsPlugin.d.ts +25 -0
- package/dist/lib/{ignoreWarningsPlugin.js → IgnoreWarningsPlugin.js} +17 -0
- package/dist/lib/LoaderOptionsPlugin.d.ts +18 -9
- package/dist/lib/LoaderOptionsPlugin.js +38 -14
- package/dist/lib/LoaderTargetPlugin.d.ts +17 -8
- package/dist/lib/LoaderTargetPlugin.js +17 -15
- package/dist/lib/ModuleFilenameHelpers.d.ts +10 -1
- package/dist/lib/ModuleFilenameHelpers.js +9 -0
- package/dist/lib/NormalModuleReplacementPlugin.d.ts +15 -5
- package/dist/lib/NormalModuleReplacementPlugin.js +15 -5
- package/dist/lib/WebpackError.d.ts +29 -22
- package/dist/lib/WebpackError.js +17 -29
- package/dist/lib/cache/getLazyHashedEtag.d.ts +24 -24
- package/dist/lib/cache/getLazyHashedEtag.js +20 -23
- package/dist/lib/cache/mergeEtags.d.ts +15 -9
- package/dist/lib/cache/mergeEtags.js +18 -11
- package/dist/lib/formatLocation.d.ts +13 -8
- package/dist/lib/formatLocation.js +17 -15
- package/dist/rspackOptionsApply.js +2 -2
- package/dist/stats/DefaultStatsFactoryPlugin.js +1 -1
- package/dist/util/comparators.d.ts +1 -1
- package/package.json +3 -3
- package/compiled/enhanced-resolve/index.js +0 -5566
- package/dist/lib/ignoreWarningsPlugin.d.ts +0 -7
package/dist/Compilation.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare class Compilation {
|
|
|
201
201
|
buildInfo: Record<string, unknown>;
|
|
202
202
|
buildMeta: Record<string, unknown>;
|
|
203
203
|
};
|
|
204
|
-
getCache(name: string): import("./lib/CacheFacade");
|
|
204
|
+
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
|
|
205
205
|
createStatsOptions(optionsOrPreset: StatsValue | undefined, context?: CreateStatsOptionsContext): NormalizedStatsOptions;
|
|
206
206
|
createStatsFactory(options: StatsOptions): StatsFactory;
|
|
207
207
|
createStatsPrinter(options: StatsOptions): StatsPrinter;
|
package/dist/Compiler.d.ts
CHANGED
|
@@ -10,22 +10,23 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as binding from "@rspack/binding";
|
|
12
12
|
import * as liteTapable from "@rspack/lite-tapable";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import Cache from "./lib/Cache";
|
|
14
|
+
import CacheFacade from "./lib/CacheFacade";
|
|
15
|
+
import { Chunk } from "./Chunk";
|
|
16
|
+
import { Compilation } from "./Compilation";
|
|
15
17
|
import { ContextModuleFactory } from "./ContextModuleFactory";
|
|
18
|
+
import { NormalModuleFactory } from "./NormalModuleFactory";
|
|
19
|
+
import { ResolverFactory } from "./ResolverFactory";
|
|
16
20
|
import { RuleSetCompiler } from "./RuleSetCompiler";
|
|
17
21
|
import { Stats } from "./Stats";
|
|
18
|
-
import {
|
|
22
|
+
import { Watching } from "./Watching";
|
|
19
23
|
import { rspack } from "./index";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
24
|
+
import { Logger } from "./logging/Logger";
|
|
25
|
+
import type Watchpack from "../compiled/watchpack";
|
|
22
26
|
import type { Source } from "../compiled/webpack-sources";
|
|
23
|
-
import {
|
|
27
|
+
import type { CompilationParams } from "./Compilation";
|
|
24
28
|
import type { FileSystemInfoEntry } from "./FileSystemInfo";
|
|
25
|
-
import {
|
|
26
|
-
import { ResolverFactory } from "./ResolverFactory";
|
|
27
|
-
import { Watching } from "./Watching";
|
|
28
|
-
import { Logger } from "./logging/Logger";
|
|
29
|
+
import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config";
|
|
29
30
|
import type { OutputFileSystem, WatchFileSystem } from "./util/fs";
|
|
30
31
|
export interface AssetEmittedInfo {
|
|
31
32
|
content: Buffer;
|
package/dist/Compiler.js
CHANGED
|
@@ -50,29 +50,29 @@ exports.Compiler = void 0;
|
|
|
50
50
|
*/
|
|
51
51
|
const binding = __importStar(require("@rspack/binding"));
|
|
52
52
|
const liteTapable = __importStar(require("@rspack/lite-tapable"));
|
|
53
|
+
const ExecuteModulePlugin_1 = __importDefault(require("./ExecuteModulePlugin"));
|
|
54
|
+
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
|
|
55
|
+
const Cache_1 = __importDefault(require("./lib/Cache"));
|
|
56
|
+
const CacheFacade_1 = __importDefault(require("./lib/CacheFacade"));
|
|
57
|
+
const RuntimeGlobals_1 = require("./RuntimeGlobals");
|
|
58
|
+
const builtin_plugin_1 = require("./builtin-plugin");
|
|
59
|
+
const Chunk_1 = require("./Chunk");
|
|
53
60
|
const Compilation_1 = require("./Compilation");
|
|
54
61
|
const ContextModuleFactory_1 = require("./ContextModuleFactory");
|
|
55
62
|
const FileSystem_1 = require("./FileSystem");
|
|
56
|
-
const RuleSetCompiler_1 = require("./RuleSetCompiler");
|
|
57
|
-
const Stats_1 = require("./Stats");
|
|
58
|
-
const config_1 = require("./config");
|
|
59
|
-
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
|
|
60
|
-
const index_1 = require("./index");
|
|
61
|
-
const Cache = require("./lib/Cache");
|
|
62
|
-
const CacheFacade = require("./lib/CacheFacade");
|
|
63
|
-
const Chunk_1 = require("./Chunk");
|
|
64
|
-
const ExecuteModulePlugin_1 = __importDefault(require("./ExecuteModulePlugin"));
|
|
65
63
|
const Module_1 = require("./Module");
|
|
66
64
|
const NormalModuleFactory_1 = require("./NormalModuleFactory");
|
|
67
65
|
const ResolverFactory_1 = require("./ResolverFactory");
|
|
68
|
-
const
|
|
66
|
+
const RuleSetCompiler_1 = require("./RuleSetCompiler");
|
|
67
|
+
const Stats_1 = require("./Stats");
|
|
69
68
|
const Watching_1 = require("./Watching");
|
|
70
|
-
const
|
|
69
|
+
const config_1 = require("./config");
|
|
70
|
+
const index_1 = require("./index");
|
|
71
|
+
const util_1 = require("./util");
|
|
71
72
|
const base_1 = require("./builtin-plugin/base");
|
|
72
73
|
const defaults_1 = require("./config/defaults");
|
|
73
74
|
const HookWebpackError_1 = require("./lib/HookWebpackError");
|
|
74
75
|
const Logger_1 = require("./logging/Logger");
|
|
75
|
-
const util_1 = require("./util");
|
|
76
76
|
const assertNotNil_1 = require("./util/assertNotNil");
|
|
77
77
|
const bindingVersionCheck_1 = require("./util/bindingVersionCheck");
|
|
78
78
|
const createHash_1 = require("./util/createHash");
|
|
@@ -147,7 +147,7 @@ class Compiler {
|
|
|
147
147
|
this.options = options;
|
|
148
148
|
this.resolverFactory = new ResolverFactory_1.ResolverFactory();
|
|
149
149
|
this.context = context;
|
|
150
|
-
this.cache = new
|
|
150
|
+
this.cache = new Cache_1.default();
|
|
151
151
|
this.compilerPath = "";
|
|
152
152
|
this.running = false;
|
|
153
153
|
this.idle = false;
|
|
@@ -189,7 +189,7 @@ class Compiler {
|
|
|
189
189
|
* @returns the cache facade instance
|
|
190
190
|
*/
|
|
191
191
|
getCache(name) {
|
|
192
|
-
return new
|
|
192
|
+
return new CacheFacade_1.default(this.cache, `${this.compilerPath}${name}`, this.options.output.hashFunction);
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
195
|
* @param name - name of the logger, or function called once to get the logger name
|
package/dist/Module.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare class Module {
|
|
|
42
42
|
userRequest?: Readonly<string>;
|
|
43
43
|
rawRequest?: Readonly<string>;
|
|
44
44
|
type: string;
|
|
45
|
+
layer: null | string;
|
|
45
46
|
factoryMeta?: Readonly<JsFactoryMeta>;
|
|
46
47
|
/**
|
|
47
48
|
* Records the dynamically added fields for Module on the JavaScript side.
|
package/dist/Module.js
CHANGED
|
@@ -23,6 +23,7 @@ class Module {
|
|
|
23
23
|
_Module_originalSource.set(this, void 0);
|
|
24
24
|
__classPrivateFieldSet(this, _Module_inner, module, "f");
|
|
25
25
|
this.type = module.type;
|
|
26
|
+
this.layer = module.layer ?? null;
|
|
26
27
|
this.context = module.context;
|
|
27
28
|
this.resource = module.resource;
|
|
28
29
|
this.request = module.request;
|
package/dist/NormalModule.d.ts
CHANGED
package/dist/NormalModule.js
CHANGED
|
@@ -3,7 +3,7 @@ export declare const APIPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AssetModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -9,13 +9,13 @@ declare const bannerFunction: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
|
9
9
|
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>;
|
|
10
10
|
filename: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
filename: string;
|
|
12
13
|
hash: string;
|
|
13
14
|
chunk: JsChunk;
|
|
14
|
-
filename: string;
|
|
15
15
|
}, {
|
|
16
|
+
filename: string;
|
|
16
17
|
hash: string;
|
|
17
18
|
chunk: JsChunk;
|
|
18
|
-
filename: string;
|
|
19
19
|
}>], z.ZodUnknown>, z.ZodString>;
|
|
20
20
|
export type BannerFunction = z.infer<typeof bannerFunction>;
|
|
21
21
|
declare const bannerContent: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
@@ -23,13 +23,13 @@ declare const bannerContent: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[
|
|
|
23
23
|
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>;
|
|
24
24
|
filename: z.ZodString;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
filename: string;
|
|
26
27
|
hash: string;
|
|
27
28
|
chunk: JsChunk;
|
|
28
|
-
filename: string;
|
|
29
29
|
}, {
|
|
30
|
+
filename: string;
|
|
30
31
|
hash: string;
|
|
31
32
|
chunk: JsChunk;
|
|
32
|
-
filename: string;
|
|
33
33
|
}>], z.ZodUnknown>, z.ZodString>]>;
|
|
34
34
|
export type BannerContent = z.infer<typeof bannerContent>;
|
|
35
35
|
declare const bannerPluginOptions: z.ZodObject<{
|
|
@@ -38,13 +38,13 @@ declare const bannerPluginOptions: z.ZodObject<{
|
|
|
38
38
|
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>;
|
|
39
39
|
filename: z.ZodString;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
filename: string;
|
|
41
42
|
hash: string;
|
|
42
43
|
chunk: JsChunk;
|
|
43
|
-
filename: string;
|
|
44
44
|
}, {
|
|
45
|
+
filename: string;
|
|
45
46
|
hash: string;
|
|
46
47
|
chunk: JsChunk;
|
|
47
|
-
filename: string;
|
|
48
48
|
}>], z.ZodUnknown>, z.ZodString>]>;
|
|
49
49
|
entryOnly: z.ZodOptional<z.ZodBoolean>;
|
|
50
50
|
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
@@ -55,30 +55,30 @@ declare const bannerPluginOptions: z.ZodObject<{
|
|
|
55
55
|
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
57
|
banner: string | ((args_0: {
|
|
58
|
+
filename: string;
|
|
58
59
|
hash: string;
|
|
59
60
|
chunk: JsChunk;
|
|
60
|
-
filename: string;
|
|
61
61
|
}, ...args_1: unknown[]) => string);
|
|
62
|
-
|
|
62
|
+
entryOnly?: boolean | undefined;
|
|
63
63
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
64
64
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
65
|
-
entryOnly?: boolean | undefined;
|
|
66
65
|
raw?: boolean | undefined;
|
|
67
66
|
footer?: boolean | undefined;
|
|
68
67
|
stage?: number | undefined;
|
|
68
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
banner: string | ((args_0: {
|
|
71
|
+
filename: string;
|
|
71
72
|
hash: string;
|
|
72
73
|
chunk: JsChunk;
|
|
73
|
-
filename: string;
|
|
74
74
|
}, ...args_1: unknown[]) => string);
|
|
75
|
-
|
|
75
|
+
entryOnly?: boolean | undefined;
|
|
76
76
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
77
77
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
78
|
-
entryOnly?: boolean | undefined;
|
|
79
78
|
raw?: boolean | undefined;
|
|
80
79
|
footer?: boolean | undefined;
|
|
81
80
|
stage?: number | undefined;
|
|
81
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export type BannerPluginOptions = z.infer<typeof bannerPluginOptions>;
|
|
84
84
|
declare const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
@@ -86,26 +86,26 @@ declare const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFu
|
|
|
86
86
|
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>;
|
|
87
87
|
filename: z.ZodString;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
filename: string;
|
|
89
90
|
hash: string;
|
|
90
91
|
chunk: JsChunk;
|
|
91
|
-
filename: string;
|
|
92
92
|
}, {
|
|
93
|
+
filename: string;
|
|
93
94
|
hash: string;
|
|
94
95
|
chunk: JsChunk;
|
|
95
|
-
filename: string;
|
|
96
96
|
}>], z.ZodUnknown>, z.ZodString>]>, z.ZodObject<{
|
|
97
97
|
banner: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
98
98
|
hash: z.ZodString;
|
|
99
99
|
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>;
|
|
100
100
|
filename: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
filename: string;
|
|
102
103
|
hash: string;
|
|
103
104
|
chunk: JsChunk;
|
|
104
|
-
filename: string;
|
|
105
105
|
}, {
|
|
106
|
+
filename: string;
|
|
106
107
|
hash: string;
|
|
107
108
|
chunk: JsChunk;
|
|
108
|
-
filename: string;
|
|
109
109
|
}>], z.ZodUnknown>, z.ZodString>]>;
|
|
110
110
|
entryOnly: z.ZodOptional<z.ZodBoolean>;
|
|
111
111
|
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
@@ -116,71 +116,71 @@ declare const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFu
|
|
|
116
116
|
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
117
117
|
}, "strict", z.ZodTypeAny, {
|
|
118
118
|
banner: string | ((args_0: {
|
|
119
|
+
filename: string;
|
|
119
120
|
hash: string;
|
|
120
121
|
chunk: JsChunk;
|
|
121
|
-
filename: string;
|
|
122
122
|
}, ...args_1: unknown[]) => string);
|
|
123
|
-
|
|
123
|
+
entryOnly?: boolean | undefined;
|
|
124
124
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
125
125
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
126
|
-
entryOnly?: boolean | undefined;
|
|
127
126
|
raw?: boolean | undefined;
|
|
128
127
|
footer?: boolean | undefined;
|
|
129
128
|
stage?: number | undefined;
|
|
129
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
banner: string | ((args_0: {
|
|
132
|
+
filename: string;
|
|
132
133
|
hash: string;
|
|
133
134
|
chunk: JsChunk;
|
|
134
|
-
filename: string;
|
|
135
135
|
}, ...args_1: unknown[]) => string);
|
|
136
|
-
|
|
136
|
+
entryOnly?: boolean | undefined;
|
|
137
137
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
138
138
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
139
|
-
entryOnly?: boolean | undefined;
|
|
140
139
|
raw?: boolean | undefined;
|
|
141
140
|
footer?: boolean | undefined;
|
|
142
141
|
stage?: number | undefined;
|
|
142
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
143
143
|
}>]>;
|
|
144
144
|
export type BannerPluginArgument = z.infer<typeof bannerPluginArgument>;
|
|
145
145
|
export declare const BannerPlugin: {
|
|
146
146
|
new (args: string | ((args_0: {
|
|
147
|
+
filename: string;
|
|
147
148
|
hash: string;
|
|
148
149
|
chunk: JsChunk;
|
|
149
|
-
filename: string;
|
|
150
150
|
}, ...args_1: unknown[]) => string) | {
|
|
151
151
|
banner: string | ((args_0: {
|
|
152
|
+
filename: string;
|
|
152
153
|
hash: string;
|
|
153
154
|
chunk: JsChunk;
|
|
154
|
-
filename: string;
|
|
155
155
|
}, ...args_1: unknown[]) => string);
|
|
156
|
-
|
|
156
|
+
entryOnly?: boolean | undefined;
|
|
157
157
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
158
158
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
159
|
-
entryOnly?: boolean | undefined;
|
|
160
159
|
raw?: boolean | undefined;
|
|
161
160
|
footer?: boolean | undefined;
|
|
162
161
|
stage?: number | undefined;
|
|
162
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
163
163
|
}): {
|
|
164
164
|
name: BuiltinPluginName;
|
|
165
165
|
_args: [args: string | ((args_0: {
|
|
166
|
+
filename: string;
|
|
166
167
|
hash: string;
|
|
167
168
|
chunk: JsChunk;
|
|
168
|
-
filename: string;
|
|
169
169
|
}, ...args_1: unknown[]) => string) | {
|
|
170
170
|
banner: string | ((args_0: {
|
|
171
|
+
filename: string;
|
|
171
172
|
hash: string;
|
|
172
173
|
chunk: JsChunk;
|
|
173
|
-
filename: string;
|
|
174
174
|
}, ...args_1: unknown[]) => string);
|
|
175
|
-
|
|
175
|
+
entryOnly?: boolean | undefined;
|
|
176
176
|
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
177
177
|
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
178
|
-
entryOnly?: boolean | undefined;
|
|
179
178
|
raw?: boolean | undefined;
|
|
180
179
|
footer?: boolean | undefined;
|
|
181
180
|
stage?: number | undefined;
|
|
181
|
+
test?: string | RegExp | (string | RegExp)[] | undefined;
|
|
182
182
|
}];
|
|
183
|
-
affectedHooks: "done" | "
|
|
183
|
+
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;
|
|
184
184
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
185
185
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
186
186
|
};
|
|
@@ -8,7 +8,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
|
8
8
|
new (options: BundleInfoOptions): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [options: BundleInfoOptions];
|
|
11
|
-
affectedHooks: "done" | "
|
|
11
|
+
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;
|
|
12
12
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
13
13
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -8,7 +8,7 @@ export declare const CopyRspackPlugin: {
|
|
|
8
8
|
new (copy: CopyRspackPluginOptions): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [copy: CopyRspackPluginOptions];
|
|
11
|
-
affectedHooks: "done" | "
|
|
11
|
+
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;
|
|
12
12
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
13
13
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CssModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DataUriPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DefinePlugin: {
|
|
|
4
4
|
new (define: DefinePluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [define: DefinePluginOptions];
|
|
7
|
-
affectedHooks: "done" | "
|
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DeterministicChunkIdsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DeterministicModuleIdsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DynamicEntryPlugin: {
|
|
|
4
4
|
new (context: string, entry: EntryDynamicNormalized): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [context: string, entry: EntryDynamicNormalized];
|
|
7
|
-
affectedHooks: "done" | "
|
|
7
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ElectronTargetPlugin: {
|
|
|
3
3
|
new (context?: string | undefined): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [context?: string | undefined];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnableChunkLoadingPlugin: {
|
|
|
3
3
|
new (type: any): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [type: any];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
|
3
3
|
new (type: any): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [type: any];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnsureChunkConditionsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuiltinPluginName, type RawEntryOptions } from "@rspack/binding";
|
|
2
|
-
import { type ChunkLoading, type EntryRuntime, type Filename, type LibraryOptions, type PublicPath } from "../config";
|
|
2
|
+
import { type ChunkLoading, type EntryRuntime, type Filename, type Layer, type LibraryOptions, type PublicPath } from "../config";
|
|
3
3
|
export type EntryOptions = {
|
|
4
4
|
name?: string;
|
|
5
5
|
runtime?: EntryRuntime;
|
|
@@ -9,13 +9,14 @@ export type EntryOptions = {
|
|
|
9
9
|
baseUri?: string;
|
|
10
10
|
filename?: Filename;
|
|
11
11
|
library?: LibraryOptions;
|
|
12
|
+
layer?: Layer;
|
|
12
13
|
dependOn?: string[];
|
|
13
14
|
};
|
|
14
15
|
export declare const EntryPlugin: {
|
|
15
16
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
|
16
17
|
name: BuiltinPluginName;
|
|
17
18
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
|
18
|
-
affectedHooks: "done" | "
|
|
19
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
19
20
|
raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
20
21
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
21
22
|
};
|