denoland / denoland/dnt

WASM file not included in dependencies

Open
#365 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.3k
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I'm using a Deno module that has some WASM code included (https://github.com/unyt-org/typescript-transpiler) and after running dnt, `transpiler_bg.wasm` is missing in the `deps` folder.

Working around this issue with

```ts
async postBuild() {
const res = await fetch(
"https://deno.land/x/ts_transpiler@v0.0.2/js/transpiler_bg.wasm",
);
await Deno.writeFile(
"npm/esm/deps/deno.land/x/ts_transpiler@v0.0.2/js/transpiler_bg.wasm",
new Uint8Array(await res.arrayBuffer()),
);
}
```

works just fine, so I'm assuming that this could be a bug in dnt 😅

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.