@farmfe/plugin-wasm 0.0.7 → 0.0.8
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 +7 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @farmfe/plugin-wasm
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A Farm plugin for seamless WebAssembly integration and support `wasm-pack` generated modules.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -48,4 +48,9 @@ init({
|
|
|
48
48
|
});
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
You can also directly import WASM packages like ESM modules without using the `?init` query:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import { someFunc } from 'wasm-project';
|
|
55
|
+
someFunc(); // Run this wasm function
|
|
56
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farmfe/plugin-wasm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "scripts/index.js",
|
|
5
5
|
"types": "scripts/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"options.d.ts"
|
|
38
38
|
],
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@farmfe/plugin-wasm-darwin-arm64": "0.0.
|
|
41
|
-
"@farmfe/plugin-wasm-darwin-x64": "0.0.
|
|
42
|
-
"@farmfe/plugin-wasm-linux-arm64-gnu": "0.0.
|
|
43
|
-
"@farmfe/plugin-wasm-linux-arm64-musl": "0.0.
|
|
44
|
-
"@farmfe/plugin-wasm-linux-x64-gnu": "0.0.
|
|
45
|
-
"@farmfe/plugin-wasm-linux-x64-musl": "0.0.
|
|
46
|
-
"@farmfe/plugin-wasm-win32-arm64-msvc": "0.0.
|
|
47
|
-
"@farmfe/plugin-wasm-win32-ia32-msvc": "0.0.
|
|
48
|
-
"@farmfe/plugin-wasm-win32-x64-msvc": "0.0.
|
|
40
|
+
"@farmfe/plugin-wasm-darwin-arm64": "0.0.8",
|
|
41
|
+
"@farmfe/plugin-wasm-darwin-x64": "0.0.8",
|
|
42
|
+
"@farmfe/plugin-wasm-linux-arm64-gnu": "0.0.8",
|
|
43
|
+
"@farmfe/plugin-wasm-linux-arm64-musl": "0.0.8",
|
|
44
|
+
"@farmfe/plugin-wasm-linux-x64-gnu": "0.0.8",
|
|
45
|
+
"@farmfe/plugin-wasm-linux-x64-musl": "0.0.8",
|
|
46
|
+
"@farmfe/plugin-wasm-win32-arm64-msvc": "0.0.8",
|
|
47
|
+
"@farmfe/plugin-wasm-win32-ia32-msvc": "0.0.8",
|
|
48
|
+
"@farmfe/plugin-wasm-win32-x64-msvc": "0.0.8"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "cargo watch -w src -s 'scripts/watch.sh'",
|