@rspack/binding 1.3.12 → 1.3.13
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 +13 -5
- package/package.json +11 -11
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
|
@@ -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
|
}
|
|
@@ -369,6 +369,7 @@ export declare class JsModuleGraph {
|
|
|
369
369
|
|
|
370
370
|
export declare class JsResolver {
|
|
371
371
|
resolveSync(path: string, request: string): JsResourceData | false
|
|
372
|
+
resolve(path: string, request: string, callback: (err: null | Error, req?: JsResourceData) => void): void
|
|
372
373
|
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
373
374
|
}
|
|
374
375
|
|
|
@@ -405,6 +406,11 @@ export declare class RawExternalItemFnCtx {
|
|
|
405
406
|
getResolver(): JsResolver
|
|
406
407
|
}
|
|
407
408
|
|
|
409
|
+
export declare class ReadonlyResourceData {
|
|
410
|
+
get descriptionFileData(): any
|
|
411
|
+
get descriptionFilePath(): string
|
|
412
|
+
}
|
|
413
|
+
|
|
408
414
|
export declare class Sources {
|
|
409
415
|
_get(sourceType: string): JsCompatSourceOwned | null
|
|
410
416
|
}
|
|
@@ -856,9 +862,7 @@ export interface JsLinkPreloadData {
|
|
|
856
862
|
}
|
|
857
863
|
|
|
858
864
|
export interface JsLoaderContext {
|
|
859
|
-
|
|
860
|
-
/** Will be deprecated. Use module.module_identifier instead */
|
|
861
|
-
_moduleIdentifier: Readonly<string>
|
|
865
|
+
resource: string
|
|
862
866
|
_module: Module
|
|
863
867
|
hot: Readonly<boolean>
|
|
864
868
|
/** Content maybe empty in pitching stage */
|
|
@@ -1269,6 +1273,7 @@ export interface JsStatsError {
|
|
|
1269
1273
|
moduleDescriptor?: JsModuleDescriptor
|
|
1270
1274
|
message: string
|
|
1271
1275
|
chunkName?: string
|
|
1276
|
+
code?: string
|
|
1272
1277
|
chunkEntry?: boolean
|
|
1273
1278
|
chunkInitial?: boolean
|
|
1274
1279
|
loc?: string
|
|
@@ -1408,6 +1413,7 @@ export interface JsStatsWarning {
|
|
|
1408
1413
|
name?: string
|
|
1409
1414
|
message: string
|
|
1410
1415
|
chunkName?: string
|
|
1416
|
+
code?: string
|
|
1411
1417
|
chunkEntry?: boolean
|
|
1412
1418
|
chunkInitial?: boolean
|
|
1413
1419
|
file?: string
|
|
@@ -1457,6 +1463,8 @@ export interface KnownAssetInfo {
|
|
|
1457
1463
|
isOverSizeLimit?: boolean
|
|
1458
1464
|
}
|
|
1459
1465
|
|
|
1466
|
+
export declare function loadBrowserslist(input: string | undefined | null, context: string): Array<string> | null
|
|
1467
|
+
|
|
1460
1468
|
export declare function minify(source: string, options: string): Promise<TransformOutput>
|
|
1461
1469
|
|
|
1462
1470
|
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.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
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": {
|
|
@@ -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-
|
|
54
|
-
"@rspack/binding-
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-win32-x64-msvc": "1.3.
|
|
57
|
-
"@rspack/binding-linux-x64-gnu": "1.3.
|
|
58
|
-
"@rspack/binding-linux-x64-musl": "1.3.
|
|
50
|
+
"@rspack/binding-darwin-arm64": "1.3.13",
|
|
51
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.13",
|
|
52
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.13",
|
|
53
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.13",
|
|
54
|
+
"@rspack/binding-linux-arm64-musl": "1.3.13",
|
|
55
|
+
"@rspack/binding-darwin-x64": "1.3.13",
|
|
56
|
+
"@rspack/binding-win32-x64-msvc": "1.3.13",
|
|
57
|
+
"@rspack/binding-linux-x64-gnu": "1.3.13",
|
|
58
|
+
"@rspack/binding-linux-x64-musl": "1.3.13"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build:dev": "node scripts/build.js",
|