Skip to content

Conversation

@finnbear
Copy link

@finnbear finnbear commented Dec 8, 2025

Top-level await in a module is a compatibility bottle-neck for my app:
image
image

With this PR, for example, I can run my app in Chrome 87 on my 2015 Macbook. Without this PR, I get a syntax error on that device. In general, this PR helps with browsers older than early 2021.

Alternatives

Trunk could respect the WasmBindgenTarget::NoModules configuration option when generating HTML.

@ctron
Copy link
Collaborator

ctron commented Dec 9, 2025

I can understand the idea. But I'd expect all those browsers to be EOL. Even with extended support. And I don't feel like we could ever test that.

@finnbear
Copy link
Author

finnbear commented Dec 9, 2025

Ok, thanks, no problem.

@finnbear finnbear closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants