@dom-expressions/jsx-compiler 0.50.0-next.18 → 0.50.0-next.20
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 +3 -16
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -19,22 +19,9 @@ platforms, build from source with `pnpm run build` inside
|
|
|
19
19
|
|
|
20
20
|
The compiler also ships a WASI fallback for environments such as StackBlitz
|
|
21
21
|
WebContainers, where Node.js reports a native platform but cannot load `.node`
|
|
22
|
-
addons.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
npm install --cpu=wasm32 @dom-expressions/jsx-compiler
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
With pnpm, add the installation architecture to `pnpm-workspace.yaml`:
|
|
29
|
-
|
|
30
|
-
```yaml
|
|
31
|
-
supportedArchitectures:
|
|
32
|
-
cpu:
|
|
33
|
-
- current
|
|
34
|
-
- wasm32
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
The normal package entry point prefers a native binding and falls back to
|
|
22
|
+
addons. Package managers install the WASI binding as an optional dependency
|
|
23
|
+
without requiring architecture configuration. The normal package entry point
|
|
24
|
+
prefers a native binding and falls back to
|
|
38
25
|
`@dom-expressions/jsx-compiler-wasm32-wasi` when native addons are unavailable.
|
|
39
26
|
Set `NAPI_RS_FORCE_WASI=error` to require the WASI binding for testing.
|
|
40
27
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dom-expressions/jsx-compiler",
|
|
3
3
|
"description": "A JSX to DOM Expressions compiler implemented with Oxc",
|
|
4
|
-
"version": "0.50.0-next.
|
|
4
|
+
"version": "0.50.0-next.20",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@napi-rs/wasm-runtime": "^1.1.6"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@dom-expressions/jsx-compiler-darwin-x64": "0.50.0-next.
|
|
54
|
-
"@dom-expressions/jsx-compiler-darwin-arm64": "0.50.0-next.
|
|
55
|
-
"@dom-expressions/jsx-compiler-linux-x64-gnu": "0.50.0-next.
|
|
56
|
-
"@dom-expressions/jsx-compiler-linux-arm64-gnu": "0.50.0-next.
|
|
57
|
-
"@dom-expressions/jsx-compiler-win32-x64-msvc": "0.50.0-next.
|
|
58
|
-
"@dom-expressions/jsx-compiler-wasm32-wasi": "0.50.0-next.
|
|
53
|
+
"@dom-expressions/jsx-compiler-darwin-x64": "0.50.0-next.20",
|
|
54
|
+
"@dom-expressions/jsx-compiler-darwin-arm64": "0.50.0-next.20",
|
|
55
|
+
"@dom-expressions/jsx-compiler-linux-x64-gnu": "0.50.0-next.20",
|
|
56
|
+
"@dom-expressions/jsx-compiler-linux-arm64-gnu": "0.50.0-next.20",
|
|
57
|
+
"@dom-expressions/jsx-compiler-win32-x64-msvc": "0.50.0-next.20",
|
|
58
|
+
"@dom-expressions/jsx-compiler-wasm32-wasi": "0.50.0-next.20"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "napi build --release --strip --manifest-path ./Cargo.toml",
|