@rspack/binding 1.5.4 → 1.5.6
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.js +1 -1
- package/napi-binding.d.ts +4 -8
- package/package.json +12 -12
package/binding.js
CHANGED
|
@@ -66,7 +66,7 @@ const isMuslFromChildProcess = () => {
|
|
|
66
66
|
function requireNative() {
|
|
67
67
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
68
68
|
try {
|
|
69
|
-
|
|
69
|
+
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
70
70
|
} catch (err) {
|
|
71
71
|
loadErrors.push(err)
|
|
72
72
|
}
|
package/napi-binding.d.ts
CHANGED
|
@@ -1353,11 +1353,6 @@ export interface JsStatsLogging {
|
|
|
1353
1353
|
trace?: Array<string>
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
1356
|
-
export interface JsStatsMillisecond {
|
|
1357
|
-
secs: number
|
|
1358
|
-
subsecMillis: number
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
1356
|
export interface JsStatsModule {
|
|
1362
1357
|
commonAttributes: JsStatsModuleCommonAttributes
|
|
1363
1358
|
dependent?: boolean
|
|
@@ -1402,8 +1397,8 @@ export interface JsStatsModuleIssuer {
|
|
|
1402
1397
|
}
|
|
1403
1398
|
|
|
1404
1399
|
export interface JsStatsModuleProfile {
|
|
1405
|
-
factory:
|
|
1406
|
-
building:
|
|
1400
|
+
factory: number
|
|
1401
|
+
building: number
|
|
1407
1402
|
}
|
|
1408
1403
|
|
|
1409
1404
|
export interface JsStatsModuleReason {
|
|
@@ -1538,7 +1533,7 @@ export interface NapiResolveOptions {
|
|
|
1538
1533
|
* Create aliases to import or require certain modules more easily.
|
|
1539
1534
|
* A trailing $ can also be added to the given object's keys to signify an exact match.
|
|
1540
1535
|
*/
|
|
1541
|
-
alias?: Record<string,
|
|
1536
|
+
alias?: Record<string, string | false | string[]>
|
|
1542
1537
|
/**
|
|
1543
1538
|
* A list of alias fields in description files.
|
|
1544
1539
|
* Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec).
|
|
@@ -2327,6 +2322,7 @@ export interface RawJavascriptParserOptions {
|
|
|
2327
2322
|
* @experimental
|
|
2328
2323
|
*/
|
|
2329
2324
|
importDynamic?: boolean
|
|
2325
|
+
commonjsMagicComments?: boolean
|
|
2330
2326
|
/**
|
|
2331
2327
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2332
2328
|
* @experimental
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"repository": "web-infra-dev/rspack",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@napi-rs/cli": "3.0.4",
|
|
23
|
-
"@napi-rs/wasm-runtime": "^1.0.
|
|
23
|
+
"@napi-rs/wasm-runtime": "^1.0.5",
|
|
24
24
|
"emnapi": "^1.5.0",
|
|
25
25
|
"typescript": "^5.9.2"
|
|
26
26
|
},
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@rspack/binding-darwin-arm64": "1.5.
|
|
55
|
-
"@rspack/binding-win32-arm64-msvc": "1.5.
|
|
56
|
-
"@rspack/binding-linux-arm64-musl": "1.5.
|
|
57
|
-
"@rspack/binding-linux-arm64-gnu": "1.5.
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-
|
|
62
|
-
"@rspack/binding-linux-x64-
|
|
63
|
-
"@rspack/binding-
|
|
54
|
+
"@rspack/binding-darwin-arm64": "1.5.6",
|
|
55
|
+
"@rspack/binding-win32-arm64-msvc": "1.5.6",
|
|
56
|
+
"@rspack/binding-linux-arm64-musl": "1.5.6",
|
|
57
|
+
"@rspack/binding-linux-arm64-gnu": "1.5.6",
|
|
58
|
+
"@rspack/binding-win32-ia32-msvc": "1.5.6",
|
|
59
|
+
"@rspack/binding-wasm32-wasi": "1.5.6",
|
|
60
|
+
"@rspack/binding-linux-x64-gnu": "1.5.6",
|
|
61
|
+
"@rspack/binding-win32-x64-msvc": "1.5.6",
|
|
62
|
+
"@rspack/binding-linux-x64-musl": "1.5.6",
|
|
63
|
+
"@rspack/binding-darwin-x64": "1.5.6"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build:dev": "node scripts/build.js",
|