Bundling Chrome Extensions can be pretty complex. It doesn't have to be.
A Chrome Extensions boilerplate using React 18 and Webpack 5.
Boilerplate for Chrome Extension React.js project
🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine...