@rspack/core 1.2.7-alpha.0 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -754,11 +754,11 @@ interface TransformConfig {
754
754
  */
755
755
  optimizer?: OptimizerConfig;
756
756
  /**
757
- * https://swc.rs/docs/configuring-swc.html#jsctransformlegacydecorator
757
+ * https://swc.rs/docs/configuration/compilation#jsctransformlegacydecorator
758
758
  */
759
759
  legacyDecorator?: boolean;
760
760
  /**
761
- * https://swc.rs/docs/configuring-swc.html#jsctransformdecoratormetadata
761
+ * https://swc.rs/docs/configuration/compilation#jsctransformdecoratormetadata
762
762
  */
763
763
  decoratorMetadata?: boolean;
764
764
  /**
@@ -766,7 +766,14 @@ interface TransformConfig {
766
766
  */
767
767
  decoratorVersion?: "2021-12" | "2022-03";
768
768
  treatConstEnumAsEnum?: boolean;
769
+ /**
770
+ * https://www.typescriptlang.org/tsconfig#useDefineForClassFields
771
+ */
769
772
  useDefineForClassFields?: boolean;
773
+ /**
774
+ * https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
775
+ */
776
+ verbatimModuleSyntax?: boolean;
770
777
  }
771
778
  interface ReactConfig {
772
779
  /**
@@ -1 +1 @@
1
- {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.17","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.19","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
@@ -8,7 +8,7 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type * as binding from "@rspack/binding";
11
- import { type AssetInfo, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
11
+ import { type AssetInfo, type Dependency, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
12
12
  export type { AssetInfo } from "@rspack/binding";
13
13
  import * as liteTapable from "@rspack/lite-tapable";
14
14
  import type { Source } from "../compiled/webpack-sources";
@@ -17,7 +17,6 @@ import { ChunkGraph } from "./ChunkGraph";
17
17
  import { ChunkGroup } from "./ChunkGroup";
18
18
  import type { Compiler } from "./Compiler";
19
19
  import type { ContextModuleFactory } from "./ContextModuleFactory";
20
- import { Dependency } from "./Dependency";
21
20
  import { Entrypoint } from "./Entrypoint";
22
21
  import { type CodeGenerationResult, Module } from "./Module";
23
22
  import ModuleGraph from "./ModuleGraph";
@@ -240,7 +239,7 @@ export declare class Compilation {
240
239
  /**
241
240
  * Update an existing asset. Trying to update an asset that doesn't exist will throw an error.
242
241
  */
243
- updateAsset(filename: string, newSourceOrFunction: Source | ((source: Source) => Source), assetInfoUpdateOrFunction?: AssetInfo | ((assetInfo: AssetInfo) => AssetInfo)): void;
242
+ updateAsset(filename: string, newSourceOrFunction: Source | ((source: Source) => Source), assetInfoUpdateOrFunction?: AssetInfo | ((assetInfo: AssetInfo) => AssetInfo | undefined)): void;
244
243
  /**
245
244
  * Emit an not existing asset. Trying to emit an asset that already exists will throw an error.
246
245
  *
@@ -128,8 +128,12 @@ declare class Compiler {
128
128
  watch(watchOptions: Watchpack.WatchOptions, handler: liteTapable.Callback<Error, Stats>): Watching;
129
129
  /**
130
130
  * @param callback - signals when the call finishes
131
+ * @param options - additional data like modifiedFiles, removedFiles
131
132
  */
132
- run(callback: liteTapable.Callback<Error, Stats>): void;
133
+ run(callback: liteTapable.Callback<Error, Stats>, options?: {
134
+ modifiedFiles?: ReadonlySet<string>;
135
+ removedFiles?: ReadonlySet<string>;
136
+ }): void;
133
137
  runAsChild(callback: (err?: null | Error, entries?: Chunk[], compilation?: Compilation) => any): void;
134
138
  purgeInputFileSystem(): void;
135
139
  /**
@@ -1,5 +1,4 @@
1
- import type { JsDependenciesBlock } from "@rspack/binding";
2
- import { Dependency } from "./Dependency";
1
+ import type { Dependency, JsDependenciesBlock } from "@rspack/binding";
3
2
  export declare class DependenciesBlock {
4
3
  #private;
5
4
  readonly dependencies: Dependency[];
@@ -6,4 +6,5 @@ export declare class Entrypoint extends ChunkGroup {
6
6
  static __from_binding(binding: JsChunkGroup): Entrypoint;
7
7
  protected constructor(binding: JsChunkGroup);
8
8
  getRuntimeChunk(): Readonly<Chunk | null>;
9
+ getEntrypointChunk(): Readonly<Chunk | null>;
9
10
  }
package/dist/Module.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import type { AssetInfo, JsCodegenerationResult, JsContextModuleFactoryAfterResolveData, JsContextModuleFactoryBeforeResolveData, JsCreateData, JsFactoryMeta, JsLibIdentOptions } from "@rspack/binding";
1
+ import type { AssetInfo, Dependency, JsCodegenerationResult, JsContextModuleFactoryAfterResolveData, JsContextModuleFactoryBeforeResolveData, JsCreateData, JsFactoryMeta, JsLibIdentOptions } from "@rspack/binding";
2
2
  import type { JsModule } from "@rspack/binding";
3
3
  import type { Source } from "../compiled/webpack-sources";
4
4
  import { DependenciesBlock } from "./DependenciesBlock";
5
- import { Dependency } from "./Dependency";
6
5
  export type ResourceData = {
7
6
  resource: string;
8
7
  path: string;
@@ -15,7 +14,7 @@ export type ResourceDataWithData = ResourceData & {
15
14
  export type CreateData = Partial<JsCreateData>;
16
15
  export type ContextInfo = {
17
16
  issuer: string;
18
- issuerLayer?: string;
17
+ issuerLayer?: string | null;
19
18
  };
20
19
  export type ResolveData = {
21
20
  contextInfo: ContextInfo;
@@ -1,5 +1,4 @@
1
- import type { JsModuleGraph } from "@rspack/binding";
2
- import { Dependency } from "./Dependency";
1
+ import type { Dependency, JsModuleGraph } from "@rspack/binding";
3
2
  import { ExportsInfo } from "./ExportsInfo";
4
3
  import { Module } from "./Module";
5
4
  import { ModuleGraphConnection } from "./ModuleGraphConnection";
@@ -17,4 +16,5 @@ export default class ModuleGraph {
17
16
  getIncomingConnections(module: Module): ModuleGraphConnection[];
18
17
  getParentBlockIndex(dependency: Dependency): number;
19
18
  isAsync(module: Module): boolean;
19
+ getOutgoingConnectionsInOrder(module: Module): ModuleGraphConnection[];
20
20
  }
@@ -1,5 +1,4 @@
1
- import type { JsModuleGraphConnection } from "@rspack/binding";
2
- import { Dependency } from "./Dependency";
1
+ import type { Dependency, JsModuleGraphConnection } from "@rspack/binding";
3
2
  import { Module } from "./Module";
4
3
  export declare class ModuleGraphConnection {
5
4
  #private;
@@ -62,7 +62,14 @@ export declare class MultiCompiler {
62
62
  * @returns a compiler watcher
63
63
  */
64
64
  watch(watchOptions: WatchOptions, handler: liteTapable.Callback<Error, MultiStats>): MultiWatching;
65
- run(callback: liteTapable.Callback<Error, MultiStats>): void;
65
+ /**
66
+ * @param callback - signals when the call finishes
67
+ * @param options - additional data like modifiedFiles, removedFiles
68
+ */
69
+ run(callback: liteTapable.Callback<Error, MultiStats>, options?: {
70
+ modifiedFiles?: ReadonlySet<string>;
71
+ removedFiles?: ReadonlySet<string>;
72
+ }): void;
66
73
  purgeInputFileSystem(): void;
67
74
  close(callback: liteTapable.Callback<Error, void>): void;
68
75
  }
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, type JsEntryOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, EntryDependency, type JsEntryOptions } from "@rspack/binding";
2
2
  import type { EntryDescriptionNormalized } from "../config";
