@rspack/binding 1.2.0-alpha.0 → 1.2.0
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 +33 -2
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare class JsChunk {
|
|
|
72
72
|
export declare class JsChunkGraph {
|
|
73
73
|
getChunkModules(chunk: JsChunk): JsModule[]
|
|
74
74
|
getChunkEntryModules(chunk: JsChunk): JsModule[]
|
|
75
|
+
getNumberOfEntryModules(chunk: JsChunk): number
|
|
75
76
|
getChunkEntryDependentChunksIterable(chunk: JsChunk): JsChunk[]
|
|
76
77
|
getChunkModulesIterableBySourceType(chunk: JsChunk, sourceType: string): JsModule[]
|
|
77
78
|
getModuleChunks(module: JsModule): JsChunk[]
|
|
@@ -87,6 +88,8 @@ export declare class JsChunkGroup {
|
|
|
87
88
|
getParents(): JsChunkGroup[]
|
|
88
89
|
getRuntimeChunk(): JsChunk
|
|
89
90
|
getFiles(): Array<string>
|
|
91
|
+
getModulePreOrderIndex(module: JsModule): number | null
|
|
92
|
+
getModulePostOrderIndex(module: JsModule): number | null
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
export declare class JsCompilation {
|
|
@@ -256,7 +259,7 @@ export declare class JsResolver {
|
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
export declare class JsResolverFactory {
|
|
259
|
-
constructor()
|
|
262
|
+
constructor(pnp: boolean)
|
|
260
263
|
get(type: string, options?: RawResolveOptionsWithDependencyType): JsResolver
|
|
261
264
|
}
|
|
262
265
|
|
|
@@ -736,6 +739,7 @@ export interface JsLoaderContext {
|
|
|
736
739
|
loaderIndex: number
|
|
737
740
|
loaderState: Readonly<JsLoaderState>
|
|
738
741
|
__internal__error?: JsRspackError
|
|
742
|
+
__internal__tracingCarrier?: Record<string, string>
|
|
739
743
|
}
|
|
740
744
|
|
|
741
745
|
export interface JsLoaderItem {
|
|
@@ -1040,11 +1044,19 @@ export interface JsStatsModuleReason {
|
|
|
1040
1044
|
moduleChunks?: number
|
|
1041
1045
|
type?: string
|
|
1042
1046
|
userRequest?: string
|
|
1047
|
+
explanation?: string
|
|
1048
|
+
active: boolean
|
|
1049
|
+
loc?: string
|
|
1043
1050
|
}
|
|
1044
1051
|
|
|
1045
1052
|
export interface JsStatsModuleTrace {
|
|
1046
1053
|
origin: JsStatsModuleTraceModule
|
|
1047
1054
|
module: JsStatsModuleTraceModule
|
|
1055
|
+
dependencies: Array<JsStatsModuleTraceDependency>
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export interface JsStatsModuleTraceDependency {
|
|
1059
|
+
loc: string
|
|
1048
1060
|
}
|
|
1049
1061
|
|
|
1050
1062
|
export interface JsStatsModuleTraceModule {
|
|
@@ -1140,6 +1152,7 @@ export interface RawAssetGeneratorOptions {
|
|
|
1140
1152
|
outputPath?: JsFilename
|
|
1141
1153
|
publicPath?: "auto" | JsFilename
|
|
1142
1154
|
dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string)
|
|
1155
|
+
importMode?: "url" | "preserve"
|
|
1143
1156
|
}
|
|
1144
1157
|
|
|
1145
1158
|
export interface RawAssetInlineGeneratorOptions {
|
|
@@ -1164,6 +1177,7 @@ export interface RawAssetResourceGeneratorOptions {
|
|
|
1164
1177
|
filename?: JsFilename
|
|
1165
1178
|
outputPath?: JsFilename
|
|
1166
1179
|
publicPath?: "auto" | JsFilename
|
|
1180
|
+
importMode?: "url" | "preserve"
|
|
1167
1181
|
}
|
|
1168
1182
|
|
|
1169
1183
|
export interface RawBannerPluginOptions {
|
|
@@ -1297,6 +1311,7 @@ export interface RawCssExtractPluginOption {
|
|
|
1297
1311
|
linkType?: string
|
|
1298
1312
|
runtime: boolean
|
|
1299
1313
|
pathinfo: boolean
|
|
1314
|
+
enforceRelative: boolean
|
|
1300
1315
|
}
|
|
1301
1316
|
|
|
1302
1317
|
export interface RawCssGeneratorOptions {
|
|
@@ -1370,6 +1385,16 @@ export interface RawEnvironment {
|
|
|
1370
1385
|
const?: boolean
|
|
1371
1386
|
arrowFunction?: boolean
|
|
1372
1387
|
nodePrefixForCoreModules?: boolean
|
|
1388
|
+
asyncFunction?: boolean
|
|
1389
|
+
bigIntLiteral?: boolean
|
|
1390
|
+
destructuring?: boolean
|
|
1391
|
+
document?: boolean
|
|
1392
|
+
dynamicImport?: boolean
|
|
1393
|
+
forOf?: boolean
|
|
1394
|
+
globalThis?: boolean
|
|
1395
|
+
module?: boolean
|
|
1396
|
+
optionalChaining?: boolean
|
|
1397
|
+
templateLiteral?: boolean
|
|
1373
1398
|
}
|
|
1374
1399
|
|
|
1375
1400
|
export interface RawEvalDevToolModulePluginOptions {
|
|
@@ -1389,6 +1414,7 @@ export interface RawExperiments {
|
|
|
1389
1414
|
layers: boolean
|
|
1390
1415
|
topLevelAwait: boolean
|
|
1391
1416
|
incremental?: false | { [key: string]: boolean }
|
|
1417
|
+
parallelCodeSplitting: boolean
|
|
1392
1418
|
rspackFuture?: RawRspackFuture
|
|
1393
1419
|
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
1394
1420
|
}
|
|
@@ -1578,6 +1604,7 @@ export interface RawJavascriptParserOptions {
|
|
|
1578
1604
|
|
|
1579
1605
|
export interface RawJsonParserOptions {
|
|
1580
1606
|
exportsDepth?: number
|
|
1607
|
+
parse?: (source: string) => string
|
|
1581
1608
|
}
|
|
1582
1609
|
|
|
1583
1610
|
export interface RawLazyCompilationOption {
|
|
@@ -1752,6 +1779,7 @@ export interface RawOptimizationOptions {
|
|
|
1752
1779
|
}
|
|
1753
1780
|
|
|
1754
1781
|
export interface RawOptions {
|
|
1782
|
+
name?: string
|
|
1755
1783
|
mode?: undefined | 'production' | 'development' | 'none'
|
|
1756
1784
|
context: string
|
|
1757
1785
|
output: RawOutputOptions
|
|
@@ -1883,6 +1911,7 @@ export interface RawResolveOptions {
|
|
|
1883
1911
|
aliasFields?: Array<string>
|
|
1884
1912
|
restrictions?: Array<string>
|
|
1885
1913
|
roots?: Array<string>
|
|
1914
|
+
pnp?: boolean
|
|
1886
1915
|
}
|
|
1887
1916
|
|
|
1888
1917
|
export interface RawResolveOptionsWithDependencyType {
|
|
@@ -1909,6 +1938,7 @@ export interface RawResolveOptionsWithDependencyType {
|
|
|
1909
1938
|
roots?: Array<string>
|
|
1910
1939
|
dependencyCategory?: string
|
|
1911
1940
|
resolveToContext?: boolean
|
|
1941
|
+
pnp?: boolean
|
|
1912
1942
|
}
|
|
1913
1943
|
|
|
1914
1944
|
export interface RawResolveTsconfigOptions {
|
|
@@ -1974,6 +2004,7 @@ export interface RawSourceMapDevToolPluginOptions {
|
|
|
1974
2004
|
test?: string | RegExp | (string | RegExp)[]
|
|
1975
2005
|
include?: string | RegExp | (string | RegExp)[]
|
|
1976
2006
|
exclude?: string | RegExp | (string | RegExp)[]
|
|
2007
|
+
debugIds?: boolean
|
|
1977
2008
|
}
|
|
1978
2009
|
|
|
1979
2010
|
export interface RawSplitChunkSizes {
|
|
@@ -2043,7 +2074,7 @@ export interface RawTrustedTypes {
|
|
|
2043
2074
|
* Author Donny/강동윤
|
|
2044
2075
|
* Copyright (c)
|
|
2045
2076
|
*/
|
|
2046
|
-
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger", output: string): void
|
|
2077
|
+
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger" | "otel", output: string): void
|
|
2047
2078
|
|
|
2048
2079
|
export declare enum RegisterJsTapKind {
|
|
2049
2080
|
CompilerThisCompilation = 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
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.2.0
|
|
28
|
-
"@rspack/binding-win32-arm64-msvc": "1.2.0
|
|
29
|
-
"@rspack/binding-linux-arm64-gnu": "1.2.0
|
|
30
|
-
"@rspack/binding-linux-arm64-musl": "1.2.0
|
|
31
|
-
"@rspack/binding-win32-
|
|
32
|
-
"@rspack/binding-darwin-x64": "1.2.0
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.2.0",
|
|
28
|
+
"@rspack/binding-win32-arm64-msvc": "1.2.0",
|
|
29
|
+
"@rspack/binding-linux-arm64-gnu": "1.2.0",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.2.0",
|
|
31
|
+
"@rspack/binding-win32-x64-msvc": "1.2.0",
|
|
32
|
+
"@rspack/binding-darwin-x64": "1.2.0",
|
|
33
|
+
"@rspack/binding-linux-x64-gnu": "1.2.0",
|
|
34
|
+
"@rspack/binding-linux-x64-musl": "1.2.0",
|
|
35
|
+
"@rspack/binding-win32-ia32-msvc": "1.2.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|