@rspack-debug/browser 2.0.0 → 2.0.2
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/Compilation.d.ts +2 -2
- package/dist/browser/fs.d.ts +1 -7
- package/dist/browser/index.d.ts +1 -1
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/rsc/index.d.ts +4 -4
- package/dist/index.js +445 -429
- package/dist/napi-binding.d.ts +20 -12
- package/dist/stats/statsFactoryUtils.d.ts +3 -3
- package/package.json +2 -3
package/dist/Compilation.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface Asset {
|
|
|
45
45
|
info: AssetInfo;
|
|
46
46
|
}
|
|
47
47
|
export type ChunkPathData = {
|
|
48
|
-
id?: string;
|
|
48
|
+
id?: string | number;
|
|
49
49
|
name?: string;
|
|
50
50
|
hash?: string;
|
|
51
51
|
contentHash?: Record<string, string>;
|
|
@@ -56,7 +56,7 @@ export type PathData = {
|
|
|
56
56
|
contentHash?: string;
|
|
57
57
|
runtime?: string;
|
|
58
58
|
url?: string;
|
|
59
|
-
id?: string;
|
|
59
|
+
id?: string | number;
|
|
60
60
|
chunk?: Chunk | ChunkPathData;
|
|
61
61
|
contentHashType?: string;
|
|
62
62
|
};
|
package/dist/browser/fs.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ import type { IFs, memfs as Memfs, Volume } from 'memfs';
|
|
|
2
2
|
export declare const fs: IFs;
|
|
3
3
|
export declare const volume: Volume;
|
|
4
4
|
export declare const memfs: typeof Memfs;
|
|
5
|
-
declare const readFileSync:
|
|
6
|
-
(path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/node/Stats").Stats>): void;
|
|
7
|
-
(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;
|
|
8
|
-
}, existsSync: (path: import("memfs/lib/node/types/misc").PathLike) => boolean, readdir: {
|
|
9
|
-
(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;
|
|
10
|
-
(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;
|
|
11
|
-
}, 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;
|
|
5
|
+
declare const readFileSync: typeof import("fs").readFileSync, readdirSync: typeof import("fs").readdirSync, lstat: typeof import("fs").lstat, existsSync: typeof import("fs").existsSync, readdir: typeof import("fs").readdir, watch: typeof import("fs").watch;
|
|
12
6
|
export default fs;
|
|
13
7
|
export { existsSync, lstat, readdir, readdirSync, readFileSync, watch };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { BrowserRequirePlugin } from './BrowserRequirePlugin';
|
|
|
4
4
|
export declare const builtinMemFs: {
|
|
5
5
|
fs: import("memfs").IFs;
|
|
6
6
|
volume: import("memfs").Volume;
|
|
7
|
-
memfs: (json?: import("memfs").NestedDirectoryJSON,
|
|
7
|
+
memfs: (json?: import("memfs").NestedDirectoryJSON, cwdOrOpts?: string | import("memfs").MemfsOptions) => {
|
|
8
8
|
fs: import("memfs").IFs;
|
|
9
9
|
vol: import("memfs").Volume;
|
|
10
10
|
};
|
|
@@ -29,7 +29,7 @@ export interface RscManifestPerEntry {
|
|
|
29
29
|
export type RscManifest = Record<string, RscManifestPerEntry>;
|
|
30
30
|
export type RscServerPluginOptions = {
|
|
31
31
|
coordinator: Coordinator;
|
|
32
|
-
onServerComponentChanges?: () => Promise<void>;
|
|
32
|
+
onServerComponentChanges?: () => void | Promise<void>;
|
|
33
33
|
onManifest?: (manifest: RscManifest) => void | Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
export declare class RscServerPlugin extends RspackBuiltinPlugin {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { RscClientPlugin
|
|
2
|
-
import { RscServerPlugin } from './RscServerPlugin';
|
|
1
|
+
import { RscClientPlugin } from './RscClientPlugin';
|
|
2
|
+
import { RscServerPlugin, type RscServerPluginOptions } from './RscServerPlugin';
|
|
3
3
|
declare class ServerPlugin extends RscServerPlugin {
|
|
4
|
-
constructor(options?: Omit<
|
|
4
|
+
constructor(options?: Omit<RscServerPluginOptions, 'coordinator'>);
|
|
5
5
|
}
|
|
6
6
|
declare class ClientPlugin extends RscClientPlugin {
|
|
7
7
|
}
|
|
8
8
|
export declare const rsc: {
|
|
9
9
|
createPlugins: () => {
|
|
10
|
-
ServerPlugin: new (options?: Omit<
|
|
10
|
+
ServerPlugin: new (options?: Omit<RscServerPluginOptions, "coordinator">) => ServerPlugin;
|
|
11
11
|
ClientPlugin: new () => ClientPlugin;
|
|
12
12
|
};
|
|
13
13
|
Layers: {
|