There are no means of setting the esbuild
format to ESM
#3102
Labels
enhancement
New feature or request
esbuild
format to ESM
#3102
When building a TypeScript App to bundle with the Bundler, things like top-level await need bundled differently.
esbuild
provides this control via the--format=esm
flag: https://esbuild.github.io/api/#formatThere's not even a clean escape hatch that doesn't completely blow away the build tasks. (There's no means of adding to a task command, AFAICT, and I'm not sure I'd really want to do that anyway, as it seems terribly fragile.)
This is simple to add, and I'll have a PR for it ready soon.
The text was updated successfully, but these errors were encountered: