We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 633fc07 commit 591a9c0Copy full SHA for 591a9c0
src/app/converter.tsx
@@ -1,6 +1,7 @@
1
import React, { useState } from "react";
2
3
import init, { convert } from "@libresplit/libresplit-converter";
4
+import wasmUrl from "@libresplit/libresplit-converter/libresplit_converter_bg.wasm?url";
5
6
export function Converter() {
7
const [selectedFile, setSelectedFile] = useState<File | null>(null);
@@ -20,7 +21,7 @@ export function Converter() {
20
21
try {
22
const text = await selectedFile.text();
23
- await init();
24
+ await init(wasmUrl);
25
26
const converted = convert(text);
27
0 commit comments