Skip to content

Commit

Permalink
Put wasm and bindgen files in ignored /pkg dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jthemphill committed Sep 13, 2023
1 parent ac90713 commit e1b21c9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
6 changes: 1 addition & 5 deletions examples/raytrace-parallel/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
raytrace_parallel.js
raytrace_parallel.d.ts
raytrace_parallel_bg.wasm
raytrace_parallel_bg.wasm.d.ts
snippets
snippets
2 changes: 1 addition & 1 deletion examples/raytrace-parallel/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"raytrace_parallel.wasm",
),
"--out-dir",
root_dir,
os.path.join(root_dir, "pkg"),
"--target",
"no-modules",
],
Expand Down
2 changes: 1 addition & 1 deletion examples/raytrace-parallel/worker.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/wasm-audio-worklet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
snippets
2 changes: 1 addition & 1 deletion examples/wasm-audio-worklet/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"wasm_audio_worklet.wasm",
),
"--out-dir",
root_dir,
os.path.join(root_dir, "pkg"),
"--target",
"web",
"--split-linked-modules",
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm-audio-worklet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
<script type="module">
import init, {web_main} from "./wasm_audio_worklet.js";
import init, {web_main} from "./pkg/wasm_audio_worklet.js";
async function run() {
await init();
web_main();
Expand Down

0 comments on commit e1b21c9

Please sign in to comment.