@rspack/binding 1.3.3 → 1.3.5
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/binding.d.ts +27 -28
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -10,7 +10,12 @@ export type RawLazyCompilationTest = RegExp | ((module: Module) => boolean);
|
|
|
10
10
|
|
|
11
11
|
export type AssetInfo = KnownAssetInfo & Record<string, any>;
|
|
12
12
|
|
|
13
|
+
export const MODULE_IDENTIFIER_SYMBOL: unique symbol;
|
|
14
|
+
|
|
15
|
+
export const COMPILATION_HOOKS_MAP_SYMBOL: unique symbol;
|
|
16
|
+
|
|
13
17
|
export interface Module {
|
|
18
|
+
[MODULE_IDENTIFIER_SYMBOL]: string;
|
|
14
19
|
readonly type: string;
|
|
15
20
|
get context(): string | undefined;
|
|
16
21
|
get layer(): string | undefined;
|
|
@@ -29,15 +34,14 @@ interface NormalModuleConstructor {
|
|
|
29
34
|
export var NormalModule: NormalModuleConstructor;
|
|
30
35
|
|
|
31
36
|
export interface NormalModule extends Module {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
get
|
|
39
|
-
|
|
40
|
-
set matchResource(val: string | undefined)
|
|
37
|
+
readonly resource: string;
|
|
38
|
+
readonly request: string;
|
|
39
|
+
readonly userRequest: string;
|
|
40
|
+
readonly rawRequest: string;
|
|
41
|
+
readonly resourceResolveData: JsResourceData | undefined;
|
|
42
|
+
readonly loaders: ReadonlyArray<JsLoaderItem>;
|
|
43
|
+
get matchResource(): string | undefined;
|
|
44
|
+
set matchResource(val: string | undefined);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
export interface ConcatenatedModule extends Module {
|
|
@@ -47,6 +51,7 @@ export interface ContextModule extends Module {
|
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
export interface ExternalModule extends Module {
|
|
54
|
+
readonly userRequest: string;
|
|
50
55
|
}
|
|
51
56
|
/* -- banner.d.ts end -- */
|
|
52
57
|
|
|
@@ -66,7 +71,6 @@ export declare class AsyncDependenciesBlock {
|
|
|
66
71
|
export declare class ConcatenatedModule {
|
|
67
72
|
get modules(): Module[]
|
|
68
73
|
_originalSource(): JsCompatSource | undefined
|
|
69
|
-
identifier(): string
|
|
70
74
|
nameForCondition(): string | undefined
|
|
71
75
|
get blocks(): AsyncDependenciesBlock[]
|
|
72
76
|
get dependencies(): Dependency[]
|
|
@@ -77,7 +81,6 @@ export declare class ConcatenatedModule {
|
|
|
77
81
|
|
|
78
82
|
export declare class ContextModule {
|
|
79
83
|
_originalSource(): JsCompatSource | undefined
|
|
80
|
-
identifier(): string
|
|
81
84
|
nameForCondition(): string | undefined
|
|
82
85
|
get blocks(): AsyncDependenciesBlock[]
|
|
83
86
|
get dependencies(): Dependency[]
|
|
@@ -130,10 +133,7 @@ export declare class EntryOptionsDto {
|
|
|
130
133
|
export type EntryOptionsDTO = EntryOptionsDto
|
|
131
134
|
|
|
132
135
|
export declare class ExternalModule {
|
|
133
|
-
get userRequest(): string
|
|
134
|
-
set userRequest(val: string)
|
|
135
136
|
_originalSource(): JsCompatSource | undefined
|
|
136
|
-
identifier(): string
|
|
137
137
|
nameForCondition(): string | undefined
|
|
138
138
|
get blocks(): AsyncDependenciesBlock[]
|
|
139
139
|
get dependencies(): Dependency[]
|
|
@@ -319,22 +319,15 @@ export declare class JsModuleGraph {
|
|
|
319
319
|
getUsedExports(module: Module, runtime: string | string[]): boolean | Array<string> | null
|
|
320
320
|
getIssuer(module: Module): Module | null
|
|
321
321
|
getExportsInfo(module: Module): JsExportsInfo
|
|
322
|
-
getConnection(dependency: Dependency):
|
|
323
|
-
getOutgoingConnections(module: Module):
|
|
324
|
-
getOutgoingConnectionsInOrder(module: Module):
|
|
325
|
-
getIncomingConnections(module: Module):
|
|
322
|
+
getConnection(dependency: Dependency): ModuleGraphConnection | null
|
|
323
|
+
getOutgoingConnections(module: Module): ModuleGraphConnection[]
|
|
324
|
+
getOutgoingConnectionsInOrder(module: Module): ModuleGraphConnection[]
|
|
325
|
+
getIncomingConnections(module: Module): ModuleGraphConnection[]
|
|
326
326
|
getParentModule(dependency: Dependency): Module | null
|
|
327
327
|
getParentBlockIndex(dependency: Dependency): number
|
|
328
328
|
isAsync(module: Module): boolean
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
export declare class JsModuleGraphConnection {
|
|
332
|
-
get dependency(): Dependency
|
|
333
|
-
get module(): Module | null
|
|
334
|
-
get resolvedModule(): Module | null
|
|
335
|
-
get originModule(): Module | null
|
|
336
|
-
}
|
|
337
|
-
|
|
338
331
|
export declare class JsResolver {
|
|
339
332
|
resolveSync(path: string, request: string): JsResourceData | false
|
|
340
333
|
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
@@ -354,7 +347,6 @@ export declare class JsStats {
|
|
|
354
347
|
|
|
355
348
|
export declare class Module {
|
|
356
349
|
_originalSource(): JsCompatSource | undefined
|
|
357
|
-
identifier(): string
|
|
358
350
|
nameForCondition(): string | undefined
|
|
359
351
|
get blocks(): AsyncDependenciesBlock[]
|
|
360
352
|
get dependencies(): Dependency[]
|
|
@@ -363,6 +355,13 @@ export declare class Module {
|
|
|
363
355
|
_emitFile(filename: string, source: JsCompatSource, jsAssetInfo?: AssetInfo | undefined | null): void
|
|
364
356
|
}
|
|
365
357
|
|
|
358
|
+
export declare class ModuleGraphConnection {
|
|
359
|
+
get dependency(): Dependency
|
|
360
|
+
get module(): Module | null
|
|
361
|
+
get resolvedModule(): Module | null
|
|
362
|
+
get originModule(): Module | null
|
|
363
|
+
}
|
|
364
|
+
|
|
366
365
|
|
|
367
366
|
export declare class RawExternalItemFnCtx {
|
|
368
367
|
data(): RawExternalItemFnCtxData
|
|
@@ -2223,7 +2222,7 @@ export interface RawResolveOptions {
|
|
|
2223
2222
|
importsFields?: Array<string>
|
|
2224
2223
|
extensionAlias?: Record<string, Array<string>>
|
|
2225
2224
|
aliasFields?: Array<string>
|
|
2226
|
-
restrictions?:
|
|
2225
|
+
restrictions?: (string | RegExp)[]
|
|
2227
2226
|
roots?: Array<string>
|
|
2228
2227
|
pnp?: boolean
|
|
2229
2228
|
}
|
|
@@ -2248,7 +2247,7 @@ export interface RawResolveOptionsWithDependencyType {
|
|
|
2248
2247
|
importsFields?: Array<string>
|
|
2249
2248
|
extensionAlias?: Record<string, Array<string>>
|
|
2250
2249
|
aliasFields?: Array<string>
|
|
2251
|
-
restrictions?:
|
|
2250
|
+
restrictions?: (string | RegExp)[]
|
|
2252
2251
|
roots?: Array<string>
|
|
2253
2252
|
dependencyCategory?: string
|
|
2254
2253
|
resolveToContext?: boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@rspack/binding-
|
|
52
|
-
"@rspack/binding-
|
|
53
|
-
"@rspack/binding-
|
|
54
|
-
"@rspack/binding-
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-linux-x64-gnu": "1.3.
|
|
59
|
-
"@rspack/binding-
|
|
51
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.5",
|
|
52
|
+
"@rspack/binding-linux-arm64-musl": "1.3.5",
|
|
53
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.5",
|
|
54
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.5",
|
|
55
|
+
"@rspack/binding-darwin-arm64": "1.3.5",
|
|
56
|
+
"@rspack/binding-win32-x64-msvc": "1.3.5",
|
|
57
|
+
"@rspack/binding-darwin-x64": "1.3.5",
|
|
58
|
+
"@rspack/binding-linux-x64-gnu": "1.3.5",
|
|
59
|
+
"@rspack/binding-linux-x64-musl": "1.3.5"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build:dev": "node scripts/build.js",
|