@tgrv/void-math 1.0.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/index.js +12 -0
- package/package.json +12 -0
- package/plugin.wasm +0 -0
package/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { runtime } from "@tgrv/void-runtime";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { dirname, join } from "path";
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const plugin = await runtime.load(
|
|
9
|
+
join(__dirname, "plugin.wasm")
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export default plugin;
|
package/package.json
ADDED
package/plugin.wasm
ADDED
|
Binary file
|