How to get esbuild to export a default module vs IIFE's

Viewed 26

I want it to export this ts entry

with a export default (so I can dynamically import it in browser) not as shown below:

enter image description here

I ran esbuild like so:

"esbuild": "esbuild src/i18n/en.ts --bundle --outfile=dist/i18n/en.js",

1 Answers
Related