@rspack/binding 1.3.10 → 1.3.11
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 -29
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -65,11 +65,19 @@ export declare class ExternalObject<T> {
|
|
|
65
65
|
[K: symbol]: T
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
export declare class Assets {
|
|
69
|
+
keys(): Array<string>
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
export declare class AsyncDependenciesBlock {
|
|
69
73
|
get dependencies(): Dependency[]
|
|
70
74
|
get blocks(): AsyncDependenciesBlock[]
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
export declare class BuildInfo {
|
|
78
|
+
get _assets(): Assets
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
export declare class Chunks {
|
|
74
82
|
get size(): number
|
|
75
83
|
_values(): JsChunk[]
|
|
@@ -116,6 +124,14 @@ export declare class Dependency {
|
|
|
116
124
|
get ids(): Array<string> | undefined
|
|
117
125
|
}
|
|
118
126
|
|
|
127
|
+
export declare class Diagnostics {
|
|
128
|
+
get length(): number
|
|
129
|
+
values(): Array<JsRspackError>
|
|
130
|
+
get(index: number): JsRspackError | undefined
|
|
131
|
+
set(index: number, error: JsRspackError): void
|
|
132
|
+
spliceWithArray(index: number, deleteCount?: number | undefined | null, newItems?: Array<JsRspackError> | undefined | null): Array<JsRspackError>
|
|
133
|
+
}
|
|
134
|
+
|
|
119
135
|
export declare class EntryDataDto {
|
|
120
136
|
get dependencies(): Dependency[]
|
|
121
137
|
get includeDependencies(): Dependency[]
|
|
@@ -240,13 +256,14 @@ export declare class JsCompilation {
|
|
|
240
256
|
spliceDiagnostic(start: number, end: number, replaceWith: Array<JsRspackDiagnostic>): void
|
|
241
257
|
pushNativeDiagnostic(diagnostic: ExternalObject<'Diagnostic'>): void
|
|
242
258
|
pushNativeDiagnostics(diagnostics: ExternalObject<'Diagnostic[]'>): void
|
|
259
|
+
get errors(): Diagnostics
|
|
243
260
|
getErrors(): Array<JsRspackError>
|
|
244
261
|
getWarnings(): Array<JsRspackError>
|
|
245
262
|
getStats(): JsStats
|
|
246
|
-
getAssetPath(filename:
|
|
247
|
-
getAssetPathWithInfo(filename:
|
|
248
|
-
getPath(filename:
|
|
249
|
-
getPathWithInfo(filename:
|
|
263
|
+
getAssetPath(filename: string, data: JsPathData): string
|
|
264
|
+
getAssetPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
265
|
+
getPath(filename: string, data: JsPathData): string
|
|
266
|
+
getPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
250
267
|
addFileDependencies(deps: Array<string>): void
|
|
251
268
|
addContextDependencies(deps: Array<string>): void
|
|
252
269
|
addMissingDependencies(deps: Array<string>): void
|
|
@@ -480,7 +497,8 @@ export declare enum BuiltinPluginName {
|
|
|
480
497
|
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
|
|
481
498
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
482
499
|
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
483
|
-
HttpUriPlugin = 'HttpUriPlugin'
|
|
500
|
+
HttpUriPlugin = 'HttpUriPlugin',
|
|
501
|
+
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
484
502
|
}
|
|
485
503
|
|
|
486
504
|
export declare function cleanupGlobalTrace(): void
|
|
@@ -490,6 +508,11 @@ export interface ContextInfo {
|
|
|
490
508
|
issuerLayer?: string
|
|
491
509
|
}
|
|
492
510
|
|
|
511
|
+
export interface CssChunkingPluginOptions {
|
|
512
|
+
strict?: boolean
|
|
513
|
+
exclude?: RegExp
|
|
514
|
+
}
|
|
515
|
+
|
|
493
516
|
export declare function formatDiagnostic(diagnostic: JsDiagnostic): ExternalObject<'Diagnostic'>
|
|
494
517
|
|
|
495
518
|
export interface JsAddingRuntimeModule {
|
|
@@ -851,7 +874,11 @@ export interface JsLoaderContext {
|
|
|
851
874
|
loaderIndex: number
|
|
852
875
|
loaderState: Readonly<JsLoaderState>
|
|
853
876
|
__internal__error?: JsRspackError
|
|
854
|
-
|
|
877
|
+
/**
|
|
878
|
+
* UTF-8 hint for `content`
|
|
879
|
+
* - Some(true): `content` is a `UTF-8` encoded sequence
|
|
880
|
+
*/
|
|
881
|
+
__internal__utf8Hint?: boolean
|
|
855
882
|
}
|
|
856
883
|
|
|
857
884
|
export interface JsLoaderItem {
|
|
@@ -1623,7 +1650,7 @@ export interface RawCopyPattern {
|
|
|
1623
1650
|
* @default false
|
|
1624
1651
|
*/
|
|
1625
1652
|
copyPermissions?: boolean
|
|
1626
|
-
transform?: { transformer: (input:
|
|
1653
|
+
transform?: { transformer: (input: Buffer, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer> } | ((input: Buffer, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer>)
|
|
1627
1654
|
}
|
|
1628
1655
|
|
|
1629
1656
|
export interface RawCopyRspackPluginOptions {
|
|
@@ -2360,24 +2387,6 @@ export interface RawSizeLimitsPluginOptions {
|
|
|
2360
2387
|
maxEntrypointSize?: number
|
|
2361
2388
|
}
|
|
2362
2389
|
|
|
2363
|
-
export interface RawSourceMapDevToolPluginOptions {
|
|
2364
|
-
append?: (false | null) | string | Function
|
|
2365
|
-
columns?: boolean
|
|
2366
|
-
fallbackModuleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2367
|
-
fileContext?: string
|
|
2368
|
-
filename?: (false | null) | string
|
|
2369
|
-
module?: boolean
|
|
2370
|
-
moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2371
|
-
namespace?: string
|
|
2372
|
-
noSources?: boolean
|
|
2373
|
-
publicPath?: string
|
|
2374
|
-
sourceRoot?: string
|
|
2375
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
2376
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
2377
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
2378
|
-
debugIds?: boolean
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
2390
|
export interface RawSplitChunkSizes {
|
|
2382
2391
|
sizes: Record<string, number>
|
|
2383
2392
|
}
|
|
@@ -2441,10 +2450,6 @@ export interface RawToOptions {
|
|
|
2441
2450
|
absoluteFilename?: string
|
|
2442
2451
|
}
|
|
2443
2452
|
|
|
2444
|
-
export interface RawTransformOptions {
|
|
2445
|
-
transformer: { transformer: (input: string, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer> }
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
2453
|
export interface RawTrustedTypes {
|
|
2449
2454
|
policyName?: string
|
|
2450
2455
|
onPolicyCreationFailure?: string
|
|
@@ -2571,6 +2576,24 @@ export interface RegisterJsTaps {
|
|
|
2571
2576
|
*/
|
|
2572
2577
|
export declare function shutdownAsyncRuntime(): void
|
|
2573
2578
|
|
|
2579
|
+
export interface SourceMapDevToolPluginOptions {
|
|
2580
|
+
append?: (false | null) | string | Function
|
|
2581
|
+
columns?: boolean
|
|
2582
|
+
fallbackModuleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2583
|
+
fileContext?: string
|
|
2584
|
+
filename?: (false | null) | string
|
|
2585
|
+
module?: boolean
|
|
2586
|
+
moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2587
|
+
namespace?: string
|
|
2588
|
+
noSources?: boolean
|
|
2589
|
+
publicPath?: string
|
|
2590
|
+
sourceRoot?: string
|
|
2591
|
+
test?: string | RegExp | (string | RegExp)[]
|
|
2592
|
+
include?: string | RegExp | (string | RegExp)[]
|
|
2593
|
+
exclude?: string | RegExp | (string | RegExp)[]
|
|
2594
|
+
debugIds?: boolean
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2574
2597
|
/**
|
|
2575
2598
|
* Start the async runtime manually.
|
|
2576
2599
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@rspack/binding-darwin-arm64": "1.3.
|
|
52
|
-
"@rspack/binding-
|
|
53
|
-
"@rspack/binding-
|
|
54
|
-
"@rspack/binding-
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-win32-
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-linux-x64-gnu": "1.3.
|
|
59
|
-
"@rspack/binding-linux-x64-musl": "1.3.
|
|
51
|
+
"@rspack/binding-darwin-arm64": "1.3.11",
|
|
52
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.11",
|
|
53
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.11",
|
|
54
|
+
"@rspack/binding-darwin-x64": "1.3.11",
|
|
55
|
+
"@rspack/binding-linux-arm64-musl": "1.3.11",
|
|
56
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.11",
|
|
57
|
+
"@rspack/binding-win32-x64-msvc": "1.3.11",
|
|
58
|
+
"@rspack/binding-linux-x64-gnu": "1.3.11",
|
|
59
|
+
"@rspack/binding-linux-x64-musl": "1.3.11"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build:dev": "node scripts/build.js",
|