Skip to content

Commit df9ce6f

Browse files
committed
Add firefox support in the wasm-audio-worklet example
1 parent 9448e3e commit df9ce6f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/wasm-audio-worklet/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ cargo run -p wasm-bindgen-cli -- \
1919
../../target/wasm32-unknown-unknown/release/wasm_audio_worklet.wasm \
2020
--out-dir . \
2121
--target web
22+
23+
find snippets -type f -exec grep -q '//!bundle$' {} \; -exec npx rollup -i {} -o {} \;

examples/wasm-audio-worklet/src/worklet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//!bundle
2+
13
import './polyfill.js';
24
import * as bindgen from '$wbg_main';
35

0 commit comments

Comments
 (0)