Skip to content

Commit 98fe85b

Browse files
authored
Merge pull request wasmerio#414 from wasmerio/fix/update-ffmpeg-example
Update Vite config, use the bundled SDK for FFMPEG example
2 parents 9788ab3 + f9188e5 commit 98fe85b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/ffmpeg-react/src/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function WasmerSdk(props?: WasmerSdkProps) {
3030
if (typeof pending == "undefined") {
3131
pending = (async function () {
3232
console.log("Importing @wasmer/sdk");
33-
const imported = await import("@wasmer/sdk");
33+
const imported = await import("@wasmer/sdk/dist/WasmerSDKBundled");
3434
console.log("Imported @wasmer/sdk");
3535
await imported.init(props?.wasm);
3636
imported.initializeLogger(props?.log);

examples/ffmpeg-react/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ export default defineConfig({
99
"Cross-Origin-Opener-Policy": "same-origin",
1010
"Cross-Origin-Embedder-Policy": "require-corp",
1111
},
12+
fs: {
13+
allow: ['../..']
14+
}
1215
},
1316
});

0 commit comments

Comments
 (0)