Skip to content

Commit 0520a10

Browse files
committed
Get JS really working
Signed-off-by: Ryan Levick <[email protected]>
1 parent 18e59e0 commit 0520a10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/javascript/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
node_modules/
1+
node_modules/
2+
http.wasm
3+
composed.wasm

examples/javascript/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { componentize } from "@bytecodealliance/componentize-js"
22
import { readFile, writeFile } from "node:fs/promises"
33

44
const { component } = await componentize(
5-
await readFile("app.mjs"),
5+
await readFile("app.mjs", "utf-8"),
66
{
77
witPath: "../wit",
88
worldName: "proxy",

0 commit comments

Comments
 (0)