@ohos-ports/rspack-binding 1.7.11-beta.1 → 2.2.2-beta.0

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 CHANGED
@@ -1,21 +1,21 @@
1
- # @ohos-ports/rspack-binding
1
+ <picture>
2
+ <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
3
+ </picture>
2
4
 
3
- OpenHarmony ARM64 native build for [@rspack/binding](https://www.npmjs.com/package/@rspack/binding).
5
+ # @rspack/binding
4
6
 
5
- This package contains a pre-compiled `rspack.linux-arm64-ohos.node` native binary for HarmonyOS (OpenHarmony) ARM64 platform.
7
+ Private node binding crate for rspack.
6
8
 
7
- ## Installation
9
+ > Rspack's internal package, don't use it directly in your project, This package does _NOT_ follow [semantic versioning](https://semver.org/).
8
10
 
9
- ```bash
10
- npm install @ohos-ports/rspack-binding
11
- ```
11
+ ## Documentation
12
12
 
13
- This is a platform-specific package and is intended to be used as an optional dependency by packages that depend on `@rspack/binding`.
13
+ See [https://rspack.rs](https://rspack.rs) for details.
14
14
 
15
- ## Build Information
15
+ ## Update Wasm binding
16
16
 
17
- - **Source**: [rspack v1.7.11](https://github.com/web-infra-dev/rspack)
18
- - **Target**: `aarch64-unknown-linux-ohos`
19
- - **Toolchain**: OHOS Rust 1.95.0 (stable) + clang 15.0.4 + LLD 15.0.4
20
- - **Binary size**: ~47MB (stripped ELF64 AArch64)
21
- - **Exports**: 67 (49 functions + 18 constants/enums)
17
+ The generation of `rspack.wasi-browser.js` and `rspack.wasi.js` is disabled by default because `@napi/cli` produces unstable output for these files. To update the Wasm bindings, add `wasm32-wasip1-threads` to the `napi.targets` field in `package.json` before building the project.
18
+
19
+ ## License
20
+
21
+ Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
package/binding.js CHANGED
@@ -320,7 +320,7 @@ function requireNative() {
320
320
  } else if (process.platform === 'openharmony') {
321
321
  if (process.arch === 'arm64') {
322
322
  try {
323
- return require('./rspack.linux-arm64-ohos.node')
323
+ return require('./rspack.openharmony-arm64-ohos.node')
324
324
  } catch (e) {
325
325
  loadErrors.push(e)
326
326
  }