@rspack/binding 0.2.5 → 0.2.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/binding.d.ts +17 -1
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -133,6 +133,9 @@ export interface JsAssetInfo {
|
|
|
133
133
|
/**
|
|
134
134
|
* the value(s) of the full hash used for this asset
|
|
135
135
|
* the value(s) of the chunk hash used for this asset
|
|
136
|
+
*/
|
|
137
|
+
chunkHash: Array<string>
|
|
138
|
+
/**
|
|
136
139
|
* the value(s) of the module hash used for this asset
|
|
137
140
|
* the value(s) of the content hash used for this asset
|
|
138
141
|
*/
|
|
@@ -597,6 +600,13 @@ export interface RawFallbackCacheGroupOptions {
|
|
|
597
600
|
maxInitialSize?: number
|
|
598
601
|
}
|
|
599
602
|
|
|
603
|
+
export interface RawFuncUseCtx {
|
|
604
|
+
resource?: string
|
|
605
|
+
realResource?: string
|
|
606
|
+
resourceQuery?: string
|
|
607
|
+
issuer?: string
|
|
608
|
+
}
|
|
609
|
+
|
|
600
610
|
export interface RawGeneratorOptions {
|
|
601
611
|
type: "asset" | "asset/inline" | "asset/resource" | "unknown"
|
|
602
612
|
asset?: RawAssetGeneratorOptions
|
|
@@ -684,7 +694,7 @@ export interface RawModuleRule {
|
|
|
684
694
|
resourceFragment?: RawRuleSetCondition
|
|
685
695
|
descriptionData?: Record<string, RawRuleSetCondition>
|
|
686
696
|
sideEffects?: boolean
|
|
687
|
-
use?:
|
|
697
|
+
use?: RawModuleRuleUses
|
|
688
698
|
type?: string
|
|
689
699
|
parser?: RawParserOptions
|
|
690
700
|
generator?: RawGeneratorOptions
|
|
@@ -716,6 +726,12 @@ export interface RawModuleRuleUse {
|
|
|
716
726
|
options?: string
|
|
717
727
|
}
|
|
718
728
|
|
|
729
|
+
export interface RawModuleRuleUses {
|
|
730
|
+
type: "array" | "function"
|
|
731
|
+
arrayUse?: Array<RawModuleRuleUse>
|
|
732
|
+
funcUse?: (...args: any[]) => any
|
|
733
|
+
}
|
|
734
|
+
|
|
719
735
|
export interface RawNodeOption {
|
|
720
736
|
dirname: string
|
|
721
737
|
filename: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"binaryName": "rspack"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@rspack/binding-darwin-arm64": "0.2.
|
|
26
|
-
"@rspack/binding-win32-arm64-msvc": "0.2.
|
|
27
|
-
"@rspack/binding-linux-arm64-gnu": "0.2.
|
|
28
|
-
"@rspack/binding-linux-arm64-musl": "0.2.
|
|
29
|
-
"@rspack/binding-win32-ia32-msvc": "0.2.
|
|
30
|
-
"@rspack/binding-darwin-x64": "0.2.
|
|
31
|
-
"@rspack/binding-win32-x64-msvc": "0.2.
|
|
32
|
-
"@rspack/binding-linux-x64-gnu": "0.2.
|
|
33
|
-
"@rspack/binding-linux-x64-musl": "0.2.
|
|
25
|
+
"@rspack/binding-darwin-arm64": "0.2.6",
|
|
26
|
+
"@rspack/binding-win32-arm64-msvc": "0.2.6",
|
|
27
|
+
"@rspack/binding-linux-arm64-gnu": "0.2.6",
|
|
28
|
+
"@rspack/binding-linux-arm64-musl": "0.2.6",
|
|
29
|
+
"@rspack/binding-win32-ia32-msvc": "0.2.6",
|
|
30
|
+
"@rspack/binding-darwin-x64": "0.2.6",
|
|
31
|
+
"@rspack/binding-win32-x64-msvc": "0.2.6",
|
|
32
|
+
"@rspack/binding-linux-x64-gnu": "0.2.6",
|
|
33
|
+
"@rspack/binding-linux-x64-musl": "0.2.6"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build:debug": "node scripts/build.js",
|