@rspack-canary/browser 1.4.12-canary-40c41ca5-20250806090917 → 1.4.12-canary-1a94ade3-20250814141828

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.
Files changed (139) hide show
  1. package/dist/BuildInfo.d.ts +3 -3
  2. package/dist/Chunk.d.ts +3 -3
  3. package/dist/ChunkGraph.d.ts +2 -2
  4. package/dist/Chunks.d.ts +2 -2
  5. package/dist/Compilation.d.ts +5 -5
  6. package/dist/Compiler.d.ts +6 -1
  7. package/dist/ConcatenatedModule.d.ts +1 -1
  8. package/dist/ContextModule.d.ts +1 -1
  9. package/dist/Diagnostics.d.ts +1 -1
  10. package/dist/Entrypoint.d.ts +1 -1
  11. package/dist/ExportsInfo.d.ts +1 -1
  12. package/dist/ExternalModule.d.ts +1 -1
  13. package/dist/FileSystem.d.ts +1 -1
  14. package/dist/Module.d.ts +6 -17
  15. package/dist/ModuleGraph.d.ts +1 -1
  16. package/dist/NativeWatchFileSystem.d.ts +2 -1
  17. package/dist/NormalModule.d.ts +2 -2
  18. package/dist/NormalModuleFactory.d.ts +1 -1
  19. package/dist/Resolver.d.ts +1 -1
  20. package/dist/ResolverFactory.d.ts +1 -1
  21. package/dist/RspackError.d.ts +2 -2
  22. package/dist/RuntimeGlobals.d.ts +1 -1
  23. package/dist/RuntimeModule.d.ts +1 -1
  24. package/dist/VirtualModulesPlugin.d.ts +12 -0
  25. package/dist/binding.d.ts +8 -0
  26. package/dist/browser/fs.d.ts +6 -6
  27. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
  32. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  38. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
  46. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
  53. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
  54. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
  55. package/dist/builtin-plugin/ExternalsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/HttpUriPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
  73. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  74. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  75. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  78. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  79. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  82. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +10 -0
  84. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
  85. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  86. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  87. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  88. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  89. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  90. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
  91. package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
  92. package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
  93. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
  94. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  95. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  96. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  97. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
  98. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
  99. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
  100. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  101. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  102. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
  103. package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
  104. package/dist/builtin-plugin/base.d.ts +1 -1
  105. package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
  106. package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
  107. package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
  108. package/dist/builtin-plugin/index.d.ts +1 -0
  109. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  110. package/dist/config/adapter.d.ts +1 -1
  111. package/dist/config/adapterRuleUse.d.ts +1 -1
  112. package/dist/config/normalization.d.ts +6 -0
  113. package/dist/config/types.d.ts +12 -1
  114. package/dist/container/ContainerPlugin.d.ts +1 -1
  115. package/dist/container/ContainerReferencePlugin.d.ts +1 -1
  116. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  117. package/dist/exports.d.ts +7 -6
  118. package/dist/index.mjs +371 -297
  119. package/dist/lib/DllReferencePlugin.d.ts +1 -1
  120. package/dist/lib/WebpackError.d.ts +1 -1
  121. package/dist/loader-runner/index.d.ts +1 -1
  122. package/dist/loader-runner/worker.d.ts +1 -1
  123. package/dist/napi-binding.d.ts +3068 -0
  124. package/dist/rspack.wasi-browser.js +2 -0
  125. package/dist/rspack.wasm32-wasi.wasm +0 -0
  126. package/dist/schema/config.d.ts +12 -0
  127. package/dist/schema/plugins.d.ts +1 -1
  128. package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
  129. package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
  130. package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
  131. package/dist/stats/StatsFactory.d.ts +1 -1
  132. package/dist/stats/statsFactoryUtils.d.ts +2 -2
  133. package/dist/swc.d.ts +1 -1
  134. package/dist/taps/compilation.d.ts +1 -1
  135. package/dist/taps/types.d.ts +1 -1
  136. package/dist/util/SplitChunkSize.d.ts +1 -1
  137. package/dist/util/source.d.ts +1 -1
  138. package/package.json +7 -5
  139. package/dist/lib/NormalModuleReplacementPlugin.d.ts +0 -29
