Closed OneSeven closed 1 year ago
Vite doesn't support UMD.
Vite doesn't support UMD.
Vite can output umd, but it cannot be used with top-level-await. Is there a solution?
On discord, a user said (in response to an unrelated issue):
It should work, Vite supports UMD libs. Maybe you could create a small repro and file an issue in the repo, it can be an edge case that was not yet discovered
I get a similar error:
[web-extension:manifest] Module format "iife" does not support top-level await. Use the "es" or "system" output formats rather.
Does it also not support iife
? Is there more information to help me debug these errors 🙏
I found can userollup-plugin-tla
to resolve umd format top-level-await support.
I found can use
rollup-plugin-tla
to resolve umd format top-level-await support.
found this by accident, solved my problem. u sexy
Doesn't support UMD output?