Skip to content

Commit

Permalink
Merge pull request wasmerio#414 from wasmerio/fix/update-ffmpeg-example
Browse files Browse the repository at this point in the history
Update Vite config, use the bundled SDK for FFMPEG example
  • Loading branch information
Arshia001 authored Jan 25, 2024
2 parents 9788ab3 + f9188e5 commit 98fe85b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ffmpeg-react/src/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function WasmerSdk(props?: WasmerSdkProps) {
if (typeof pending == "undefined") {
pending = (async function () {
console.log("Importing @wasmer/sdk");
const imported = await import("@wasmer/sdk");
const imported = await import("@wasmer/sdk/dist/WasmerSDKBundled");
console.log("Imported @wasmer/sdk");
await imported.init(props?.wasm);
imported.initializeLogger(props?.log);
Expand Down
3 changes: 3 additions & 0 deletions examples/ffmpeg-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ export default defineConfig({
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp",
},
fs: {
allow: ['../..']
}
},
});

0 comments on commit 98fe85b

Please sign in to comment.