@@ -1,7 +1,7 @@
1
- import binding from "@rspack/binding";
1
+ import binding from "./binding";
2
2
  import type { Source } from "webpack-sources";
3
3
  declare const $assets: unique symbol;
4
- declare module "@rspack/binding" {
4
+ declare module "./binding" {
5
5
  interface Assets {
6
6
  [$assets]: Record<string, Source>;
7
7
  }
@@ -13,5 +13,5 @@ declare module "@rspack/binding" {
13
13
  buildDependencies: Set<string>;
14
14
  }
15
15
  }
16
- export type { BuildInfo } from "@rspack/binding";
16
+ export type { BuildInfo } from "./binding";
17
17
  export declare const commitCustomFieldsToRust: (buildInfo: binding.BuildInfo) => void;
package/dist/Chunk.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { type ChunkGroup } from "@rspack/binding";
1
+ import { type ChunkGroup } from "./binding";
2
2
  interface ChunkMaps {
3
3
  hash: Record<string | number, string>;
4
4
  contentHash: Record<string | number, Record<string, string>>;
5
5
  name: Record<string | number, string>;
6
6
  }
7
- declare module "@rspack/binding" {
7
+ declare module "./binding" {
8
8
  interface Chunk {
9
9
  readonly files: ReadonlySet<string>;
10
10
  readonly runtime: ReadonlySet<string>;
@@ -13,4 +13,4 @@ declare module "@rspack/binding" {
13
13
  getChunkMaps(realHash: boolean): ChunkMaps;
14
14
  }
15
15
  }
16
- export { Chunk } from "@rspack/binding";
16
+ export { Chunk } from "./binding";
@@ -1,9 +1,9 @@
1
1
  import type { RuntimeSpec } from "./util/runtime";
2
- declare module "@rspack/binding" {
2
+ declare module "./binding" {
3
3
  interface ChunkGraph {
4
4
  getModuleChunksIterable(module: Module): Iterable<Chunk>;
5
5
  getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
6
6
  getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
7
7
  }
8
8
  }
9
- export { ChunkGraph } from "@rspack/binding";
9
+ export { ChunkGraph } from "./binding";
package/dist/Chunks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Chunks } from "@rspack/binding";
2
- declare module "@rspack/binding" {
1
+ import { Chunks } from "./binding";
2
+ declare module "./binding" {
3
3
  interface Chunks {
4
4
  [Symbol.iterator](): SetIterator<Chunk>;
5
5
  entries(): SetIterator<[Chunk, Chunk]>;
@@ -7,9 +7,9 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
11
- import binding from "@rspack/binding";
12
- export type { AssetInfo } from "@rspack/binding";
10
+ import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "./binding";
11
+ import binding from "./binding";
12
+ export type { AssetInfo } from "./binding";
13
13
  import * as liteTapable from "@rspack/lite-tapable";
14
14
  import type { Source } from "webpack-sources";
15
15
  import type { EntryOptions, EntryPlugin } from "./builtin-plugin";
@@ -44,7 +44,7 @@ export interface Asset {
44
44
  source: Source;
45
45
  info: AssetInfo;
46
46
  }
47
- export type PathDataChunkLike = {
47
+ export type ChunkPathData = {
48
48
  id?: string;
49
49
  name?: string;
50
50
  hash?: string;
@@ -57,7 +57,7 @@ export type PathData = {
57
57
  runtime?: string;
58
58
  url?: string;
59
59
  id?: string;
60
- chunk?: Chunk | PathDataChunkLike;
60
+ chunk?: Chunk | ChunkPathData;
61
61
  contentHashType?: string;
62
62
  };
63
63
  export interface LogEntry {
@@ -7,7 +7,7 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import type binding from "@rspack/binding";
10
+ import type binding from "./binding";
11
11
  import * as liteTapable from "@rspack/lite-tapable";
12
12
  import type Watchpack from "watchpack";
13
13
  import type { Source } from "webpack-sources";
@@ -163,6 +163,11 @@ declare class Compiler {
163
163
  * @internal
164
164
  */
165
165
  __internal__create_compilation(native: binding.JsCompilation): Compilation;
166
+ /**
167
+ * Note: This is not a webpack public API, maybe removed in future.
168
+ * @internal
169
+ */
170
+ __internal__get_virtual_file_store(): binding.VirtualFileStore | null | undefined;
166
171
  /**
167
172
  * Note: This is not a webpack public API, maybe removed in future.
168
173
  * @internal
@@ -1 +1 @@
1
- export { ConcatenatedModule } from "@rspack/binding";
1
+ export { ConcatenatedModule } from "./binding";
@@ -1 +1 @@
1
- export { ContextModule } from "@rspack/binding";
1
+ export { ContextModule } from "./binding";
@@ -1,4 +1,4 @@
1
- import type { Diagnostics } from "@rspack/binding";
1
+ import type { Diagnostics } from "./binding";
2
2
  import type { RspackError } from "./RspackError";
3
3
  declare const $proxy: unique symbol;
4
4
  export declare function createDiagnosticArray(adm: Diagnostics & {
@@ -1,2 +1,2 @@
1
- import type { ChunkGroup } from "@rspack/binding";
1
+ import type { ChunkGroup } from "./binding";
2
2
  export type Entrypoint = ChunkGroup;
@@ -1,4 +1,4 @@
1
- import type { JsExportsInfo } from "@rspack/binding";
1
+ import type { JsExportsInfo } from "./binding";
2
2
  import type { RuntimeSpec } from "./util/runtime";
3
3
  /**
4
4
  * Unused: 0
@@ -1 +1 @@
1
- export { ExternalModule } from "@rspack/binding";
1
+ export { ExternalModule } from "./binding";
@@ -1,4 +1,4 @@
1
- import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
1
+ import type { NodeFsStats, ThreadsafeNodeFS } from "./binding";
2
2
  import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
3
3
  declare class ThreadsafeInputNodeFS implements ThreadsafeNodeFS {
4
4
  writeFile: (name: string, content: Buffer) => Promise<void>;
package/dist/Module.d.ts CHANGED
@@ -1,24 +1,13 @@
1
- import binding, { type AssetInfo } from "@rspack/binding";
1
+ import binding, { type AssetInfo } from "./binding";
2
2
  import type { Source } from "webpack-sources";
3
3
  import type { ResourceData } from "./Resolver";
4
4
  import "./BuildInfo";
5
5
  export type ResourceDataWithData = ResourceData & {
6
6
  data?: Record<string, any>;
7
7
  };
8
- export type CreateData = Partial<binding.JsCreateData>;
9
- export type ContextInfo = {
10
- issuer: string;
11
- issuerLayer?: string | null;
12
- };
13
- export type ResolveData = {
14
- contextInfo: ContextInfo;
15
- context: string;
16
- request: string;
17
- fileDependencies: string[];
18
- missingDependencies: string[];
19
- contextDependencies: string[];
20
- createData?: CreateData;
21
- };
8
+ export type CreateData = binding.JsCreateData;
9
+ export type ContextInfo = binding.ContextInfo;
10
+ export type ResolveData = binding.JsResolveData;
22
11
  export declare class ContextModuleFactoryBeforeResolveData {
23
12
  #private;
24
13
  context: string;
@@ -43,11 +32,11 @@ export declare class ContextModuleFactoryAfterResolveData {
43
32
  private constructor();
44
33
  }
45
34
  export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
46
- declare module "@rspack/binding" {
35
+ declare module "./binding" {
47
36
  interface Module {
48
37
  identifier(): string;
49
38
  originalSource(): Source | null;
50
39
  emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
51
40
  }
52
41
  }
53
- export { Module } from "@rspack/binding";
42
+ export { Module } from "./binding";
@@ -1,4 +1,4 @@
1
- import type { Dependency, JsModuleGraph, ModuleGraphConnection } from "@rspack/binding";
1
+ import type { Dependency, JsModuleGraph, ModuleGraphConnection } from "./binding";
2
2
  import { ExportsInfo } from "./ExportsInfo";
3
3
  import type { Module } from "./Module";
4
4
  export default class ModuleGraph {
@@ -1,4 +1,4 @@
1
- import binding from "@rspack/binding";
1
+ import binding from "./binding";
2
2
  import type Watchpack from "watchpack";
3
3
  import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from "./util/fs";
4
4
  export default class NativeWatchFileSystem implements WatchFileSystem {
@@ -15,4 +15,5 @@ export default class NativeWatchFileSystem implements WatchFileSystem {
15
15
  removed?: Iterable<string>;
16
16
  }, _startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
17
17
  getNativeWatcher(options: Watchpack.WatchOptions): binding.NativeWatcher;
18
+ triggerEvent(kind: "change" | "remove" | "create", path: string): void;
18
19
  }
@@ -7,9 +7,9 @@ export interface NormalModuleCompilationHooks {
7
7
  readResourceForScheme: any;
8
8
  readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
9
9
  }
10
- declare module "@rspack/binding" {
10
+ declare module "./binding" {
11
11
  interface NormalModuleConstructor {
12
12
  getCompilationHooks(compilation: Compilation): NormalModuleCompilationHooks;
13
13
  }
14
14
  }
15
- export { NormalModule } from "@rspack/binding";
15
+ export { NormalModule } from "./binding";
@@ -1,4 +1,4 @@
1
- import type binding from "@rspack/binding";
1
+ import type binding from "./binding";
2
2
  import * as liteTapable from "@rspack/lite-tapable";
3
3
  import type { ResolveData, ResourceDataWithData } from "./Module";
4
4
  import type { ResolveOptionsWithDependencyType, ResolverFactory } from "./ResolverFactory";
@@ -1,4 +1,4 @@
1
- import type binding from "@rspack/binding";
1
+ import type binding from "./binding";
2
2
  import type { ResolveCallback } from "./config/adapterRuleUse";
3
3
  type ResolveContext = {};
4
4
  export type ResourceData = binding.JsResourceData;
@@ -1,4 +1,4 @@
1
- import binding from "@rspack/binding";
1
+ import binding from "./binding";
2
2
  import { type Resolve } from "./config";
3
3
  import { Resolver } from "./Resolver";
4
4
  export type ResolveOptionsWithDependencyType = Resolve & {
@@ -1,5 +1,5 @@
1
- import type binding from "@rspack/binding";
2
- export type { RspackError } from "@rspack/binding";
1
+ import type binding from "./binding";
2
+ export type { RspackError } from "./binding";
3
3
  export type RspackSeverity = binding.JsRspackSeverity;
4
4
  export declare class NonErrorEmittedError extends Error {
5
5
  constructor(error: Error);
@@ -7,7 +7,7 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import type { JsRuntimeGlobals } from "@rspack/binding";
10
+ import type { JsRuntimeGlobals } from "./binding";
11
11
  export declare function __from_binding_runtime_globals(runtimeRequirements: JsRuntimeGlobals): Set<string>;
12
12
  export declare function __to_binding_runtime_globals(runtimeRequirements: Set<string>): JsRuntimeGlobals;
13
13
  export declare const RuntimeGlobals: {
@@ -1,4 +1,4 @@
1
- import type { JsAddingRuntimeModule } from "@rspack/binding";
1
+ import type { JsAddingRuntimeModule } from "./binding";
2
2
  import type { Chunk } from "./Chunk";
3
3
  import type { ChunkGraph } from "./ChunkGraph";
4
4
  import type { Compilation } from "./Compilation";
@@ -0,0 +1,12 @@
1
+ import type { Compiler } from "./Compiler";
2
+ export declare class VirtualModulesPlugin {
3
+ #private;
4
+ constructor(modules?: Record<string, string>);
5
+ apply(compiler: Compiler): void;
6
+ writeModule(filePath: string, contents: string): void;
7
+ private getVirtualFileStore;
8
+ static __internal__take_virtual_files(compiler: Compiler): {
9
+ path: string;
10
+ content: string;
11
+ }[] | undefined;
12
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * We manually create binding.d.ts and re-export everything of the dts generated by napi to fix the cjs-esm interop
3
+ */
4
+
5
+ import * as binding from "./napi-binding";
6
+
7
+ export * from "./napi-binding"
8
+ export default binding;
@@ -1,12 +1,12 @@
1
1
  import type { IFs, Volume } from "memfs";
2
2
  export declare const fs: IFs;
3
3
  export declare const volume: Volume;
4
- declare const readFileSync: (file: import("memfs/lib/volume").TFileId, options?: import("memfs/lib/node/types/options").IReadFileOptions | string) => import("memfs/lib/encoding").TDataOut, readdirSync: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/node/types/options").IReaddirOptions | string) => import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/Dirent").Dirent[], lstat: {
5
- (path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/volume").TCallback<import("memfs/lib/Stats").Stats>): void;
6
- (path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IStatOptions, callback: import("memfs/lib/volume").TCallback<import("memfs/lib/Stats").Stats>): void;
4
+ declare const readFileSync: (file: import("memfs/lib/core").TFileId, options?: import("memfs/lib/node/types/options").IReadFileOptions | string) => import("memfs/lib/encoding").TDataOut, readdirSync: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/node/types/options").IReaddirOptions | string) => import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[], lstat: {
5
+ (path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/node/Stats").Stats>): void;
6
+ (path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IStatOptions, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/node/Stats").Stats>): void;
7
7
  }, existsSync: (path: import("memfs/lib/node/types/misc").PathLike) => boolean, readdir: {
8
- (path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/volume").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/Dirent").Dirent[]>): any;
9
- (path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IReaddirOptions | string, callback: import("memfs/lib/volume").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/Dirent").Dirent[]>): any;
10
- }, watch: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/volume").IWatchOptions | string, listener?: (eventType: string, filename: string) => void) => import("memfs/lib/volume").FSWatcher;
8
+ (path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[]>): any;
9
+ (path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IReaddirOptions | string, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[]>): any;
10
+ }, watch: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/node/volume").IWatchOptions | string, listener?: (eventType: string, filename: string) => void) => import("memfs/lib/node/volume").FSWatcher;
11
11
  export default fs;
12
12
  export { readFileSync, readdirSync, lstat, existsSync, readdir, watch };
@@ -3,7 +3,7 @@ export declare const APIPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const AssetModulesPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -1,4 +1,4 @@
1
- import { type Chunk } from "@rspack/binding";
1
+ import { type Chunk } from "../binding";
2
2
  export type Rule = string | RegExp;
3
3
  export type Rules = Rule[] | Rule;
4
4
  export type BannerFunction = (args: {
@@ -34,7 +34,7 @@ export declare const BannerPlugin: {
34
34
  name: string;
35
35
  _args: [args: BannerPluginArgument];
36
36
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
37
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
37
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
38
38
  apply(compiler: import("..").Compiler): void;
39
39
  };
40
40
  };
@@ -8,7 +8,7 @@ export declare const BundlerInfoRspackPlugin: {
8
8
  name: string;
9
9
  _args: [options: BundleInfoOptions];
10
10
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
11
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
14
14
  };
@@ -3,7 +3,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
2
2
  import type { Compilation } from "../Compilation";
3
3
  import type { Compiler } from "../Compiler";
4
4
  import type { Module } from "../Module";
@@ -3,7 +3,7 @@ export declare const CommonJsChunkFormatPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const ContextReplacementPlugin: {
3
3
  name: string;
4
4
  _args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -1,4 +1,4 @@
1
- import { type RawCopyPattern } from "@rspack/binding";
1
+ import { type RawCopyPattern } from "../binding";
2
2
  export type CopyRspackPluginOptions = {
3
3
  /** An array of objects that describe the copy operations to be performed. */
4
4
  patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
@@ -8,7 +8,7 @@ export declare const CopyRspackPlugin: {
8
8
  name: string;
9
9
  _args: [copy: CopyRspackPluginOptions];
10
10
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
11
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
14
14
  };
@@ -1,4 +1,4 @@
1
- import binding from "@rspack/binding";
1
+ import binding from "../binding";
2
2
  export interface CssChunkingPluginOptions {
3
3
  strict?: boolean;
4
4
  minSize?: number;
@@ -3,7 +3,7 @@ export declare const CssModulesPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const DataUriPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -4,7 +4,7 @@ export declare const DefinePlugin: {
4
4
  name: string;
5
5
  _args: [define: DefinePluginOptions];
6
6
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
2
2
  import type { Compiler } from "../Compiler";
3
3
  import { RspackBuiltinPlugin } from "./base";
4
4
  export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
2
2
  import type { Compiler } from "../Compiler";
3
3
  import { RspackBuiltinPlugin } from "./base";
4
4
  export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
@@ -6,7 +6,7 @@ export declare const DllEntryPlugin: {
6
6
  name: string;
7
7
  _args: [context: string, entries: string[], options: DllEntryPluginOptions];
8
8
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
9
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
10
10
  apply(compiler: import("..").Compiler): void;
11
11
  };
12
12
  };
@@ -1,11 +1,11 @@
1
- import { type RawDllReferenceAgencyPluginOptions } from "@rspack/binding";
1
+ import { type RawDllReferenceAgencyPluginOptions } from "../binding";
2
2
  export type DllReferenceAgencyPluginOptions = RawDllReferenceAgencyPluginOptions;
3
3
  export declare const DllReferenceAgencyPlugin: {
4
4
  new (options: RawDllReferenceAgencyPluginOptions): {
5
5
  name: string;
6
6
  _args: [options: RawDllReferenceAgencyPluginOptions];
7
7
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
11
11
  };
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
2
2
  import type { Compiler } from "../Compiler";
3
3
  import type { EntryDynamicNormalized } from "../config";
4
4
  import { RspackBuiltinPlugin } from "./base";
@@ -3,7 +3,7 @@ export declare const ElectronTargetPlugin: {
3
3
  name: string;
4
4
  _args: [context?: string | undefined];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -13,7 +13,7 @@ declare const EnableChunkLoadingPluginInner: {
13
13
  name: string;
14
14
  _args: [type: string];
15
15
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
- raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
16
+ raw(compiler: Compiler): import("../binding").BuiltinPlugin;
17
17
  apply(compiler: Compiler): void;
18
18
  };
19
19
  };
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
2
2
  import type { Compiler, LibraryType } from "..";
3
3
  import { RspackBuiltinPlugin } from "./base";
4
4
  export declare class EnableLibraryPlugin extends RspackBuiltinPlugin {
@@ -3,7 +3,7 @@ export declare const EnableWasmLoadingPlugin: {
3
3
  name: string;
4
4
  _args: [type: string];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export declare const EnsureChunkConditionsPlugin: {
3
3
  name: string;
4
4
  _args: [];
5
5
  affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
- raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
6
+ raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
9
9
  };