diff --git a/examples/raytrace-parallel/.gitignore b/examples/raytrace-parallel/.gitignore index 8575922580c2..a7d8e0acefdd 100644 --- a/examples/raytrace-parallel/.gitignore +++ b/examples/raytrace-parallel/.gitignore @@ -1,5 +1 @@ -raytrace_parallel.js -raytrace_parallel.d.ts -raytrace_parallel_bg.wasm -raytrace_parallel_bg.wasm.d.ts -snippets \ No newline at end of file +snippets diff --git a/examples/raytrace-parallel/build.py b/examples/raytrace-parallel/build.py index efbdf8ede657..0e14f4907112 100755 --- a/examples/raytrace-parallel/build.py +++ b/examples/raytrace-parallel/build.py @@ -49,7 +49,7 @@ "raytrace_parallel.wasm", ), "--out-dir", - root_dir, + os.path.join(root_dir, "pkg"), "--target", "no-modules", ], diff --git a/examples/raytrace-parallel/index.html b/examples/raytrace-parallel/index.html index bc9cae70616c..d914c00a1fa3 100644 --- a/examples/raytrace-parallel/index.html +++ b/examples/raytrace-parallel/index.html @@ -1,22 +1,22 @@ - - - - - - - -
-

Concurrency: 1

-
- -
-
- Render duration: -

-
+ +
+

Concurrency: 1

+
+ +
+
+ Render duration: +

+
- + - - - - + + + + diff --git a/examples/raytrace-parallel/worker.js b/examples/raytrace-parallel/worker.js index 26d40c62dea7..2c5863316bf4 100644 --- a/examples/raytrace-parallel/worker.js +++ b/examples/raytrace-parallel/worker.js @@ -1,5 +1,5 @@ // synchronously, using the browser, import out shim JS scripts -importScripts('raytrace_parallel.js'); +importScripts('pkg/raytrace_parallel.js'); // Wait for the main thread to send us the shared module/memory. Once we've got // it, initialize it all with the `wasm_bindgen` global we imported via diff --git a/examples/wasm-audio-worklet/.gitignore b/examples/wasm-audio-worklet/.gitignore new file mode 100644 index 000000000000..a7d8e0acefdd --- /dev/null +++ b/examples/wasm-audio-worklet/.gitignore @@ -0,0 +1 @@ +snippets diff --git a/examples/wasm-audio-worklet/build.py b/examples/wasm-audio-worklet/build.py index d1678b5d9e36..e2e53d165961 100644 --- a/examples/wasm-audio-worklet/build.py +++ b/examples/wasm-audio-worklet/build.py @@ -49,7 +49,7 @@ "wasm_audio_worklet.wasm", ), "--out-dir", - root_dir, + os.path.join(root_dir, "pkg"), "--target", "web", "--split-linked-modules", diff --git a/examples/wasm-audio-worklet/index.html b/examples/wasm-audio-worklet/index.html index 9cb5882cbd77..0f4eaa169337 100644 --- a/examples/wasm-audio-worklet/index.html +++ b/examples/wasm-audio-worklet/index.html @@ -5,7 +5,7 @@