@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 +14 -14
- package/binding.js +1 -1
- package/napi-binding.d.ts +454 -207
- package/package.json +19 -37
- package/{rspack.linux-arm64-ohos.node → rspack.openharmony-arm64-ohos.node} +0 -0
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
<picture>
|
|
2
|
+
<img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
|
|
3
|
+
</picture>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
# @rspack/binding
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Private node binding crate for rspack.
|
|
6
8
|
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
npm install @ohos-ports/rspack-binding
|
|
11
|
-
```
|
|
11
|
+
## Documentation
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
See [https://rspack.rs](https://rspack.rs) for details.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Update Wasm binding
|
|
16
16
|
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
323
|
+
return require('./rspack.openharmony-arm64-ohos.node')
|
|
324
324
|
} catch (e) {
|
|
325
325
|
loadErrors.push(e)
|
|
326
326
|
}
|