Skip to content

Commit

Permalink
fix(bindgen): Filter wasm binaries generated from library targets
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Aug 10, 2023
1 parent 65c02a9 commit 6308d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/itk-wasm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ function bindgen(options) {
}

// Building for emscripten can generate duplicate .umd.wasm and .wasm binaries
let filteredWasmBinaries = wasmBinaries.filter(binary => !binary.endsWith('.umd.wasm'))
// Also filter libraries.
let filteredWasmBinaries = wasmBinaries.filter(binary => !binary.endsWith('.umd.wasm') && !path.basename(binary).startsWith('lib'))
console.log(filteredWasmBinaries)

switch (iface) {
case 'typescript':
Expand Down

0 comments on commit 6308d28

Please sign in to comment.