@rspack/binding 1.1.1 → 1.1.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/binding.d.ts +42 -25
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export declare class ExternalObject<T> {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
export declare class EntryDataDto {
|
|
23
|
-
get dependencies():
|
|
24
|
-
get includeDependencies():
|
|
23
|
+
get dependencies(): JsDependency[]
|
|
24
|
+
get includeDependencies(): JsDependency[]
|
|
25
25
|
get options(): EntryOptionsDto
|
|
26
26
|
}
|
|
27
27
|
export type EntryDataDTO = EntryDataDto
|
|
@@ -108,7 +108,7 @@ export declare class JsContextModuleFactoryAfterResolveData {
|
|
|
108
108
|
set regExp(rawRegExp: RegExp | undefined)
|
|
109
109
|
get recursive(): boolean
|
|
110
110
|
set recursive(recursive: boolean)
|
|
111
|
-
get dependencies():
|
|
111
|
+
get dependencies(): JsDependency[]
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export declare class JsContextModuleFactoryBeforeResolveData {
|
|
@@ -138,8 +138,8 @@ export declare class JsDependencies {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
export declare class JsDependenciesBlock {
|
|
141
|
-
get dependencies():
|
|
142
|
-
get blocks():
|
|
141
|
+
get dependencies(): JsDependency[]
|
|
142
|
+
get blocks(): JsDependenciesBlock[]
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export declare class JsDependency {
|
|
@@ -147,13 +147,6 @@ export declare class JsDependency {
|
|
|
147
147
|
get category(): string
|
|
148
148
|
get request(): string | undefined
|
|
149
149
|
get critical(): boolean
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export declare class JsDependencyMut {
|
|
153
|
-
get type(): string
|
|
154
|
-
get category(): string
|
|
155
|
-
get request(): string | undefined
|
|
156
|
-
get critical(): boolean
|
|
157
150
|
set critical(val: boolean)
|
|
158
151
|
}
|
|
159
152
|
|
|
@@ -181,8 +174,8 @@ export declare class JsModule {
|
|
|
181
174
|
get factoryMeta(): JsFactoryMeta | undefined
|
|
182
175
|
get type(): string
|
|
183
176
|
get layer(): string | undefined
|
|
184
|
-
get blocks():
|
|
185
|
-
get dependencies():
|
|
177
|
+
get blocks(): JsDependenciesBlock[]
|
|
178
|
+
get dependencies(): JsDependency[]
|
|
186
179
|
size(ty?: string | undefined | null): number
|
|
187
180
|
get modules(): JsModule[] | undefined
|
|
188
181
|
get useSourceMap(): boolean
|
|
@@ -518,13 +511,6 @@ export interface JsChunkGroupOrigin {
|
|
|
518
511
|
request?: string
|
|
519
512
|
}
|
|
520
513
|
|
|
521
|
-
export interface JsChunkPathData {
|
|
522
|
-
id?: string
|
|
523
|
-
name?: string
|
|
524
|
-
hash?: string
|
|
525
|
-
contentHash?: string | Record<string, string>
|
|
526
|
-
}
|
|
527
|
-
|
|
528
514
|
export interface JsCodegenerationResult {
|
|
529
515
|
sources: Record<string, string>
|
|
530
516
|
}
|
|
@@ -732,8 +718,13 @@ export interface JsPathData {
|
|
|
732
718
|
runtime?: string
|
|
733
719
|
url?: string
|
|
734
720
|
id?: string
|
|
735
|
-
chunk?:
|
|
736
|
-
|
|
721
|
+
chunk?: JsPathDataChunkLike
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface JsPathDataChunkLike {
|
|
725
|
+
name?: string
|
|
726
|
+
hash?: string
|
|
727
|
+
id?: string
|
|
737
728
|
}
|
|
738
729
|
|
|
739
730
|
export interface JsResolveArgs {
|
|
@@ -1345,11 +1336,28 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
1345
1336
|
sourceUrlComment?: string
|
|
1346
1337
|
}
|
|
1347
1338
|
|
|
1339
|
+
export interface RawExperimentCacheOptionsCommon {
|
|
1340
|
+
type: "disable"|"memory"
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
export interface RawExperimentCacheOptionsPersistent {
|
|
1344
|
+
type: "persistent"
|
|
1345
|
+
snapshot: RawExperimentSnapshotOptions
|
|
1346
|
+
storage: Array<RawStorageOptions>
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1348
1349
|
export interface RawExperiments {
|
|
1349
1350
|
layers: boolean
|
|
1350
1351
|
topLevelAwait: boolean
|
|
1351
1352
|
incremental?: RawIncremental
|
|
1352
1353
|
rspackFuture: RawRspackFuture
|
|
1354
|
+
cache: RawExperimentCacheOptionsPersistent | RawExperimentCacheOptionsCommon
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
export interface RawExperimentSnapshotOptions {
|
|
1358
|
+
immutablePaths: Array<string|RegExp>
|
|
1359
|
+
unmanagedPaths: Array<string|RegExp>
|
|
1360
|
+
managedPaths: Array<string|RegExp>
|
|
1353
1361
|
}
|
|
1354
1362
|
|
|
1355
1363
|
export interface RawExposeOptions {
|
|
@@ -1463,14 +1471,17 @@ export interface RawIgnorePluginOptions {
|
|
|
1463
1471
|
|
|
1464
1472
|
export interface RawIncremental {
|
|
1465
1473
|
make: boolean
|
|
1466
|
-
emitAssets: boolean
|
|
1467
1474
|
inferAsyncModules: boolean
|
|
1468
1475
|
providedExports: boolean
|
|
1469
1476
|
dependenciesDiagnostics: boolean
|
|
1477
|
+
buildChunkGraph: boolean
|
|
1470
1478
|
modulesHashes: boolean
|
|
1471
1479
|
modulesCodegen: boolean
|
|
1472
1480
|
modulesRuntimeRequirements: boolean
|
|
1473
|
-
|
|
1481
|
+
chunksRuntimeRequirements: boolean
|
|
1482
|
+
chunksHashes: boolean
|
|
1483
|
+
chunksRender: boolean
|
|
1484
|
+
emitAssets: boolean
|
|
1474
1485
|
}
|
|
1475
1486
|
|
|
1476
1487
|
export interface RawInfo {
|
|
@@ -1557,6 +1568,7 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
1557
1568
|
include?: number
|
|
1558
1569
|
exclude?: number
|
|
1559
1570
|
draft?: RawDraft
|
|
1571
|
+
drafts?: RawDraft
|
|
1560
1572
|
nonStandard?: RawNonStandard
|
|
1561
1573
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
1562
1574
|
unusedSymbols: Array<string>
|
|
@@ -1945,6 +1957,11 @@ export interface RawStatsOptions {
|
|
|
1945
1957
|
colors: boolean
|
|
1946
1958
|
}
|
|
1947
1959
|
|
|
1960
|
+
export interface RawStorageOptions {
|
|
1961
|
+
type: "filesystem"
|
|
1962
|
+
directory: string
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1948
1965
|
export interface RawSwcJsMinimizerOptions {
|
|
1949
1966
|
compress: any
|
|
1950
1967
|
mangle: any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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.1.
|
|
28
|
-
"@rspack/binding-
|
|
29
|
-
"@rspack/binding-
|
|
30
|
-
"@rspack/binding-linux-arm64-musl": "1.1.
|
|
31
|
-
"@rspack/binding-win32-ia32-msvc": "1.1.
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.1.2",
|
|
28
|
+
"@rspack/binding-linux-arm64-gnu": "1.1.2",
|
|
29
|
+
"@rspack/binding-win32-arm64-msvc": "1.1.2",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.1.2",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.1.2",
|
|
32
|
+
"@rspack/binding-win32-x64-msvc": "1.1.2",
|
|
33
|
+
"@rspack/binding-linux-x64-gnu": "1.1.2",
|
|
34
|
+
"@rspack/binding-linux-x64-musl": "1.1.2",
|
|
35
|
+
"@rspack/binding-darwin-x64": "1.1.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|