Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Support for top-level await #10

@PaulLeCam

Description

@PaulLeCam

Hey, thanks for this project, it looks like a great way to bring nice Deno code to the browser!

Is your feature request related to a problem? Please describe.

I'd like to use denopack to bundle any deno std library not using the Deno APIs.

I tried bundling a project but it fails with Uncaught Error: Terser is not supposed to return nothing!.
I narrowed down the problem to having export { createHash } from 'https://deno.land/std@0.65.0/hash/mod.ts' in my deps.ts file and my assumption, comparing with other imports from std that can get compiled correctly, is that it's because the std/hash module uses WASM imports.

Describe the solution you'd like

Rollup has a WASM plugin that would be great to support in denopack, either as a plugin or in core.
Alternatively, if there is an easy way to convert/wrap existing Rollup plugins to denopack ones it could be a good option.

Describe alternatives you've considered

Using deno bundle + minifier

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions