@rspack/binding 1.2.0-beta.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 +31 -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 {
|
|
@@ -1371,6 +1385,16 @@ export interface RawEnvironment {
|
|
|
1371
1385
|
const?: boolean
|
|
1372
1386
|
arrowFunction?: boolean
|
|
1373
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
|
|
1374
1398
|
}
|
|
1375
1399
|
|
|
1376
1400
|
export interface RawEvalDevToolModulePluginOptions {
|
|
@@ -1390,6 +1414,7 @@ export interface RawExperiments {
|
|
|
1390
1414
|
layers: boolean
|
|
1391
1415
|
topLevelAwait: boolean
|
|
1392
1416
|
incremental?: false | { [key: string]: boolean }
|
|
1417
|
+
parallelCodeSplitting: boolean
|
|
1393
1418
|
rspackFuture?: RawRspackFuture
|
|
1394
1419
|
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
1395
1420
|
}
|
|
@@ -1579,6 +1604,7 @@ export interface RawJavascriptParserOptions {
|
|
|
1579
1604
|
|
|
1580
1605
|
export interface RawJsonParserOptions {
|
|
1581
1606
|
exportsDepth?: number
|
|
1607
|
+
parse?: (source: string) => string
|
|
1582
1608
|
}
|
|
1583
1609
|
|
|
1584
1610
|
export interface RawLazyCompilationOption {
|
|
@@ -1885,6 +1911,7 @@ export interface RawResolveOptions {
|
|
|
1885
1911
|
aliasFields?: Array<string>
|
|
1886
1912
|
restrictions?: Array<string>
|
|
1887
1913
|
roots?: Array<string>
|
|
1914
|
+
pnp?: boolean
|
|
1888
1915
|
}
|
|
1889
1916
|
|
|
1890
1917
|
export interface RawResolveOptionsWithDependencyType {
|
|
@@ -1911,6 +1938,7 @@ export interface RawResolveOptionsWithDependencyType {
|
|
|
1911
1938
|
roots?: Array<string>
|
|
1912
1939
|
dependencyCategory?: string
|
|
1913
1940
|
resolveToContext?: boolean
|
|
1941
|
+
pnp?: boolean
|
|
1914
1942
|
}
|
|
1915
1943
|
|
|
1916
1944
|
export interface RawResolveTsconfigOptions {
|
|
@@ -1976,6 +2004,7 @@ export interface RawSourceMapDevToolPluginOptions {
|
|
|
1976
2004
|
test?: string | RegExp | (string | RegExp)[]
|
|
1977
2005
|
include?: string | RegExp | (string | RegExp)[]
|
|
1978
2006
|
exclude?: string | RegExp | (string | RegExp)[]
|
|
2007
|
+
debugIds?: boolean
|
|
1979
2008
|
}
|
|
1980
2009
|
|
|
1981
2010
|
export interface RawSplitChunkSizes {
|
|
@@ -2045,7 +2074,7 @@ export interface RawTrustedTypes {
|
|
|
2045
2074
|
* Author Donny/강동윤
|
|
2046
2075
|
* Copyright (c)
|
|
2047
2076
|
*/
|
|
2048
|
-
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
|
|
2049
2078
|
|
|
2050
2079
|
export declare enum RegisterJsTapKind {
|
|
2051
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-musl": "1.2.0
|
|
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",
|