@rspack/binding 1.5.3 → 1.5.5

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 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
- nativeBinding = require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
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
@@ -1538,7 +1538,7 @@ export interface NapiResolveOptions {
1538
1538
  * Create aliases to import or require certain modules more easily.
1539
1539
  * A trailing $ can also be added to the given object's keys to signify an exact match.
1540
1540
  */
1541
- alias?: Record<string, Array<string | undefined | null>>
1541
+ alias?: Record<string, string | false | string[]>
1542
1542
  /**
1543
1543
  * A list of alias fields in description files.
1544
1544
  * Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -20,8 +20,8 @@
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.1",
24
- "emnapi": "^1.4.5",
23
+ "@napi-rs/wasm-runtime": "^1.0.5",
24
+ "emnapi": "^1.5.0",
25
25
  "typescript": "^5.9.2"
26
26
  },
27
27
  "napi": {
@@ -51,16 +51,16 @@
51
51
  }
52
52
  },
53
53
  "optionalDependencies": {
54
- "@rspack/binding-darwin-arm64": "1.5.3",
55
- "@rspack/binding-win32-arm64-msvc": "1.5.3",
56
- "@rspack/binding-linux-arm64-gnu": "1.5.3",
57
- "@rspack/binding-linux-arm64-musl": "1.5.3",
58
- "@rspack/binding-win32-ia32-msvc": "1.5.3",
59
- "@rspack/binding-wasm32-wasi": "1.5.3",
60
- "@rspack/binding-darwin-x64": "1.5.3",
61
- "@rspack/binding-win32-x64-msvc": "1.5.3",
62
- "@rspack/binding-linux-x64-gnu": "1.5.3",
63
- "@rspack/binding-linux-x64-musl": "1.5.3"
54
+ "@rspack/binding-darwin-arm64": "1.5.5",
55
+ "@rspack/binding-linux-arm64-gnu": "1.5.5",
56
+ "@rspack/binding-linux-arm64-musl": "1.5.5",
57
+ "@rspack/binding-win32-ia32-msvc": "1.5.5",
58
+ "@rspack/binding-win32-arm64-msvc": "1.5.5",
59
+ "@rspack/binding-wasm32-wasi": "1.5.5",
60
+ "@rspack/binding-darwin-x64": "1.5.5",
61
+ "@rspack/binding-win32-x64-msvc": "1.5.5",
62
+ "@rspack/binding-linux-x64-gnu": "1.5.5",
63
+ "@rspack/binding-linux-x64-musl": "1.5.5"
64
64
  },
65
65
  "scripts": {
66
66
  "build:dev": "node scripts/build.js",
@@ -1,7 +1,3 @@
1
- /**
2
- * Based on https://github.com/oxc-project/oxc/blob/main/napi/parser/webcontainer-fallback.js
3
- */
4
-
5
1
  const fs = require('node:fs');
6
2
  const path = require('node:path');
7
3
  const childProcess = require('node:child_process');