@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.
- package/dist/Compiler.d.ts +2 -2
- package/dist/FileSystem.d.ts +16 -4
- package/dist/MultiCompiler.d.ts +3 -3
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +8 -10
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +10 -11
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +8 -10
- package/dist/config/types.d.ts +23 -1
- package/dist/config/zod.d.ts +47 -168
- package/dist/cssExtractLoader.js +1 -0
- package/dist/index.js +311 -156
- package/dist/util/fs.d.ts +36 -1
- package/package.json +2 -2
package/dist/util/fs.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ interface IDirent {
|
|
|
69
69
|
name: string | Buffer;
|
|
70
70
|
}
|
|
71
71
|
export interface OutputFileSystem {
|
|
72
|
-
writeFile: (arg0: string, arg1: string | Buffer, arg2: (arg0?: null | NodeJS.ErrnoException) => void) => void;
|
|
72
|
+
writeFile: (arg0: string | number, arg1: string | Buffer, arg2: (arg0?: null | NodeJS.ErrnoException) => void) => void;
|
|
73
73
|
mkdir: (arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException) => void) => void;
|
|
74
74
|
readdir: (arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: (string | Buffer)[] | IDirent[]) => void) => void;
|
|
75
75
|
rmdir: (arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException) => void) => void;
|
|
@@ -295,6 +295,41 @@ export type InputFileSystem = {
|
|
|
295
295
|
relative?: (from: string, to: string) => string;
|
|
296
296
|
dirname?: (path: string) => string;
|
|
297
297
|
};
|
|
298
|
+
export type IntermediateFileSystem = InputFileSystem & OutputFileSystem & IntermediateFileSystemExtras;
|
|
299
|
+
export type WriteStreamOptions = {
|
|
300
|
+
flags?: string;
|
|
301
|
+
encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "latin1" | "binary" | "base64" | "base64url" | "hex";
|
|
302
|
+
fd?: any;
|
|
303
|
+
mode?: number;
|
|
304
|
+
};
|
|
305
|
+
export type MakeDirectoryOptions = {
|
|
306
|
+
recursive?: boolean;
|
|
307
|
+
mode?: string | number;
|
|
308
|
+
};
|
|
309
|
+
export type MkdirSync = (path: PathLike, options: MakeDirectoryOptions) => undefined | string;
|
|
310
|
+
export type ReadAsyncOptions<TBuffer extends ArrayBufferView = Buffer> = {
|
|
311
|
+
offset?: number;
|
|
312
|
+
length?: number;
|
|
313
|
+
position?: null | number | bigint;
|
|
314
|
+
buffer?: TBuffer;
|
|
315
|
+
};
|
|
316
|
+
export type Read<TBuffer extends ArrayBufferView = Buffer> = (fd: number, options: ReadAsyncOptions<TBuffer>, callback: (err: null | NodeJS.ErrnoException, bytesRead: number, buffer: TBuffer) => void) => void;
|
|
317
|
+
export type WriteAsyncOptions<TBuffer extends ArrayBufferView = Buffer> = {
|
|
318
|
+
offset?: number;
|
|
319
|
+
length?: number;
|
|
320
|
+
position?: null | number | bigint;
|
|
321
|
+
buffer?: TBuffer;
|
|
322
|
+
};
|
|
323
|
+
export type Write<TBuffer extends ArrayBufferView = Buffer> = (fd: number, content: Buffer, options: WriteAsyncOptions<TBuffer>, callback: (err: null | NodeJS.ErrnoException, bytesWrite: number, buffer: TBuffer) => void) => void;
|
|
324
|
+
export type Open = (file: PathLike, flags: undefined | string | number, callback: (arg0: null | NodeJS.ErrnoException, arg1?: number) => void) => void;
|
|
325
|
+
export type IntermediateFileSystemExtras = {
|
|
326
|
+
rename: (arg0: PathLike, arg1: PathLike, arg2: (arg0: null | NodeJS.ErrnoException) => void) => void;
|
|
327
|
+
mkdirSync: MkdirSync;
|
|
328
|
+
write: Write<Buffer>;
|
|
329
|
+
open: Open;
|
|
330
|
+
read: Read<Buffer>;
|
|
331
|
+
close: (arg0: number, arg1: (arg0: null | NodeJS.ErrnoException) => void) => void;
|
|
332
|
+
};
|
|
298
333
|
export declare function rmrf(fs: OutputFileSystem, p: string, callback: (err?: Error | null) => void): void;
|
|
299
334
|
export declare const mkdirp: (fs: OutputFileSystem, p: string, callback: (error?: Error) => void) => void;
|
|
300
335
|
export interface FileSystemInfoEntry {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@module-federation/runtime-tools": "0.5.1",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
63
|
"caniuse-lite": "^1.0.30001616",
|
|
64
|
-
"@rspack/binding": "1.1.
|
|
64
|
+
"@rspack/binding": "1.1.6"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@swc/helpers": ">=0.5.1"
|