@rspack/core 1.1.5 → 1.1.6

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.
@@ -26,7 +26,7 @@ import type { Source } from "../compiled/webpack-sources";
26
26
  import type { CompilationParams } from "./Compilation";
27
27
  import type { FileSystemInfoEntry } from "./FileSystemInfo";
28
28
  import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config";
29
- import type { InputFileSystem, OutputFileSystem, WatchFileSystem } from "./util/fs";
29
+ import type { InputFileSystem, IntermediateFileSystem, OutputFileSystem, WatchFileSystem } from "./util/fs";
30
30
  export interface AssetEmittedInfo {
31
31
  content: Buffer;
32
32
  source: Source;
@@ -79,7 +79,7 @@ declare class Compiler {
79
79
  infrastructureLogger: any;
80
80
  watching?: Watching;
81
81
  inputFileSystem: InputFileSystem | null;
82
- intermediateFileSystem: any;
82
+ intermediateFileSystem: IntermediateFileSystem | null;
83
83
  outputFileSystem: OutputFileSystem | null;
84
84
  watchFileSystem: WatchFileSystem | null;
85
85
  records: Record<string, any[]>;
@@ -1,6 +1,6 @@
1
1
  import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
2
- import { type IStats, type OutputFileSystem } from "./util/fs";
3
- declare class ThreadsafeWritableNodeFS implements ThreadsafeNodeFS {
2
+ import { type IStats, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
3
+ declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
4
4
  writeFile: (name: string, content: Buffer) => Promise<void> | void;
5
5
  removeFile: (name: string) => Promise<void> | void;
6
6
  mkdir: (name: string) => Promise<void> | void;
@@ -10,8 +10,20 @@ declare class ThreadsafeWritableNodeFS implements ThreadsafeNodeFS {
10
10
  readFile: (name: string) => Promise<Buffer | string | void> | Buffer | string | void;
11
11
  stat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void;
12
12
  lstat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void;
13
+ open: (name: string, flags: string) => Promise<number | void> | number | void;
14
+ rename: (from: string, to: string) => Promise<void> | void;
15
+ close: (fd: number) => Promise<void> | void;
16
+ write: (fd: number, content: Buffer, position: number) => Promise<number | void> | number | void;
17
+ writeAll: (fd: number, content: Buffer) => Promise<number | void> | number | void;
18
+ read: (fd: number, length: number, position: number) => Promise<Buffer | void> | Buffer | void;
19
+ readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void> | Buffer | void;
20
+ readToEnd: (fd: number, position: number) => Promise<Buffer | void> | Buffer | void;
13
21
  constructor(fs?: OutputFileSystem);
14
- static __to_binding(fs?: OutputFileSystem): ThreadsafeWritableNodeFS;
22
+ static __to_binding(fs?: OutputFileSystem): ThreadsafeOutputNodeFS;
15
23
  static __to_binding_stat(stat: IStats): NodeFsStats;
16
24
  }
17
- export { ThreadsafeWritableNodeFS };
25
+ declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
26
+ constructor(fs?: IntermediateFileSystem);
27
+ static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS;
28
+ }
29
+ export { ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS };
@@ -12,7 +12,7 @@ import type { Compiler, RspackOptions } from ".";
12
12
  import MultiStats from "./MultiStats";
13
13
  import MultiWatching from "./MultiWatching";
14
14
  import type { WatchOptions } from "./config";
15
- import type { InputFileSystem, WatchFileSystem } from "./util/fs";
15
+ import type { InputFileSystem, IntermediateFileSystem, WatchFileSystem } from "./util/fs";
16
16
  export interface MultiCompilerOptions {
17
17
  /**
18
18
  * how many Compilers are allows to run at the same time in parallel
@@ -40,11 +40,11 @@ export declare class MultiCompiler {
40
40
  get inputFileSystem(): InputFileSystem;
41
41
  get outputFileSystem(): typeof import("fs");
42
42
  get watchFileSystem(): WatchFileSystem;
43
- get intermediateFileSystem(): void;
43
+ get intermediateFileSystem(): IntermediateFileSystem;
44
44
  set inputFileSystem(value: InputFileSystem);
45
45
  set outputFileSystem(value: typeof import("fs"));
46
46
  set watchFileSystem(value: WatchFileSystem);
47
- set intermediateFileSystem(value: void);
47
+ set intermediateFileSystem(value: IntermediateFileSystem);
48
48
  getInfrastructureLogger(name: string): import("./logging/Logger").Logger;
49
49
  /**
50
50
  * @param compiler - the child compiler
@@ -1,10 +1,8 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
- export declare const DeterministicModuleIdsPlugin: {
3
- new (): {
4
- name: BuiltinPluginName;
5
- _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("..").Compiler): void;
9
- };
10
- };
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import { RspackBuiltinPlugin } from "./base";
4
+ export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
5
+ name: BuiltinPluginName;
6
+ affectedHooks: "compilation";
7
+ raw(compiler: Compiler): BuiltinPlugin;
8
+ }
@@ -1,11 +1,10 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
- import type { Externals } from "..";
3
- export declare const ExternalsPlugin: {
4
- new (type: string, externals: Externals): {
5
- name: BuiltinPluginName;
6
- _args: [type: string, externals: Externals];
7
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
- apply(compiler: import("..").Compiler): void;
10
- };
11
- };
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler, Externals } from "..";
3
+ import { RspackBuiltinPlugin } from "./base";
4
+ export declare class ExternalsPlugin extends RspackBuiltinPlugin {
5
+ private type;
6
+ private externals;
7
+ name: BuiltinPluginName;
8
+ constructor(type: string, externals: Externals);
9
+ raw(compiler: Compiler): BuiltinPlugin | undefined;
10
+ }
@@ -1,10 +1,8 @@
1
- import { BuiltinPluginName } from "@rspack/binding";
2
- export declare const NaturalModuleIdsPlugin: {
3
- new (): {
4
- name: BuiltinPluginName;
5
- _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("..").Compiler): void;
9
- };
10
- };
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import { RspackBuiltinPlugin } from "./base";
4
+ export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
5
+ name: BuiltinPluginName;
6
+ affectedHooks: "compilation";
7
+ raw(compiler: Compiler): BuiltinPlugin;
8
+ }
@@ -171,7 +171,9 @@ export type ChunkLoadingGlobal = string;
171
171
  /** List of library types enabled for use by entry points. */
172
172
  export type EnabledLibraryTypes = string[];
173
173
  /** Whether delete all files in the output directory. */
174
- export type Clean = boolean;
174
+ export type Clean = boolean | {
175
+ keep?: string;
176
+ };
175
177
  /** Output JavaScript files as module type. */
176
178
  export type OutputModule = boolean;
177
179
  /** Tell Rspack to remove a module from the module instance cache (require.cache) if it throws an exception when it is required. */
@@ -196,7 +198,14 @@ export type ChunkFormat = string | false;
196
198
  export type WorkerPublicPath = string;
197
199
  /** Controls [Trusted Types](https://web.dev/articles/trusted-types) compatibility. */
198
200
  export type TrustedTypes = {
201
+ /**
202
+ * The name of the Trusted Types policy created by webpack to serve bundle chunks.
203
+ */
199
204
  policyName?: string;
205
+ /**
206
+ * If the call to `trustedTypes.createPolicy(...)` fails -- e.g., due to the policy name missing from the CSP `trusted-types` list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that `require-trusted-types-for 'script'` isn't enforced yet, versus fail immediately. Default behavior is 'stop'.
207
+ */
208
+ onPolicyCreationFailure?: "continue" | "stop";
200
209
  };
201
210
  /** The encoding to use when generating the hash. */
202
211
  export type HashDigest = string;
@@ -925,7 +934,12 @@ export type ExternalItemFunctionData = {
925
934
  request?: string;
926
935
  contextInfo?: {
927
936
  issuer: string;
937
+ issuerLayer?: string | null;
928
938
  };
939
+ /**
940
+ * Get a resolve function with the current resolver options.
941
+ */
942
+ getResolve?: (options?: ResolveOptions) => ((context: string, request: string, callback: (err?: Error, result?: string) => void) => void) | ((context: string, request: string) => Promise<string>);
929
943
  };
930
944
  /**
931
945
  * Prevent bundling of certain imported package and instead retrieve these external dependencies at runtime.
@@ -1826,6 +1840,14 @@ export type Incremental = {
1826
1840
  * Enable incremental build chunk graph.
1827
1841
  */
1828
1842
  buildChunkGraph?: boolean;
1843
+ /**
1844
+ * Enable incremental module ids.
1845
+ */
1846
+ moduleIds?: boolean;
1847
+ /**
1848
+ * Enable incremental chunk ids.
1849
+ */
1850
+ chunkIds?: boolean;
1829
1851
  /**
1830
1852
  * Enable incremental module hashes.
1831
1853
  */
@@ -415,7 +415,13 @@ export declare const rspackOptions: z.ZodObject<{
415
415
  output: z.ZodOptional<z.ZodObject<{
416
416
  path: z.ZodOptional<z.ZodString>;
417
417
  pathinfo: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"verbose">]>>;
418
- clean: z.ZodOptional<z.ZodBoolean>;
418
+ clean: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
419
+ keep: z.ZodOptional<z.ZodString>;
420
+ }, "strict", z.ZodTypeAny, {
421
+ keep?: string | undefined;
422
+ }, {
423
+ keep?: string | undefined;
424
+ }>]>>;
419
425
  publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
420
426
  filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
421
427
  chunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<JsAssetInfo, z.ZodTypeDef, JsAssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
@@ -543,10 +549,13 @@ export declare const rspackOptions: z.ZodObject<{
543
549
  enabledChunkLoadingTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>, "many">>;
544
550
  trustedTypes: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<true>, z.ZodString]>, z.ZodObject<{
545
551
  policyName: z.ZodOptional<z.ZodString>;
552
+ onPolicyCreationFailure: z.ZodOptional<z.ZodEnum<["continue", "stop"]>>;
546
553
  }, "strict", z.ZodTypeAny, {
547
554
  policyName?: string | undefined;
555
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
548
556
  }, {
549
557
  policyName?: string | undefined;
558
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
550
559
  }>]>>;
551
560
  sourceMapFilename: z.ZodOptional<z.ZodString>;
552
561
  hashDigest: z.ZodOptional<z.ZodString>;
@@ -667,7 +676,9 @@ export declare const rspackOptions: z.ZodObject<{
667
676
  crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
668
677
  uniqueName?: string | undefined;
669
678
  pathinfo?: boolean | "verbose" | undefined;
670
- clean?: boolean | undefined;
679
+ clean?: boolean | {
680
+ keep?: string | undefined;
681
+ } | undefined;
671
682
  cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
672
683
  cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
673
684
  hotUpdateMainFilename?: string | undefined;
@@ -687,6 +698,7 @@ export declare const rspackOptions: z.ZodObject<{
687
698
  enabledChunkLoadingTypes?: string[] | undefined;
688
699
  trustedTypes?: string | true | {
689
700
  policyName?: string | undefined;
701
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
690
702
  } | undefined;
691
703
  sourceMapFilename?: string | undefined;
692
704
  hashDigest?: string | undefined;
@@ -763,7 +775,9 @@ export declare const rspackOptions: z.ZodObject<{
763
775
  crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
764
776
  uniqueName?: string | undefined;
765
777
  pathinfo?: boolean | "verbose" | undefined;
766
- clean?: boolean | undefined;
778
+ clean?: boolean | {
779
+ keep?: string | undefined;
780
+ } | undefined;
767
781
  cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
768
782
  cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
769
783
  hotUpdateMainFilename?: string | undefined;
@@ -783,6 +797,7 @@ export declare const rspackOptions: z.ZodObject<{
783
797
  enabledChunkLoadingTypes?: string[] | undefined;
784
798
  trustedTypes?: string | true | {
785
799
  policyName?: string | undefined;
800
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
786
801
  } | undefined;
787
802
  sourceMapFilename?: string | undefined;
788
803
  hashDigest?: string | undefined;
@@ -970,6 +985,8 @@ export declare const rspackOptions: z.ZodObject<{
970
985
  providedExports: z.ZodOptional<z.ZodBoolean>;
971
986
  dependenciesDiagnostics: z.ZodOptional<z.ZodBoolean>;
972
987
  buildChunkGraph: z.ZodOptional<z.ZodBoolean>;
988
+ moduleIds: z.ZodOptional<z.ZodBoolean>;
989
+ chunkIds: z.ZodOptional<z.ZodBoolean>;
973
990
  modulesHashes: z.ZodOptional<z.ZodBoolean>;
974
991
  modulesCodegen: z.ZodOptional<z.ZodBoolean>;
975
992
  modulesRuntimeRequirements: z.ZodOptional<z.ZodBoolean>;
@@ -983,6 +1000,8 @@ export declare const rspackOptions: z.ZodObject<{
983
1000
  inferAsyncModules?: boolean | undefined;
984
1001
  dependenciesDiagnostics?: boolean | undefined;
985
1002
  buildChunkGraph?: boolean | undefined;
1003
+ moduleIds?: boolean | undefined;
1004
+ chunkIds?: boolean | undefined;
986
1005
  modulesHashes?: boolean | undefined;
987
1006
  modulesCodegen?: boolean | undefined;
988
1007
  modulesRuntimeRequirements?: boolean | undefined;
@@ -996,6 +1015,8 @@ export declare const rspackOptions: z.ZodObject<{
996
1015
  inferAsyncModules?: boolean | undefined;
997
1016
  dependenciesDiagnostics?: boolean | undefined;
998
1017
  buildChunkGraph?: boolean | undefined;
1018
+ moduleIds?: boolean | undefined;
1019
+ chunkIds?: boolean | undefined;
999
1020
  modulesHashes?: boolean | undefined;
1000
1021
  modulesCodegen?: boolean | undefined;
1001
1022
  modulesRuntimeRequirements?: boolean | undefined;
@@ -1056,6 +1077,8 @@ export declare const rspackOptions: z.ZodObject<{
1056
1077
  inferAsyncModules?: boolean | undefined;
1057
1078
  dependenciesDiagnostics?: boolean | undefined;
1058
1079
  buildChunkGraph?: boolean | undefined;
1080
+ moduleIds?: boolean | undefined;
1081
+ chunkIds?: boolean | undefined;
1059
1082
  modulesHashes?: boolean | undefined;
1060
1083
  modulesCodegen?: boolean | undefined;
1061
1084
  modulesRuntimeRequirements?: boolean | undefined;
@@ -1117,6 +1140,8 @@ export declare const rspackOptions: z.ZodObject<{
1117
1140
  inferAsyncModules?: boolean | undefined;
1118
1141
  dependenciesDiagnostics?: boolean | undefined;
1119
1142
  buildChunkGraph?: boolean | undefined;
1143
+ moduleIds?: boolean | undefined;
1144
+ chunkIds?: boolean | undefined;
1120
1145
  modulesHashes?: boolean | undefined;
1121
1146
  modulesCodegen?: boolean | undefined;
1122
1147
  modulesRuntimeRequirements?: boolean | undefined;
@@ -1155,107 +1180,7 @@ export declare const rspackOptions: z.ZodObject<{
1155
1180
  } | undefined;
1156
1181
  } | undefined;
1157
1182
  }>>;
1158
- externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1159
- context: z.ZodOptional<z.ZodString>;
1160
- dependencyType: z.ZodOptional<z.ZodString>;
1161
- request: z.ZodOptional<z.ZodString>;
1162
- contextInfo: z.ZodOptional<z.ZodObject<{
1163
- issuer: z.ZodString;
1164
- }, "strict", z.ZodTypeAny, {
1165
- issuer: string;
1166
- }, {
1167
- issuer: string;
1168
- }>>;
1169
- }, "strict", z.ZodTypeAny, {
1170
- request?: string | undefined;
1171
- context?: string | undefined;
1172
- dependencyType?: string | undefined;
1173
- contextInfo?: {
1174
- issuer: string;
1175
- } | undefined;
1176
- }, {
1177
- request?: string | undefined;
1178
- context?: string | undefined;
1179
- dependencyType?: string | undefined;
1180
- contextInfo?: {
1181
- issuer: string;
1182
- } | undefined;
1183
- }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1184
- context: z.ZodOptional<z.ZodString>;
1185
- dependencyType: z.ZodOptional<z.ZodString>;
1186
- request: z.ZodOptional<z.ZodString>;
1187
- contextInfo: z.ZodOptional<z.ZodObject<{
1188
- issuer: z.ZodString;
1189
- }, "strict", z.ZodTypeAny, {
1190
- issuer: string;
1191
- }, {
1192
- issuer: string;
1193
- }>>;
1194
- }, "strict", z.ZodTypeAny, {
1195
- request?: string | undefined;
1196
- context?: string | undefined;
1197
- dependencyType?: string | undefined;
1198
- contextInfo?: {
1199
- issuer: string;
1200
- } | undefined;
1201
- }, {
1202
- request?: string | undefined;
1203
- context?: string | undefined;
1204
- dependencyType?: string | undefined;
1205
- contextInfo?: {
1206
- issuer: string;
1207
- } | undefined;
1208
- }>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1209
- context: z.ZodOptional<z.ZodString>;
1210
- dependencyType: z.ZodOptional<z.ZodString>;
1211
- request: z.ZodOptional<z.ZodString>;
1212
- contextInfo: z.ZodOptional<z.ZodObject<{
1213
- issuer: z.ZodString;
1214
- }, "strict", z.ZodTypeAny, {
1215
- issuer: string;
1216
- }, {
1217
- issuer: string;
1218
- }>>;
1219
- }, "strict", z.ZodTypeAny, {
1220
- request?: string | undefined;
1221
- context?: string | undefined;
1222
- dependencyType?: string | undefined;
1223
- contextInfo?: {
1224
- issuer: string;
1225
- } | undefined;
1226
- }, {
1227
- request?: string | undefined;
1228
- context?: string | undefined;
1229
- dependencyType?: string | undefined;
1230
- contextInfo?: {
1231
- issuer: string;
1232
- } | undefined;
1233
- }>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1234
- context: z.ZodOptional<z.ZodString>;
1235
- dependencyType: z.ZodOptional<z.ZodString>;
1236
- request: z.ZodOptional<z.ZodString>;
1237
- contextInfo: z.ZodOptional<z.ZodObject<{
1238
- issuer: z.ZodString;
1239
- }, "strict", z.ZodTypeAny, {
1240
- issuer: string;
1241
- }, {
1242
- issuer: string;
1243
- }>>;
1244
- }, "strict", z.ZodTypeAny, {
1245
- request?: string | undefined;
1246
- context?: string | undefined;
1247
- dependencyType?: string | undefined;
1248
- contextInfo?: {
1249
- issuer: string;
1250
- } | undefined;
1251
- }, {
1252
- request?: string | undefined;
1253
- context?: string | undefined;
1254
- dependencyType?: string | undefined;
1255
- contextInfo?: {
1256
- issuer: string;
1257
- } | undefined;
1258
- }>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
1183
+ externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
1259
1184
  externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>;
1260
1185
  externalsPresets: z.ZodOptional<z.ZodObject<{
1261
1186
  node: z.ZodOptional<z.ZodBoolean>;
@@ -1843,9 +1768,9 @@ export declare const rspackOptions: z.ZodObject<{
1843
1768
  } | undefined;
1844
1769
  usedExports?: boolean | "global" | undefined;
1845
1770
  providedExports?: boolean | undefined;
1846
- removeAvailableModules?: boolean | undefined;
1847
1771
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
1848
1772
  chunkIds?: "named" | "natural" | "deterministic" | undefined;
1773
+ removeAvailableModules?: boolean | undefined;
1849
1774
  minimize?: boolean | undefined;
1850
1775
  minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1851
1776
  mergeDuplicateChunks?: boolean | undefined;
@@ -1909,9 +1834,9 @@ export declare const rspackOptions: z.ZodObject<{
1909
1834
  } | undefined;
1910
1835
  usedExports?: boolean | "global" | undefined;
1911
1836
  providedExports?: boolean | undefined;
1912
- removeAvailableModules?: boolean | undefined;
1913
1837
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
1914
1838
  chunkIds?: "named" | "natural" | "deterministic" | undefined;
1839
+ removeAvailableModules?: boolean | undefined;
1915
1840
  minimize?: boolean | undefined;
1916
1841
  minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
1917
1842
  mergeDuplicateChunks?: boolean | undefined;
@@ -3240,6 +3165,8 @@ export declare const rspackOptions: z.ZodObject<{
3240
3165
  inferAsyncModules?: boolean | undefined;
3241
3166
  dependenciesDiagnostics?: boolean | undefined;
3242
3167
  buildChunkGraph?: boolean | undefined;
3168
+ moduleIds?: boolean | undefined;
3169
+ chunkIds?: boolean | undefined;
3243
3170
  modulesHashes?: boolean | undefined;
3244
3171
  modulesCodegen?: boolean | undefined;
3245
3172
  modulesRuntimeRequirements?: boolean | undefined;
@@ -3337,7 +3264,9 @@ export declare const rspackOptions: z.ZodObject<{
3337
3264
  crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
3338
3265
  uniqueName?: string | undefined;
3339
3266
  pathinfo?: boolean | "verbose" | undefined;
3340
- clean?: boolean | undefined;
3267
+ clean?: boolean | {
3268
+ keep?: string | undefined;
3269
+ } | undefined;
3341
3270
  cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3342
3271
  cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3343
3272
  hotUpdateMainFilename?: string | undefined;
@@ -3357,6 +3286,7 @@ export declare const rspackOptions: z.ZodObject<{
3357
3286
  enabledChunkLoadingTypes?: string[] | undefined;
3358
3287
  trustedTypes?: string | true | {
3359
3288
  policyName?: string | undefined;
3289
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
3360
3290
  } | undefined;
3361
3291
  sourceMapFilename?: string | undefined;
3362
3292
  hashDigest?: string | undefined;
@@ -3424,9 +3354,9 @@ export declare const rspackOptions: z.ZodObject<{
3424
3354
  } | undefined;
3425
3355
  usedExports?: boolean | "global" | undefined;
3426
3356
  providedExports?: boolean | undefined;
3427
- removeAvailableModules?: boolean | undefined;
3428
3357
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
3429
3358
  chunkIds?: "named" | "natural" | "deterministic" | undefined;
3359
+ removeAvailableModules?: boolean | undefined;
3430
3360
  minimize?: boolean | undefined;
3431
3361
  minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
3432
3362
  mergeDuplicateChunks?: boolean | undefined;
@@ -3525,35 +3455,7 @@ export declare const rspackOptions: z.ZodObject<{
3525
3455
  } | undefined;
3526
3456
  loader?: Record<string, any> | undefined;
3527
3457
  resolveLoader?: t.ResolveOptions | undefined;
3528
- externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
3529
- request?: string | undefined;
3530
- context?: string | undefined;
3531
- dependencyType?: string | undefined;
3532
- contextInfo?: {
3533
- issuer: string;
3534
- } | undefined;
3535
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3536
- request?: string | undefined;
3537
- context?: string | undefined;
3538
- dependencyType?: string | undefined;
3539
- contextInfo?: {
3540
- issuer: string;
3541
- } | undefined;
3542
- }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
3543
- request?: string | undefined;
3544
- context?: string | undefined;
3545
- dependencyType?: string | undefined;
3546
- contextInfo?: {
3547
- issuer: string;
3548
- } | undefined;
3549
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
3550
- request?: string | undefined;
3551
- context?: string | undefined;
3552
- dependencyType?: string | undefined;
3553
- contextInfo?: {
3554
- issuer: string;
3555
- } | undefined;
3556
- }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
3458
+ externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
3557
3459
  externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
3558
3460
  externalsPresets?: {
3559
3461
  node?: boolean | undefined;
@@ -3863,6 +3765,8 @@ export declare const rspackOptions: z.ZodObject<{
3863
3765
  inferAsyncModules?: boolean | undefined;
3864
3766
  dependenciesDiagnostics?: boolean | undefined;
3865
3767
  buildChunkGraph?: boolean | undefined;
3768
+ moduleIds?: boolean | undefined;
3769
+ chunkIds?: boolean | undefined;
3866
3770
  modulesHashes?: boolean | undefined;
3867
3771
  modulesCodegen?: boolean | undefined;
3868
3772
  modulesRuntimeRequirements?: boolean | undefined;
@@ -3960,7 +3864,9 @@ export declare const rspackOptions: z.ZodObject<{
3960
3864
  crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
3961
3865
  uniqueName?: string | undefined;
3962
3866
  pathinfo?: boolean | "verbose" | undefined;
3963
- clean?: boolean | undefined;
3867
+ clean?: boolean | {
3868
+ keep?: string | undefined;
3869
+ } | undefined;
3964
3870
  cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3965
3871
  cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
3966
3872
  hotUpdateMainFilename?: string | undefined;
@@ -3980,6 +3886,7 @@ export declare const rspackOptions: z.ZodObject<{
3980
3886
  enabledChunkLoadingTypes?: string[] | undefined;
3981
3887
  trustedTypes?: string | true | {
3982
3888
  policyName?: string | undefined;
3889
+ onPolicyCreationFailure?: "continue" | "stop" | undefined;
3983
3890
  } | undefined;
3984
3891
  sourceMapFilename?: string | undefined;
3985
3892
  hashDigest?: string | undefined;
@@ -4047,9 +3954,9 @@ export declare const rspackOptions: z.ZodObject<{
4047
3954
  } | undefined;
4048
3955
  usedExports?: boolean | "global" | undefined;
4049
3956
  providedExports?: boolean | undefined;
4050
- removeAvailableModules?: boolean | undefined;
4051
3957
  moduleIds?: "named" | "natural" | "deterministic" | undefined;
4052
3958
  chunkIds?: "named" | "natural" | "deterministic" | undefined;
3959
+ removeAvailableModules?: boolean | undefined;
4053
3960
  minimize?: boolean | undefined;
4054
3961
  minimizer?: (false | "" | 0 | t.RspackPluginInstance | "..." | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
4055
3962
  mergeDuplicateChunks?: boolean | undefined;
@@ -4148,35 +4055,7 @@ export declare const rspackOptions: z.ZodObject<{
4148
4055
  } | undefined;
4149
4056
  loader?: Record<string, any> | undefined;
4150
4057
  resolveLoader?: t.ResolveOptions | undefined;
4151
- externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
4152
- request?: string | undefined;
4153
- context?: string | undefined;
4154
- dependencyType?: string | undefined;
4155
- contextInfo?: {
4156
- issuer: string;
4157
- } | undefined;
4158
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4159
- request?: string | undefined;
4160
- context?: string | undefined;
4161
- dependencyType?: string | undefined;
4162
- contextInfo?: {
4163
- issuer: string;
4164
- } | undefined;
4165
- }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: {
4166
- request?: string | undefined;
4167
- context?: string | undefined;
4168
- dependencyType?: string | undefined;
4169
- contextInfo?: {
4170
- issuer: string;
4171
- } | undefined;
4172
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: {
4173
- request?: string | undefined;
4174
- context?: string | undefined;
4175
- dependencyType?: string | undefined;
4176
- contextInfo?: {
4177
- issuer: string;
4178
- } | undefined;
4179
- }, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
4058
+ externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
4180
4059
  externalsType?: "module" | "global" | "system" | "script" | "commonjs" | "umd" | "amd" | "var" | "jsonp" | "import" | "assign" | "this" | "window" | "self" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "promise" | "module-import" | "node-commonjs" | "commonjs-import" | undefined;
4181
4060
  externalsPresets?: {
4182
4061
  node?: boolean | undefined;
@@ -141,6 +141,7 @@ var pitch = function(request, _, data) {
141
141
  const callback = this.async();
142
142
  const filepath = this.resourcePath;
143
143
  const parseMeta = this.__internal__parseMeta;
144
+ this.addDependency(filepath);
144
145
  let { publicPath } = this._compilation.outputOptions;
145
146
  if (typeof options.publicPath === "string") {
146
147
  publicPath = options.publicPath;