@rspack-canary/core 1.7.0-canary-7f9f7f14-20251231041831 → 1.7.0-canary-b303a917-20251231130755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BuildInfo.d.ts +4 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +3 -3
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +40 -40
- package/dist/Compiler.d.ts +23 -25
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +2 -2
- package/dist/Diagnostics.d.ts +2 -2
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +2 -2
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -3
- package/dist/Module.d.ts +6 -6
- package/dist/ModuleGraph.d.ts +3 -3
- package/dist/MultiCompiler.d.ts +8 -8
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +3 -3
- package/dist/NativeWatchFileSystem.d.ts +5 -5
- package/dist/NormalModule.d.ts +6 -6
- package/dist/NormalModuleFactory.d.ts +4 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/ResolverFactory.d.ts +3 -3
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +4 -4
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +5 -5
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +8 -10
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
- package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
- package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
- package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +88 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/index.d.ts +15 -0
- package/dist/config/adapter.d.ts +7 -7
- package/dist/config/adapterRuleUse.d.ts +16 -16
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +2 -11
- package/dist/config/devServer.d.ts +32 -32
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +9 -9
- package/dist/config/target.d.ts +7 -7
- package/dist/config/types.d.ts +74 -75
- package/dist/container/ContainerPlugin.d.ts +4 -4
- package/dist/container/ContainerReferencePlugin.d.ts +4 -4
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPlugin.d.ts +6 -8
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +0 -4
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +19 -19
- package/dist/cssExtractLoader.js +16 -16
- package/dist/exports.d.ts +74 -76
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1965 -1933
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +2 -2
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +5 -5
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +2 -2
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +3 -3
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +3 -3
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/service.d.ts +8 -8
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +3 -3
- package/dist/logging/createConsoleLogger.d.ts +4 -4
- package/dist/moduleFederationDefaultRuntime.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +3 -3
- package/dist/node/nodeConsole.d.ts +2 -2
- package/dist/rspack.d.ts +6 -15
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +5 -5
- package/dist/stats/StatsPrinter.d.ts +3 -3
- package/dist/stats/statsFactoryUtils.d.ts +5 -5
- package/dist/swc.d.ts +2 -2
- package/dist/taps/compilation.d.ts +2 -2
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +3 -3
- package/dist/trace/index.d.ts +4 -4
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/createReadonlyMap.d.ts +1 -1
- package/dist/util/fs.d.ts +14 -14
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +1 -1
- package/dist/util/index.d.ts +1 -2
- package/dist/util/source.d.ts +2 -2
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +111 -111
- package/hot/dev-server.js +64 -64
- package/hot/emitter.js +11 -11
- package/hot/lazy-compilation-node.js +41 -41
- package/hot/lazy-compilation-web.js +52 -52
- package/hot/log-apply-result.js +36 -36
- package/hot/log.js +30 -30
- package/hot/only-dev-server.js +92 -92
- package/hot/poll.js +31 -31
- package/hot/signal.js +53 -53
- package/module.d.ts +215 -215
- package/package.json +4 -4
package/dist/swc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TransformOutput } from
|
|
2
|
-
import type { JsMinifyOptions, Options as TransformOptions } from
|
|
1
|
+
import type { TransformOutput } from "@rspack/binding";
|
|
2
|
+
import type { JsMinifyOptions, Options as TransformOptions } from "../compiled/@swc/types";
|
|
3
3
|
export type { TransformOutput, TransformOptions, JsMinifyOptions };
|
|
4
4
|
export declare function minify(source: string, options?: JsMinifyOptions): Promise<TransformOutput>;
|
|
5
5
|
export declare function minifySync(source: string, options?: JsMinifyOptions): TransformOutput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import binding from
|
|
2
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import binding from "@rspack/binding";
|
|
2
|
+
import type { CreatePartialRegisters } from "./types";
|
|
3
3
|
export declare class CodeGenerationResult {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(result: binding.JsCodegenerationResult);
|
package/dist/taps/compiler.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import type { CreatePartialRegisters } from "./types";
|
|
2
2
|
export declare const createCompilerHooksRegisters: CreatePartialRegisters<`Compiler`>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import type { CreatePartialRegisters } from "./types";
|
|
2
2
|
export declare const createContextModuleFactoryHooksRegisters: CreatePartialRegisters<`ContextModuleFactory`>;
|
package/dist/taps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createHtmlPluginHooksRegisters } from
|
|
2
|
-
export { createCompilationHooksRegisters } from
|
|
3
|
-
export { createCompilerHooksRegisters } from
|
|
4
|
-
export { createContextModuleFactoryHooksRegisters } from
|
|
5
|
-
export { createJavaScriptModulesHooksRegisters } from
|
|
6
|
-
export { createNormalModuleFactoryHooksRegisters } from
|
|
1
|
+
export { createHtmlPluginHooksRegisters } from "../builtin-plugin/html-plugin/taps";
|
|
2
|
+
export { createCompilationHooksRegisters } from "./compilation";
|
|
3
|
+
export { createCompilerHooksRegisters } from "./compiler";
|
|
4
|
+
export { createContextModuleFactoryHooksRegisters } from "./contextModuleFactory";
|
|
5
|
+
export { createJavaScriptModulesHooksRegisters } from "./javascriptModules";
|
|
6
|
+
export { createNormalModuleFactoryHooksRegisters } from "./normalModuleFactory";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import type { CreatePartialRegisters } from "./types";
|
|
2
2
|
export declare const createJavaScriptModulesHooksRegisters: CreatePartialRegisters<`JavascriptModules`>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import type { CreatePartialRegisters } from "./types";
|
|
2
2
|
export declare const createNormalModuleFactoryHooksRegisters: CreatePartialRegisters<`NormalModuleFactory`>;
|
package/dist/taps/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type binding from
|
|
2
|
-
import type * as liteTapable from
|
|
3
|
-
import type { Compiler } from
|
|
1
|
+
import type binding from "@rspack/binding";
|
|
2
|
+
import type * as liteTapable from "@rspack/lite-tapable";
|
|
3
|
+
import type { Compiler } from "../Compiler";
|
|
4
4
|
type CreateHookMapRegisterTaps = <H extends liteTapable.Hook<any, any, any>>(registerKind: binding.RegisterJsTapKind, getHookMap: () => liteTapable.HookMap<H>, createTap: (queried: liteTapable.QueriedHookMap<H>) => any) => (stages: number[]) => binding.JsTap[];
|
|
5
5
|
type CreateHookRegisterTaps = <T, R, A>(registerKind: binding.RegisterJsTapKind, getHook: () => liteTapable.Hook<T, R, A>, createTap: (queried: liteTapable.QueriedHook<T, R, A>) => any) => (stages: number[]) => binding.JsTap[];
|
|
6
6
|
type RegisterTapKeys<T, L extends string> = T extends keyof binding.RegisterJsTaps ? (T extends L ? T : never) : never;
|
package/dist/trace/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface ChromeEvent {
|
|
2
2
|
name: string;
|
|
3
3
|
trackName?: string;
|
|
4
|
-
ph:
|
|
4
|
+
ph: "b" | "e" | "X" | "P";
|
|
5
5
|
processName?: string;
|
|
6
6
|
categories?: string[];
|
|
7
7
|
uuid: number;
|
|
@@ -11,14 +11,14 @@ export interface ChromeEvent {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
14
|
-
type PartialChromeEvent = MakeOptional<ChromeEvent,
|
|
14
|
+
type PartialChromeEvent = MakeOptional<ChromeEvent, "ts" | "ph">;
|
|
15
15
|
export declare class JavaScriptTracer {
|
|
16
|
-
static state:
|
|
16
|
+
static state: "uninitialized" | "on" | "off";
|
|
17
17
|
static startTime: bigint;
|
|
18
18
|
static events: ChromeEvent[];
|
|
19
19
|
static layer: string;
|
|
20
20
|
static output: string;
|
|
21
|
-
static session: import(
|
|
21
|
+
static session: import("node:inspector").Session;
|
|
22
22
|
private static counter;
|
|
23
23
|
/**
|
|
24
24
|
* only first call take effects, subsequent calls will be ignored
|
|
@@ -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 Hash from
|
|
10
|
+
import Hash from "./hash";
|
|
11
11
|
/**
|
|
12
12
|
* Creates a hash by name or function
|
|
13
13
|
* @param algorithm the algorithm name or a constructor creating a hash
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function createReadonlyMap<T>(obj: Pick<ReadonlyMap<string, T>,
|
|
1
|
+
export declare function createReadonlyMap<T>(obj: Pick<ReadonlyMap<string, T>, "get" | "keys">): ReadonlyMap<string, Readonly<T>>;
|
package/dist/util/fs.d.ts
CHANGED
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Abortable } from
|
|
11
|
-
import type { WatchOptions } from
|
|
10
|
+
import type { Abortable } from "node:events";
|
|
11
|
+
import type { WatchOptions } from "../config";
|
|
12
12
|
export interface Watcher {
|
|
13
13
|
close(): void;
|
|
14
14
|
pause(): void;
|
|
15
15
|
getAggregatedChanges?(): Set<string>;
|
|
16
16
|
getAggregatedRemovals?(): Set<string>;
|
|
17
|
-
getFileTimeInfoEntries?(): Map<string, FileSystemInfoEntry |
|
|
18
|
-
getContextTimeInfoEntries?(): Map<string, FileSystemInfoEntry |
|
|
17
|
+
getFileTimeInfoEntries?(): Map<string, FileSystemInfoEntry | "ignore">;
|
|
18
|
+
getContextTimeInfoEntries?(): Map<string, FileSystemInfoEntry | "ignore">;
|
|
19
19
|
getInfo(): WatcherInfo;
|
|
20
20
|
}
|
|
21
21
|
export interface WatcherInfo {
|
|
22
22
|
changes: Set<string>;
|
|
23
23
|
removals: Set<string>;
|
|
24
|
-
fileTimeInfoEntries: Map<string, FileSystemInfoEntry |
|
|
25
|
-
contextTimeInfoEntries: Map<string, FileSystemInfoEntry |
|
|
24
|
+
fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
|
|
25
|
+
contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
|
|
26
26
|
}
|
|
27
27
|
export type IStatsBase<T> = {
|
|
28
28
|
isFile: () => boolean;
|
|
@@ -159,8 +159,8 @@ export type ReadFileSync = {
|
|
|
159
159
|
}) | BufferEncoding | null): string | Buffer;
|
|
160
160
|
};
|
|
161
161
|
export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null;
|
|
162
|
-
export type BufferEncodingOption =
|
|
163
|
-
encoding:
|
|
162
|
+
export type BufferEncodingOption = "buffer" | {
|
|
163
|
+
encoding: "buffer";
|
|
164
164
|
};
|
|
165
165
|
export type StatOptions = {
|
|
166
166
|
bigint?: boolean;
|
|
@@ -187,10 +187,10 @@ export type Readdir = {
|
|
|
187
187
|
recursive?: boolean;
|
|
188
188
|
} | BufferEncoding | null | undefined, callback: ReaddirStringCallback): void;
|
|
189
189
|
(path: PathLike, options: {
|
|
190
|
-
encoding:
|
|
190
|
+
encoding: "buffer";
|
|
191
191
|
withFileTypes?: false;
|
|
192
192
|
recursive?: boolean;
|
|
193
|
-
} |
|
|
193
|
+
} | "buffer", callback: ReaddirBufferCallback): void;
|
|
194
194
|
(path: PathLike, callback: ReaddirStringCallback): void;
|
|
195
195
|
(path: PathLike, options: (ObjectEncodingOptions & {
|
|
196
196
|
withFileTypes: true;
|
|
@@ -208,10 +208,10 @@ export type ReaddirSync = {
|
|
|
208
208
|
recursive?: boolean;
|
|
209
209
|
} | BufferEncoding | null): string[];
|
|
210
210
|
(path: PathLike, options: {
|
|
211
|
-
encoding:
|
|
211
|
+
encoding: "buffer";
|
|
212
212
|
withFileTypes?: false;
|
|
213
213
|
recursive?: boolean;
|
|
214
|
-
} |
|
|
214
|
+
} | "buffer"): Buffer[];
|
|
215
215
|
(path: PathLike, options: (ObjectEncodingOptions & {
|
|
216
216
|
withFileTypes?: false;
|
|
217
217
|
recursive?: boolean;
|
|
@@ -322,7 +322,7 @@ export type InputFileSystem = {
|
|
|
322
322
|
export type IntermediateFileSystem = InputFileSystem & OutputFileSystem & IntermediateFileSystemExtras;
|
|
323
323
|
export type WriteStreamOptions = {
|
|
324
324
|
flags?: string;
|
|
325
|
-
encoding?:
|
|
325
|
+
encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "latin1" | "binary" | "base64" | "base64url" | "hex";
|
|
326
326
|
fd?: any;
|
|
327
327
|
mode?: number;
|
|
328
328
|
};
|
|
@@ -370,6 +370,6 @@ export interface WatchFileSystem {
|
|
|
370
370
|
}, missing: Iterable<string> & {
|
|
371
371
|
added?: Iterable<String>;
|
|
372
372
|
removed?: Iterable<String>;
|
|
373
|
-
}, startTime: number, options: WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry |
|
|
373
|
+
}, startTime: number, options: 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;
|
|
374
374
|
}
|
|
375
375
|
export {};
|
|
@@ -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
|
-
type Exports = WebAssembly.Instance[
|
|
10
|
+
type Exports = WebAssembly.Instance["exports"] & {
|
|
11
11
|
init: () => void;
|
|
12
12
|
update: (b: number) => void;
|
|
13
13
|
memory: WebAssembly.Memory;
|
|
@@ -4,7 +4,7 @@ interface ParsedResource {
|
|
|
4
4
|
query: string;
|
|
5
5
|
fragment: string;
|
|
6
6
|
}
|
|
7
|
-
type ParsedResourceWithoutFragment = Omit<ParsedResource,
|
|
7
|
+
type ParsedResourceWithoutFragment = Omit<ParsedResource, "fragment">;
|
|
8
8
|
export declare const makePathsRelative: {
|
|
9
9
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
10
10
|
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderObject } from
|
|
1
|
+
import type { LoaderObject } from "../loader-runner";
|
|
2
2
|
export declare function isNil(value: unknown): value is null | undefined;
|
|
3
3
|
export declare const toBuffer: (bufLike: string | Buffer | Uint8Array) => Buffer;
|
|
4
4
|
export declare const toObject: (input: string | Buffer | object) => object;
|
|
@@ -6,4 +6,3 @@ export declare function serializeObject(map: string | object | undefined | null)
|
|
|
6
6
|
export declare function indent(str: string, prefix: string): string;
|
|
7
7
|
export declare function stringifyLoaderObject(o: LoaderObject): string;
|
|
8
8
|
export declare const unsupported: (name: string, issue?: string) => never;
|
|
9
|
-
export declare function deprecate(message: string): void;
|
package/dist/util/source.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsSource } from
|
|
2
|
-
import { type Source } from
|
|
1
|
+
import type { JsSource } from "@rspack/binding";
|
|
2
|
+
import { type Source } from "../../compiled/webpack-sources";
|
|
3
3
|
export declare class SourceAdapter {
|
|
4
4
|
static fromBinding(source: JsSource): Source;
|
|
5
5
|
static toBinding(source: Source): JsSource;
|