@rspack/binding 1.0.9 → 1.0.11
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 +26 -12
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class ExternalObject<T> {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
export class DependenciesBlockDto {
|
|
23
|
-
get dependencies(): Array<
|
|
23
|
+
get dependencies(): Array<JsDependency>
|
|
24
24
|
get blocks(): Array<DependenciesBlockDto>
|
|
25
25
|
}
|
|
26
26
|
export type DependenciesBlockDTO = DependenciesBlockDto
|
|
@@ -41,16 +41,9 @@ export class DependenciesDto {
|
|
|
41
41
|
}
|
|
42
42
|
export type DependenciesDTO = DependenciesDto
|
|
43
43
|
|
|
44
|
-
export class DependencyDto {
|
|
45
|
-
get type(): string
|
|
46
|
-
get category(): string
|
|
47
|
-
get request(): string | undefined
|
|
48
|
-
}
|
|
49
|
-
export type DependencyDTO = DependencyDto
|
|
50
|
-
|
|
51
44
|
export class EntryDataDto {
|
|
52
|
-
get dependencies(): Array<
|
|
53
|
-
get includeDependencies(): Array<
|
|
45
|
+
get dependencies(): Array<JsDependency>
|
|
46
|
+
get includeDependencies(): Array<JsDependency>
|
|
54
47
|
get options(): EntryOptionsDto
|
|
55
48
|
}
|
|
56
49
|
export type EntryDataDTO = EntryDataDto
|
|
@@ -132,6 +125,7 @@ export class JsContextModuleFactoryAfterResolveData {
|
|
|
132
125
|
set regExp(rawRegExp: RawRegex | undefined)
|
|
133
126
|
get recursive(): boolean
|
|
134
127
|
set recursive(recursive: boolean)
|
|
128
|
+
get dependencies(): Array<JsDependencyMut>
|
|
135
129
|
}
|
|
136
130
|
|
|
137
131
|
export class JsContextModuleFactoryBeforeResolveData {
|
|
@@ -145,6 +139,21 @@ export class JsContextModuleFactoryBeforeResolveData {
|
|
|
145
139
|
set recursive(recursive: boolean)
|
|
146
140
|
}
|
|
147
141
|
|
|
142
|
+
export class JsDependency {
|
|
143
|
+
get type(): string
|
|
144
|
+
get category(): string
|
|
145
|
+
get request(): string | undefined
|
|
146
|
+
get critical(): boolean
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export class JsDependencyMut {
|
|
150
|
+
get type(): string
|
|
151
|
+
get category(): string
|
|
152
|
+
get request(): string | undefined
|
|
153
|
+
get critical(): boolean
|
|
154
|
+
set critical(val: boolean)
|
|
155
|
+
}
|
|
156
|
+
|
|
148
157
|
export class JsEntries {
|
|
149
158
|
clear(): void
|
|
150
159
|
get size(): number
|
|
@@ -388,6 +397,8 @@ export interface JsAssetInfo {
|
|
|
388
397
|
*/
|
|
389
398
|
contenthash: Array<string>
|
|
390
399
|
sourceFilename?: string
|
|
400
|
+
/** when asset was created from a source file (potentially transformed), it should be flagged as copied */
|
|
401
|
+
copied?: boolean
|
|
391
402
|
/**
|
|
392
403
|
* size in bytes, only set after asset has been emitted
|
|
393
404
|
* when asset is only used for development and doesn't count towards user-facing assets
|
|
@@ -526,8 +537,8 @@ export interface JsDiagnosticLocation {
|
|
|
526
537
|
}
|
|
527
538
|
|
|
528
539
|
export interface JsEntryData {
|
|
529
|
-
dependencies: Array<
|
|
530
|
-
includeDependencies: Array<
|
|
540
|
+
dependencies: Array<JsDependency>
|
|
541
|
+
includeDependencies: Array<JsDependency>
|
|
531
542
|
options: JsEntryOptions
|
|
532
543
|
}
|
|
533
544
|
|
|
@@ -673,6 +684,7 @@ export interface JsModule {
|
|
|
673
684
|
factoryMeta?: JsFactoryMeta
|
|
674
685
|
type: string
|
|
675
686
|
layer?: string
|
|
687
|
+
useSourceMap?: boolean
|
|
676
688
|
}
|
|
677
689
|
|
|
678
690
|
export interface JsModuleDescriptor {
|
|
@@ -703,6 +715,7 @@ export interface JsPathData {
|
|
|
703
715
|
url?: string
|
|
704
716
|
id?: string
|
|
705
717
|
chunk?: JsChunkPathData
|
|
718
|
+
contentHashType?: string
|
|
706
719
|
}
|
|
707
720
|
|
|
708
721
|
export interface JsResolveArgs {
|
|
@@ -791,6 +804,7 @@ export interface JsStatsAssetInfo {
|
|
|
791
804
|
development?: boolean
|
|
792
805
|
hotModuleReplacement?: boolean
|
|
793
806
|
sourceFilename?: string
|
|
807
|
+
copied?: boolean
|
|
794
808
|
immutable?: boolean
|
|
795
809
|
javascriptModule?: boolean
|
|
796
810
|
chunkhash: Array<string>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-darwin-arm64": "1.0.
|
|
28
|
-
"@rspack/binding-linux-arm64-gnu": "1.0.
|
|
29
|
-
"@rspack/binding-win32-
|
|
30
|
-
"@rspack/binding-
|
|
31
|
-
"@rspack/binding-
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-musl": "1.0.
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.0.11",
|
|
28
|
+
"@rspack/binding-linux-arm64-gnu": "1.0.11",
|
|
29
|
+
"@rspack/binding-win32-arm64-msvc": "1.0.11",
|
|
30
|
+
"@rspack/binding-win32-ia32-msvc": "1.0.11",
|
|
31
|
+
"@rspack/binding-darwin-x64": "1.0.11",
|
|
32
|
+
"@rspack/binding-linux-arm64-musl": "1.0.11",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "1.0.11",
|
|
34
|
+
"@rspack/binding-linux-x64-musl": "1.0.11",
|
|
35
|
+
"@rspack/binding-linux-x64-gnu": "1.0.11"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|