Skip to content

Support React Compiler w/ Bun's built-in bundler #24356

@mnpenner

Description

@mnpenner

What is the problem this feature would solve?

React Compiler recently reached v1.0 (https://react.dev/blog/2025/10/07/react-compiler-1). If Bun aims to replace Vite and other bundlers, it would be nice if it supported most of the same plugins, especially React Compiler.

Thus I am requesting support for React Compiler both with bun build CLI and Bun.build JS API (https://bun.com/docs/bundler).

Please note that this has nothing to do with Next.JS nor Turbopack. If that's your issue, please see the now overrun issue #23554

What is the feature you are proposing to solve the problem?

React Compiler not only provides significant speed improvements, it also changes how we write React code. A lot of stuff doesn't need to be memoized any more, so the way I write components is different depending on if React Compiler is enabled. Thus switching build tools isn't merely reconfiguring the build process, it also trickles down into all the React Components.

What alternatives have you considered?

Use Vite, Webpack, Rollup, or a different bundler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bundlerSomething to do with the bundlerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions