#TS to CommonJS?
1 messages · Page 1 of 1 (latest)
The docs say: “Currently the bundler only supports one module format: "esm". Support for "cjs" and "iife" are planned.” https://bun.sh/docs/bundler#format
This is planned
May I ask the planned date of this?
Not particularly soon
Most people who use Bun's bundler will also use the Bun runtime
And because Bun supports ESM there aren't many reasons to target CommonJS
I see. In my case I'm using bun to build and publish npm sdks with cjs+esm support for others to use. Currently I have to stick with esbuild because of this.