3
3
  /**
4
4
  * Options for the `EntryPlugin`.
@@ -24,9 +24,6 @@ declare const OriginEntryPlugin: {
24
24
  apply(compiler: import("..").Compiler): void;
25
25
  };
26
26
  };
27
- interface EntryDependency {
28
- request: string;
29
- }
30
27
  type EntryPluginType = typeof OriginEntryPlugin & {
31
28
  createDependency(entry: string): EntryDependency;
32
29
  };
@@ -0,0 +1,10 @@
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
+ export declare const ModuleInfoHeaderPlugin: {
3
+ new (verbose: any): {
4
+ name: BuiltinPluginName;
5
+ _args: [verbose: any];
6
+ affectedHooks: "done" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
+ };
10
+ };
@@ -52,7 +52,10 @@ export type HtmlRspackPluginOptions = {
52
52
  * @default "auto"
53
53
  */
54
54
  chunksSortMode?: "auto" | "manual";
55
- /** The SRI hash algorithm, disabled by default. */
55
+ /**
56
+ * Configure the SRI hash algorithm, which is disabled by default.
57
+ * @deprecated Use `experiments.SubresourceIntegrityPlugin` instead.
58
+ */
56
59
  sri?: "sha256" | "sha384" | "sha512";
57
60
  /**
58
61
  * Controls whether to minify the output, disabled by default.
@@ -72,3 +72,4 @@ export * from "./DllEntryPlugin";
72
72
  export * from "./DllReferenceAgencyPlugin";
73
73
  export * from "./RsdoctorPlugin";
74
74
  export * from "./SubresourceIntegrityPlugin";
75
+ export * from "./ModuleInfoHeaderPlugin";
@@ -32,24 +32,21 @@ export interface LazyCompilationDefaultBackendOptions {
32
32
  export type ServerOptionsHttps<Request extends typeof IncomingMessage = typeof IncomingMessage, Response extends typeof ServerResponse = typeof ServerResponse> = SecureContextOptions & TlsOptions & ServerOptionsImport<Request, Response>;
33
33
  declare const getBackend: (options: Omit<LazyCompilationDefaultBackendOptions, "client"> & {
34
34
  client: NonNullable<LazyCompilationDefaultBackendOptions["client"]>;
35
- }) => (compiler: Compiler, callback: (err: Error | null, obj?: {
36
- dispose: (callback: (err: any) => void) => void;
37
- module: (args: {
38
- module: string;
39
- path: string;
40
- }) => {
41
- data: string;
42
- client: string;
43
- active: boolean;
35
+ }) => {
36
+ state: {
37
+ module: any;
38
+ dispose: any;
44
39
  };
45
- }) => void) => void;
46
- export default getBackend;
47
- export declare function dispose(callback: any): void;
48
- export declare function moduleImpl(args: {
49
- module: string;
50
- path: string;
51
- }): {
52
- active: boolean;
53
- data: string;
54
- client: string;
40
+ backend: (compiler: Compiler, callback: (err: Error | null, obj?: {
41
+ dispose: (callback: (err: any) => void) => void;
42
+ module: (args: {
43
+ module: string;
44
+ path: string;
45
+ }) => {
46
+ data: string;
47
+ client: string;
48
+ active: boolean;
49
+ };
50
+ }) => void) => void;
55
51
  };
52
+ export default getBackend;
@@ -950,8 +950,6 @@ export declare const rspackOptions: z.ZodObject<{
950
950
  test: z.ZodOptional<z.ZodUnion<[z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodType<Module, z.ZodTypeDef, Module>], z.ZodUnknown>, z.ZodBoolean>]>>;
951
951
  }, "strip", z.ZodTypeAny, {
952
952
  entries?: boolean | undefined;
953
- test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
954
- imports?: boolean | undefined;
955
953
  backend?: {
956
954
  client?: string | undefined;
957
955
  listen?: number | {
@@ -967,10 +965,10 @@ export declare const rspackOptions: z.ZodObject<{
967
965
  protocol?: "http" | "https" | undefined;
968
966
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
969
967
  } | undefined;
970
- }, {
971
- entries?: boolean | undefined;
972
968
  test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
973
969
  imports?: boolean | undefined;
970
+ }, {
971
+ entries?: boolean | undefined;
974
972
  backend?: {
975
973
  client?: string | undefined;
976
974
  listen?: number | {
@@ -986,6 +984,8 @@ export declare const rspackOptions: z.ZodObject<{
986
984
  protocol?: "http" | "https" | undefined;
987
985
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
988
986
  } | undefined;
987
+ test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
988
+ imports?: boolean | undefined;
989
989
  }>]>;
990
990
  asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
991
991
  outputModule: z.ZodOptional<z.ZodBoolean>;
@@ -1090,8 +1090,6 @@ export declare const rspackOptions: z.ZodObject<{
1090
1090
  } | undefined;
1091
1091
  lazyCompilation?: boolean | {
1092
1092
  entries?: boolean | undefined;
1093
- test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
1094
- imports?: boolean | undefined;
1095
1093
  backend?: {
1096
1094
  client?: string | undefined;
1097
1095
  listen?: number | {
@@ -1107,6 +1105,8 @@ export declare const rspackOptions: z.ZodObject<{
1107
1105
  protocol?: "http" | "https" | undefined;
1108
1106
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
1109
1107
  } | undefined;
1108
+ test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
1109
+ imports?: boolean | undefined;
1110
1110
  } | undefined;
1111
1111
  asyncWebAssembly?: boolean | undefined;
1112
1112
  outputModule?: boolean | undefined;
@@ -1158,8 +1158,6 @@ export declare const rspackOptions: z.ZodObject<{
1158
1158
  } | undefined;
1159
1159
  lazyCompilation?: boolean | {
1160
1160
  entries?: boolean | undefined;
1161
- test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
1162
- imports?: boolean | undefined;
1163
1161
  backend?: {
1164
1162
  client?: string | undefined;
1165
1163
  listen?: number | {
@@ -1175,6 +1173,8 @@ export declare const rspackOptions: z.ZodObject<{
1175
1173
  protocol?: "http" | "https" | undefined;
1176
1174
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
1177
1175
  } | undefined;
1176
+ test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
1177
+ imports?: boolean | undefined;
1178
1178
  } | undefined;
1179
1179
  asyncWebAssembly?: boolean | undefined;
1180
1180
  outputModule?: boolean | undefined;
@@ -2423,7 +2423,7 @@ export declare const rspackOptions: z.ZodObject<{
2423
2423
  }, {
2424
2424
  encoding?: false | "base64" | undefined;
2425
2425
  mimetype?: string | undefined;
2426
- }>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBuffer>, z.ZodTypeDef, Buffer<ArrayBuffer>>, z.ZodObject<{
2426
+ }>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
2427
2427
  filename: z.ZodString;
2428
2428
  module: z.ZodType<Module, z.ZodTypeDef, Module>;
2429
2429
  }, "strict", z.ZodTypeAny, {
@@ -2443,7 +2443,7 @@ export declare const rspackOptions: z.ZodObject<{
2443
2443
  dataUrl?: {
2444
2444
  encoding?: false | "base64" | undefined;
2445
2445
  mimetype?: string | undefined;
2446
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2446
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2447
2447
  module: Module;
2448
2448
  filename: string;
2449
2449
  }, ...args: unknown[]) => string) | undefined;
@@ -2454,7 +2454,7 @@ export declare const rspackOptions: z.ZodObject<{
2454
2454
  dataUrl?: {
2455
2455
  encoding?: false | "base64" | undefined;
2456
2456
  mimetype?: string | undefined;
2457
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2457
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2458
2458
  module: Module;
2459
2459
  filename: string;
2460
2460
  }, ...args: unknown[]) => string) | undefined;
@@ -2470,7 +2470,7 @@ export declare const rspackOptions: z.ZodObject<{
2470
2470
  }, {
2471
2471
  encoding?: false | "base64" | undefined;
2472
2472
  mimetype?: string | undefined;
2473
- }>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBuffer>, z.ZodTypeDef, Buffer<ArrayBuffer>>, z.ZodObject<{
2473
+ }>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
2474
2474
  filename: z.ZodString;
2475
2475
  module: z.ZodType<Module, z.ZodTypeDef, Module>;
2476
2476
  }, "strict", z.ZodTypeAny, {
@@ -2484,7 +2484,7 @@ export declare const rspackOptions: z.ZodObject<{
2484
2484
  dataUrl?: {
2485
2485
  encoding?: false | "base64" | undefined;
2486
2486
  mimetype?: string | undefined;
2487
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2487
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2488
2488
  module: Module;
2489
2489
  filename: string;
2490
2490
  }, ...args: unknown[]) => string) | undefined;
@@ -2492,7 +2492,7 @@ export declare const rspackOptions: z.ZodObject<{
2492
2492
  dataUrl?: {
2493
2493
  encoding?: false | "base64" | undefined;
2494
2494
  mimetype?: string | undefined;
2495
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2495
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2496
2496
  module: Module;
2497
2497
  filename: string;
2498
2498
  }, ...args: unknown[]) => string) | undefined;
@@ -2563,7 +2563,7 @@ export declare const rspackOptions: z.ZodObject<{
2563
2563
  dataUrl?: {
2564
2564
  encoding?: false | "base64" | undefined;
2565
2565
  mimetype?: string | undefined;
2566
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2566
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2567
2567
  module: Module;
2568
2568
  filename: string;
2569
2569
  }, ...args: unknown[]) => string) | undefined;
@@ -2585,7 +2585,7 @@ export declare const rspackOptions: z.ZodObject<{
2585
2585
  dataUrl?: {
2586
2586
  encoding?: false | "base64" | undefined;
2587
2587
  mimetype?: string | undefined;
2588
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2588
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2589
2589
  module: Module;
2590
2590
  filename: string;
2591
2591
  }, ...args: unknown[]) => string) | undefined;
@@ -2606,7 +2606,7 @@ export declare const rspackOptions: z.ZodObject<{
2606
2606
  dataUrl?: {
2607
2607
  encoding?: false | "base64" | undefined;
2608
2608
  mimetype?: string | undefined;
2609
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2609
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2610
2610
  module: Module;
2611
2611
  filename: string;
2612
2612
  }, ...args: unknown[]) => string) | undefined;
@@ -2628,7 +2628,7 @@ export declare const rspackOptions: z.ZodObject<{
2628
2628
  dataUrl?: {
2629
2629
  encoding?: false | "base64" | undefined;
2630
2630
  mimetype?: string | undefined;
2631
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2631
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2632
2632
  module: Module;
2633
2633
  filename: string;
2634
2634
  }, ...args: unknown[]) => string) | undefined;
@@ -2754,7 +2754,7 @@ export declare const rspackOptions: z.ZodObject<{
2754
2754
  dataUrl?: {
2755
2755
  encoding?: false | "base64" | undefined;
2756
2756
  mimetype?: string | undefined;
2757
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2757
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2758
2758
  module: Module;
2759
2759
  filename: string;
2760
2760
  }, ...args: unknown[]) => string) | undefined;
@@ -2776,7 +2776,7 @@ export declare const rspackOptions: z.ZodObject<{
2776
2776
  dataUrl?: {
2777
2777
  encoding?: false | "base64" | undefined;
2778
2778
  mimetype?: string | undefined;
2779
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2779
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2780
2780
  module: Module;
2781
2781
  filename: string;
2782
2782
  }, ...args: unknown[]) => string) | undefined;
@@ -2902,7 +2902,7 @@ export declare const rspackOptions: z.ZodObject<{
2902
2902
  dataUrl?: {
2903
2903
  encoding?: false | "base64" | undefined;
2904
2904
  mimetype?: string | undefined;
2905
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2905
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2906
2906
  module: Module;
2907
2907
  filename: string;
2908
2908
  }, ...args: unknown[]) => string) | undefined;
@@ -2924,7 +2924,7 @@ export declare const rspackOptions: z.ZodObject<{
2924
2924
  dataUrl?: {
2925
2925
  encoding?: false | "base64" | undefined;
2926
2926
  mimetype?: string | undefined;
2927
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
2927
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
2928
2928
  module: Module;
2929
2929
  filename: string;
2930
2930
  }, ...args: unknown[]) => string) | undefined;
@@ -3074,7 +3074,7 @@ export declare const rspackOptions: z.ZodObject<{
3074
3074
  dataUrl?: {
3075
3075
  encoding?: false | "base64" | undefined;
3076
3076
  mimetype?: string | undefined;
3077
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
3077
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3078
3078
  module: Module;
3079
3079
  filename: string;
3080
3080
  }, ...args: unknown[]) => string) | undefined;
@@ -3096,7 +3096,7 @@ export declare const rspackOptions: z.ZodObject<{
3096
3096
  dataUrl?: {
3097
3097
  encoding?: false | "base64" | undefined;
3098
3098
  mimetype?: string | undefined;
3099
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
3099
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3100
3100
  module: Module;
3101
3101
  filename: string;
3102
3102
  }, ...args: unknown[]) => string) | undefined;
@@ -3144,8 +3144,6 @@ export declare const rspackOptions: z.ZodObject<{
3144
3144
  } | undefined;
3145
3145
  lazyCompilation?: boolean | {
3146
3146
  entries?: boolean | undefined;
3147
- test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
3148
- imports?: boolean | undefined;
3149
3147
  backend?: {
3150
3148
  client?: string | undefined;
3151
3149
  listen?: number | {
@@ -3161,6 +3159,8 @@ export declare const rspackOptions: z.ZodObject<{
3161
3159
  protocol?: "http" | "https" | undefined;
3162
3160
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
3163
3161
  } | undefined;
3162
+ test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
3163
+ imports?: boolean | undefined;
3164
3164
  } | undefined;
3165
3165
  asyncWebAssembly?: boolean | undefined;
3166
3166
  outputModule?: boolean | undefined;
@@ -3685,7 +3685,7 @@ export declare const rspackOptions: z.ZodObject<{
3685
3685
  dataUrl?: {
3686
3686
  encoding?: false | "base64" | undefined;
3687
3687
  mimetype?: string | undefined;
3688
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
3688
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3689
3689
  module: Module;
3690
3690
  filename: string;
3691
3691
  }, ...args: unknown[]) => string) | undefined;
@@ -3707,7 +3707,7 @@ export declare const rspackOptions: z.ZodObject<{
3707
3707
  dataUrl?: {
3708
3708
  encoding?: false | "base64" | undefined;
3709
3709
  mimetype?: string | undefined;
3710
- } | ((args_0: Buffer<ArrayBuffer>, args_1: {
3710
+ } | ((args_0: Buffer<ArrayBufferLike>, args_1: {
3711
3711
  module: Module;
3712
3712
  filename: string;
3713
3713
  }, ...args: unknown[]) => string) | undefined;
@@ -3755,8 +3755,6 @@ export declare const rspackOptions: z.ZodObject<{
3755
3755
  } | undefined;
3756
3756
  lazyCompilation?: boolean | {
3757
3757
  entries?: boolean | undefined;
3758
- test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
3759
- imports?: boolean | undefined;
3760
3758
  backend?: {
3761
3759
  client?: string | undefined;
3762
3760
  listen?: number | {
@@ -3772,6 +3770,8 @@ export declare const rspackOptions: z.ZodObject<{
3772
3770
  protocol?: "http" | "https" | undefined;
3773
3771
  server?: Record<string, any> | ((...args: unknown[]) => any) | undefined;
3774
3772
  } | undefined;
3773
+ test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
3774
+ imports?: boolean | undefined;
3775
3775
  } | undefined;
3776
3776
  asyncWebAssembly?: boolean | undefined;
3777
3777
  outputModule?: boolean | undefined;
package/dist/exports.d.ts CHANGED
@@ -18,6 +18,7 @@ export { RuntimeGlobals } from "./RuntimeGlobals";
18
18
  export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
19
19
  export { Stats } from "./Stats";
20
20
  export { RuntimeModule } from "./RuntimeModule";
21
+ export { EntryDependency, Dependency } from "@rspack/binding";
21
22
  import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
22
23
  export { ModuleFilenameHelpers };
23
24
  export { Template } from "./Template";