@rspack/binding 1.1.1 → 1.1.3
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 +52 -26
- 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
|
|
@@ -95,6 +95,7 @@ export declare class JsCompilation {
|
|
|
95
95
|
importModule(request: string, layer: string | undefined | null, publicPath: JsFilename | undefined | null, baseUri: string | undefined | null, originalModule: string | undefined | null, originalModuleContext: string | undefined | null, callback: any): void
|
|
96
96
|
get entries(): JsEntries
|
|
97
97
|
addRuntimeModule(chunkUkey: number, runtimeModule: JsAddingRuntimeModule): void
|
|
98
|
+
get moduleGraph(): JsModuleGraph
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
export declare class JsContextModuleFactoryAfterResolveData {
|
|
@@ -108,7 +109,7 @@ export declare class JsContextModuleFactoryAfterResolveData {
|
|
|
108
109
|
set regExp(rawRegExp: RegExp | undefined)
|
|
109
110
|
get recursive(): boolean
|
|
110
111
|
set recursive(recursive: boolean)
|
|
111
|
-
get dependencies():
|
|
112
|
+
get dependencies(): JsDependency[]
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
export declare class JsContextModuleFactoryBeforeResolveData {
|
|
@@ -138,8 +139,8 @@ export declare class JsDependencies {
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
export declare class JsDependenciesBlock {
|
|
141
|
-
get dependencies():
|
|
142
|
-
get blocks():
|
|
142
|
+
get dependencies(): JsDependency[]
|
|
143
|
+
get blocks(): JsDependenciesBlock[]
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
export declare class JsDependency {
|
|
@@ -147,13 +148,6 @@ export declare class JsDependency {
|
|
|
147
148
|
get category(): string
|
|
148
149
|
get request(): string | undefined
|
|
149
150
|
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
151
|
set critical(val: boolean)
|
|
158
152
|
}
|
|
159
153
|
|
|
@@ -181,13 +175,19 @@ export declare class JsModule {
|
|
|
181
175
|
get factoryMeta(): JsFactoryMeta | undefined
|
|
182
176
|
get type(): string
|
|
183
177
|
get layer(): string | undefined
|
|
184
|
-
get blocks():
|
|
185
|
-
get dependencies():
|
|
178
|
+
get blocks(): JsDependenciesBlock[]
|
|
179
|
+
get dependencies(): JsDependency[]
|
|
186
180
|
size(ty?: string | undefined | null): number
|
|
187
181
|
get modules(): JsModule[] | undefined
|
|
188
182
|
get useSourceMap(): boolean
|
|
189
183
|
}
|
|
190
184
|
|
|
185
|
+
export declare class JsModuleGraph {
|
|
186
|
+
getModule(jsDependency: JsDependency): JsModule | null
|
|
187
|
+
getUsedExports(jsModule: JsModule, jsRuntime: string | Array<string>): boolean | Array<string> | null
|
|
188
|
+
getIssuer(module: JsModule): JsModule | null
|
|
189
|
+
}
|
|
190
|
+
|
|
191
191
|
export declare class JsResolver {
|
|
192
192
|
resolveSync(path: string, request: string): string | false
|
|
193
193
|
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
@@ -518,13 +518,6 @@ export interface JsChunkGroupOrigin {
|
|
|
518
518
|
request?: string
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
export interface JsChunkPathData {
|
|
522
|
-
id?: string
|
|
523
|
-
name?: string
|
|
524
|
-
hash?: string
|
|
525
|
-
contentHash?: string | Record<string, string>
|
|
526
|
-
}
|
|
527
|
-
|
|
528
521
|
export interface JsCodegenerationResult {
|
|
529
522
|
sources: Record<string, string>
|
|
530
523
|
}
|
|
@@ -732,8 +725,13 @@ export interface JsPathData {
|
|
|
732
725
|
runtime?: string
|
|
733
726
|
url?: string
|
|
734
727
|
id?: string
|
|
735
|
-
chunk?:
|
|
736
|
-
|
|
728
|
+
chunk?: JsPathDataChunkLike
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export interface JsPathDataChunkLike {
|
|
732
|
+
name?: string
|
|
733
|
+
hash?: string
|
|
734
|
+
id?: string
|
|
737
735
|
}
|
|
738
736
|
|
|
739
737
|
export interface JsResolveArgs {
|
|
@@ -1345,11 +1343,28 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
1345
1343
|
sourceUrlComment?: string
|
|
1346
1344
|
}
|
|
1347
1345
|
|
|
1346
|
+
export interface RawExperimentCacheOptionsCommon {
|
|
1347
|
+
type: "disable"|"memory"
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
export interface RawExperimentCacheOptionsPersistent {
|
|
1351
|
+
type: "persistent"
|
|
1352
|
+
snapshot: RawExperimentSnapshotOptions
|
|
1353
|
+
storage: Array<RawStorageOptions>
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1348
1356
|
export interface RawExperiments {
|
|
1349
1357
|
layers: boolean
|
|
1350
1358
|
topLevelAwait: boolean
|
|
1351
1359
|
incremental?: RawIncremental
|
|
1352
1360
|
rspackFuture: RawRspackFuture
|
|
1361
|
+
cache: RawExperimentCacheOptionsPersistent | RawExperimentCacheOptionsCommon
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
export interface RawExperimentSnapshotOptions {
|
|
1365
|
+
immutablePaths: Array<string|RegExp>
|
|
1366
|
+
unmanagedPaths: Array<string|RegExp>
|
|
1367
|
+
managedPaths: Array<string|RegExp>
|
|
1353
1368
|
}
|
|
1354
1369
|
|
|
1355
1370
|
export interface RawExposeOptions {
|
|
@@ -1463,14 +1478,17 @@ export interface RawIgnorePluginOptions {
|
|
|
1463
1478
|
|
|
1464
1479
|
export interface RawIncremental {
|
|
1465
1480
|
make: boolean
|
|
1466
|
-
emitAssets: boolean
|
|
1467
1481
|
inferAsyncModules: boolean
|
|
1468
1482
|
providedExports: boolean
|
|
1469
1483
|
dependenciesDiagnostics: boolean
|
|
1484
|
+
buildChunkGraph: boolean
|
|
1470
1485
|
modulesHashes: boolean
|
|
1471
1486
|
modulesCodegen: boolean
|
|
1472
1487
|
modulesRuntimeRequirements: boolean
|
|
1473
|
-
|
|
1488
|
+
chunksRuntimeRequirements: boolean
|
|
1489
|
+
chunksHashes: boolean
|
|
1490
|
+
chunksRender: boolean
|
|
1491
|
+
emitAssets: boolean
|
|
1474
1492
|
}
|
|
1475
1493
|
|
|
1476
1494
|
export interface RawInfo {
|
|
@@ -1557,6 +1575,7 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
1557
1575
|
include?: number
|
|
1558
1576
|
exclude?: number
|
|
1559
1577
|
draft?: RawDraft
|
|
1578
|
+
drafts?: RawDraft
|
|
1560
1579
|
nonStandard?: RawNonStandard
|
|
1561
1580
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
1562
1581
|
unusedSymbols: Array<string>
|
|
@@ -1913,7 +1932,9 @@ export interface RawSourceMapDevToolPluginOptions {
|
|
|
1913
1932
|
noSources?: boolean
|
|
1914
1933
|
publicPath?: string
|
|
1915
1934
|
sourceRoot?: string
|
|
1916
|
-
test?: (
|
|
1935
|
+
test?: string | RegExp | (string | RegExp)[]
|
|
1936
|
+
include?: string | RegExp | (string | RegExp)[]
|
|
1937
|
+
exclude?: string | RegExp | (string | RegExp)[]
|
|
1917
1938
|
}
|
|
1918
1939
|
|
|
1919
1940
|
export interface RawSplitChunkSizes {
|
|
@@ -1945,6 +1966,11 @@ export interface RawStatsOptions {
|
|
|
1945
1966
|
colors: boolean
|
|
1946
1967
|
}
|
|
1947
1968
|
|
|
1969
|
+
export interface RawStorageOptions {
|
|
1970
|
+
type: "filesystem"
|
|
1971
|
+
directory: string
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1948
1974
|
export interface RawSwcJsMinimizerOptions {
|
|
1949
1975
|
compress: any
|
|
1950
1976
|
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.3",
|
|
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-
|
|
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-win32-x64-msvc": "1.1.
|
|
34
|
-
"@rspack/binding-
|
|
35
|
-
"@rspack/binding-linux-x64-
|
|
27
|
+
"@rspack/binding-win32-arm64-msvc": "1.1.3",
|
|
28
|
+
"@rspack/binding-linux-arm64-gnu": "1.1.3",
|
|
29
|
+
"@rspack/binding-darwin-arm64": "1.1.3",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.1.3",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.1.3",
|
|
32
|
+
"@rspack/binding-darwin-x64": "1.1.3",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "1.1.3",
|
|
34
|
+
"@rspack/binding-linux-x64-gnu": "1.1.3",
|
|
35
|
+
"@rspack/binding-linux-x64-musl": "1.1.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|