Skip to content

Commit 591a9c0

Browse files
committed
Make dev server load wasm properly
1 parent 633fc07 commit 591a9c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/converter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState } from "react";
22

33
import init, { convert } from "@libresplit/libresplit-converter";
4+
import wasmUrl from "@libresplit/libresplit-converter/libresplit_converter_bg.wasm?url";
45

56
export function Converter() {
67
const [selectedFile, setSelectedFile] = useState<File | null>(null);
@@ -20,7 +21,7 @@ export function Converter() {
2021
try {
2122
const text = await selectedFile.text();
2223

23-
await init();
24+
await init(wasmUrl);
2425

2526
const converted = convert(text);
2627

0 commit comments

Comments
 (0)