Search code examples
javascriptreactjscreate-react-appbun

What is the build command for react app created with bun js?


Installed bun version is

bun -v 
0.1.2

I created a react app with the following command

bun create react my-bun-app

To run it I am using the following command

cd my-bun-app
bun dev

Now I want to know what is the build command for building the react app?


Solution

  • To build a React app with bun, you need to install react-scripts. You can do that with bun a react-scripts. Then just run bun react-scripts build.