Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm file was always download from the network #311

Closed
Gaubee opened this issue May 28, 2023 · 1 comment · Fixed by #313
Closed

wasm file was always download from the network #311

Gaubee opened this issue May 28, 2023 · 1 comment · Fixed by #313
Labels
enhancement New feature or request

Comments

@Gaubee
Copy link
Contributor

Gaubee commented May 28, 2023

if use import { build } from "https://deno.land/x/dnt/mod.ts";
the wasm file's url will be https://deno.land/x/dnt/lib/pkg/dnt_wasm_bg.wasm.

https://github.com/denoland/dnt/blob/main/lib/pkg/dnt_wasm.generated.js#L635
it will run fetch(wasmUrl), without import from local:

for now I have to download the dnt source code and run it locally to avoid having to download wasm from the network every time I start up. This greatly improves startup efficiency. but I wish there was a better way.

@Gaubee Gaubee changed the title wasm files are always downloaded from the network wasm files are always download from the network May 28, 2023
@Gaubee Gaubee changed the title wasm files are always download from the network wasm file was always download from the network May 28, 2023
@dsherret
Copy link
Member

I need to land denoland/wasmbuild#68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants