Bun v0.0.34
Jarred-Sumner
released this
07 Oct 02:57
·
10806 commits
to main
since this release
Features
Slightly better tsconfig.json
handling:
jsxImportSource
support – if you setjsxImportSource
to"@emotion/react"
, JSX will auto-import from"@emotion/react/jsx-dev-runtime"
instead of"react/jsx-dev-runtime"
jsxFragmentFactory
support – this lets you override what<>
transforms into. By default it's"Fragment"
, since<>
becomesReact.Fragment
normally.jsxFactory
support – if you setjsxFactory
to"h"
, when using the classic JSX runtime, it will runh
instead ofcreateElement
This makes it easier to use @emotion/react
, preact
, and other JSX runtimes with Bun.
Bug fixes
- [fetch] Fix bug with HTTP request bodies for http (not https) requests
- Fix JSX transform edgecase with static children to match Babel's behavior (static ===
children.length > 1
) - Fix node_module resolver edgecase when resolving from the dev server (not
bun bun
) that happened when resolving workspace packages above the project root that expect dependencies from the project. This applied to pnpm
Other:
- Add a small end-to-end test for emotion JSX
- Add a small end-to-end test for React Context.Provider & Context.Consumer
- Add analytics