After several days of searching, I believe [microbundle][1] effortlessly achieves this. Below is my build command:
                        
                        
                        
                            "scripts": {
                        
                                "build": "microbundle build --globals react=React,react-dom=ReactDOM --jsx cloneElement,createContext,isValidElement,useContext,useReducer --jsxFragment Fragment --jsxImportSource react",
                        
                                "dev": "microbundle watch"
                        
                              },
                        
                        
                        
                        
                        
                          [1]: https://github.com/developit/microbundle
                        
                
             
            
                
                    
                        I searched for several days to find the best solution. In my opinion, [microbundle][1] accomplishes this very easily. My build command is as follows:
                        
                        
                        
                            "scripts": {
                        
                                "build": "microbundle build --globals react=React,react-dom=ReactDOM --jsx cloneElement,createContext,isValidElement,useContext,useReducer --jsxFragment Fragment --jsxImportSource react",
                        
                                "dev": "microbundle watch"
                        
                              },
                        
                        
                        
                        
                        
                          [1]: https://github.com/developit/microbundle