@rspack/binding 1.3.12 → 1.3.14
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/README.md +2 -2
- package/binding.d.ts +24 -11
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<picture>
|
|
2
|
-
<img alt="Rspack Banner" src="https://assets.rspack.
|
|
2
|
+
<img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
|
|
3
3
|
</picture>
|
|
4
4
|
|
|
5
5
|
# @rspack/binding
|
|
@@ -9,7 +9,7 @@ Private node binding crate for rspack.
|
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
See [https://rspack.
|
|
12
|
+
See [https://rspack.rs](https://rspack.rs) for details.
|
|
13
13
|
|
|
14
14
|
## License
|
|
15
15
|
|
package/binding.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export interface Module {
|
|
|
24
24
|
get useSourceMap(): boolean;
|
|
25
25
|
get useSimpleSourceMap(): boolean;
|
|
26
26
|
get _readableIdentifier(): string;
|
|
27
|
-
buildInfo: Record<string, any>;
|
|
28
|
-
buildMeta: Record<string, any>;
|
|
27
|
+
buildInfo: KnownBuildInfo & Record<string, any>;
|
|
28
|
+
buildMeta: KnownBuildInfo & Record<string, any>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface NormalModuleConstructor {
|
|
@@ -40,8 +40,8 @@ export interface NormalModule extends Module {
|
|
|
40
40
|
readonly request: string;
|
|
41
41
|
readonly userRequest: string;
|
|
42
42
|
readonly rawRequest: string;
|
|
43
|
-
readonly resourceResolveData: JsResourceData | undefined;
|
|
44
|
-
readonly loaders:
|
|
43
|
+
readonly resourceResolveData: Readonly<JsResourceData> | undefined;
|
|
44
|
+
readonly loaders: JsLoaderItem[];
|
|
45
45
|
get matchResource(): string | undefined;
|
|
46
46
|
set matchResource(val: string | undefined);
|
|
47
47
|
}
|
|
@@ -74,10 +74,6 @@ export declare class AsyncDependenciesBlock {
|
|
|
74
74
|
get blocks(): AsyncDependenciesBlock[]
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
export declare class BuildInfo {
|
|
78
|
-
get _assets(): Assets
|
|
79
|
-
}
|
|
80
|
-
|
|
81
77
|
export declare class Chunks {
|
|
82
78
|
get size(): number
|
|
83
79
|
_values(): JsChunk[]
|
|
@@ -369,6 +365,7 @@ export declare class JsModuleGraph {
|
|
|
369
365
|
|
|
370
366
|
export declare class JsResolver {
|
|
371
367
|
resolveSync(path: string, request: string): JsResourceData | false
|
|
368
|
+
resolve(path: string, request: string, callback: (err: null | Error, req?: JsResourceData) => void): void
|
|
372
369
|
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
373
370
|
}
|
|
374
371
|
|
|
@@ -382,6 +379,14 @@ export declare class JsStats {
|
|
|
382
379
|
getLogging(acceptedTypes: number): Array<JsStatsLogging>
|
|
383
380
|
}
|
|
384
381
|
|
|
382
|
+
export declare class KnownBuildInfo {
|
|
383
|
+
get _assets(): Assets
|
|
384
|
+
get _fileDependencies(): Array<string>
|
|
385
|
+
get _contextDependencies(): Array<string>
|
|
386
|
+
get _missingDependencies(): Array<string>
|
|
387
|
+
get _buildDependencies(): Array<string>
|
|
388
|
+
}
|
|
389
|
+
|
|
385
390
|
export declare class Module {
|
|
386
391
|
_originalSource(): JsCompatSource | undefined
|
|
387
392
|
nameForCondition(): string | undefined
|
|
@@ -405,6 +410,11 @@ export declare class RawExternalItemFnCtx {
|
|
|
405
410
|
getResolver(): JsResolver
|
|
406
411
|
}
|
|
407
412
|
|
|
413
|
+
export declare class ReadonlyResourceData {
|
|
414
|
+
get descriptionFileData(): any
|
|
415
|
+
get descriptionFilePath(): string
|
|
416
|
+
}
|
|
417
|
+
|
|
408
418
|
export declare class Sources {
|
|
409
419
|
_get(sourceType: string): JsCompatSourceOwned | null
|
|
410
420
|
}
|
|
@@ -856,9 +866,7 @@ export interface JsLinkPreloadData {
|
|
|
856
866
|
}
|
|
857
867
|
|
|
858
868
|
export interface JsLoaderContext {
|
|
859
|
-
|
|
860
|
-
/** Will be deprecated. Use module.module_identifier instead */
|
|
861
|
-
_moduleIdentifier: Readonly<string>
|
|
869
|
+
resource: string
|
|
862
870
|
_module: Module
|
|
863
871
|
hot: Readonly<boolean>
|
|
864
872
|
/** Content maybe empty in pitching stage */
|
|
@@ -888,6 +896,7 @@ export interface JsLoaderItem {
|
|
|
888
896
|
data: any
|
|
889
897
|
normalExecuted: boolean
|
|
890
898
|
pitchExecuted: boolean
|
|
899
|
+
noPitch: boolean
|
|
891
900
|
}
|
|
892
901
|
|
|
893
902
|
export declare enum JsLoaderState {
|
|
@@ -1269,6 +1278,7 @@ export interface JsStatsError {
|
|
|
1269
1278
|
moduleDescriptor?: JsModuleDescriptor
|
|
1270
1279
|
message: string
|
|
1271
1280
|
chunkName?: string
|
|
1281
|
+
code?: string
|
|
1272
1282
|
chunkEntry?: boolean
|
|
1273
1283
|
chunkInitial?: boolean
|
|
1274
1284
|
loc?: string
|
|
@@ -1408,6 +1418,7 @@ export interface JsStatsWarning {
|
|
|
1408
1418
|
name?: string
|
|
1409
1419
|
message: string
|
|
1410
1420
|
chunkName?: string
|
|
1421
|
+
code?: string
|
|
1411
1422
|
chunkEntry?: boolean
|
|
1412
1423
|
chunkInitial?: boolean
|
|
1413
1424
|
file?: string
|
|
@@ -1457,6 +1468,8 @@ export interface KnownAssetInfo {
|
|
|
1457
1468
|
isOverSizeLimit?: boolean
|
|
1458
1469
|
}
|
|
1459
1470
|
|
|
1471
|
+
export declare function loadBrowserslist(input: string | undefined | null, context: string): Array<string> | null
|
|
1472
|
+
|
|
1460
1473
|
export declare function minify(source: string, options: string): Promise<TransformOutput>
|
|
1461
1474
|
|
|
1462
1475
|
export interface NodeFsStats {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"binding.js",
|
|
14
14
|
"binding.d.ts"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://rspack.
|
|
16
|
+
"homepage": "https://rspack.rs",
|
|
17
17
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
18
18
|
"repository": "web-infra-dev/rspack",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@napi-rs/cli": "3.0.0-alpha.
|
|
20
|
+
"@napi-rs/cli": "3.0.0-alpha.84",
|
|
21
21
|
"@napi-rs/wasm-runtime": "^0.2.10",
|
|
22
22
|
"emnapi": "^1.4.3",
|
|
23
23
|
"typescript": "^5.8.3",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@rspack/binding-darwin-arm64": "1.3.
|
|
51
|
-
"@rspack/binding-win32-arm64-msvc": "1.3.
|
|
52
|
-
"@rspack/binding-linux-arm64-gnu": "1.3.
|
|
53
|
-
"@rspack/binding-linux-arm64-musl": "1.3.
|
|
54
|
-
"@rspack/binding-
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-
|
|
57
|
-
"@rspack/binding-linux-x64-
|
|
58
|
-
"@rspack/binding-
|
|
50
|
+
"@rspack/binding-darwin-arm64": "1.3.14",
|
|
51
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.14",
|
|
52
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.14",
|
|
53
|
+
"@rspack/binding-linux-arm64-musl": "1.3.14",
|
|
54
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.14",
|
|
55
|
+
"@rspack/binding-linux-x64-gnu": "1.3.14",
|
|
56
|
+
"@rspack/binding-darwin-x64": "1.3.14",
|
|
57
|
+
"@rspack/binding-linux-x64-musl": "1.3.14",
|
|
58
|
+
"@rspack/binding-win32-x64-msvc": "1.3.14"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build:dev": "node scripts/build.js",
|