@rspack/binding 1.0.8 → 1.0.10
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 +43 -12
- package/package.json +10 -12
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
|
|
@@ -526,8 +535,8 @@ export interface JsDiagnosticLocation {
|
|
|
526
535
|
}
|
|
527
536
|
|
|
528
537
|
export interface JsEntryData {
|
|
529
|
-
dependencies: Array<
|
|
530
|
-
includeDependencies: Array<
|
|
538
|
+
dependencies: Array<JsDependency>
|
|
539
|
+
includeDependencies: Array<JsDependency>
|
|
531
540
|
options: JsEntryOptions
|
|
532
541
|
}
|
|
533
542
|
|
|
@@ -673,6 +682,7 @@ export interface JsModule {
|
|
|
673
682
|
factoryMeta?: JsFactoryMeta
|
|
674
683
|
type: string
|
|
675
684
|
layer?: string
|
|
685
|
+
useSourceMap?: boolean
|
|
676
686
|
}
|
|
677
687
|
|
|
678
688
|
export interface JsModuleDescriptor {
|
|
@@ -703,6 +713,7 @@ export interface JsPathData {
|
|
|
703
713
|
url?: string
|
|
704
714
|
id?: string
|
|
705
715
|
chunk?: JsChunkPathData
|
|
716
|
+
contentHashType?: string
|
|
706
717
|
}
|
|
707
718
|
|
|
708
719
|
export interface JsResolveArgs {
|
|
@@ -1429,6 +1440,26 @@ export interface RawJavascriptParserOptions {
|
|
|
1429
1440
|
worker?: Array<string>
|
|
1430
1441
|
overrideStrict?: string
|
|
1431
1442
|
importMeta?: boolean
|
|
1443
|
+
/**
|
|
1444
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1445
|
+
* @experimental
|
|
1446
|
+
*/
|
|
1447
|
+
requireAsExpression?: boolean
|
|
1448
|
+
/**
|
|
1449
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1450
|
+
* @experimental
|
|
1451
|
+
*/
|
|
1452
|
+
requireDynamic?: boolean
|
|
1453
|
+
/**
|
|
1454
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1455
|
+
* @experimental
|
|
1456
|
+
*/
|
|
1457
|
+
requireResolve?: boolean
|
|
1458
|
+
/**
|
|
1459
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1460
|
+
* @experimental
|
|
1461
|
+
*/
|
|
1462
|
+
importDynamic?: boolean
|
|
1432
1463
|
}
|
|
1433
1464
|
|
|
1434
1465
|
export interface RawLazyCompilationOption {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -24,22 +24,21 @@
|
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-
|
|
28
|
-
"@rspack/binding-
|
|
29
|
-
"@rspack/binding-linux-arm64-
|
|
30
|
-
"@rspack/binding-win32-ia32-msvc": "1.0.
|
|
31
|
-
"@rspack/binding-
|
|
32
|
-
"@rspack/binding-linux-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-musl": "1.0.
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-win32-arm64-msvc": "1.0.10",
|
|
28
|
+
"@rspack/binding-darwin-arm64": "1.0.10",
|
|
29
|
+
"@rspack/binding-linux-arm64-musl": "1.0.10",
|
|
30
|
+
"@rspack/binding-win32-ia32-msvc": "1.0.10",
|
|
31
|
+
"@rspack/binding-darwin-x64": "1.0.10",
|
|
32
|
+
"@rspack/binding-linux-arm64-gnu": "1.0.10",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "1.0.10",
|
|
34
|
+
"@rspack/binding-linux-x64-musl": "1.0.10",
|
|
35
|
+
"@rspack/binding-linux-x64-gnu": "1.0.10"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|
|
39
39
|
"watch:debug": "node scripts/build.js --watch",
|
|
40
40
|
"build:debug:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
|
|
41
41
|
"build:debug:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
|
|
42
|
-
"build:release:all": "run-p build:release:arm64 build:release:x64 build:release:linux && pnpm move-binding",
|
|
43
42
|
"build:release": "node scripts/build.js --release",
|
|
44
43
|
"watch:release": "node scripts/build.js --release --watch",
|
|
45
44
|
"build:release:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release",
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
"build:release:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
|
|
48
47
|
"build:release:musl": "cross-env RUST_TARGET=aarch64-unknown-linux-musl node scripts/build.js --release",
|
|
49
48
|
"build:release:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
|
|
50
|
-
"build:release-prod:all": "run-p build:release-prod:arm64 build:release-prod:x64 build:release-prod:linux && pnpm move-binding",
|
|
51
49
|
"build:release-prod": "node scripts/build.js --release-prod",
|
|
52
50
|
"watch:release-prod": "node scripts/build.js --release-prod --watch",
|
|
53
51
|
"build:release-prod:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release-prod",
|