web-extension-starter
web-extension-starter copied to clipboard
Migration to ESBuild from Babel
I'm using the React + TypeScript branch and using React in ContentScript, When I make any change in the react files it takes about 40 seconds until I can see the change in the browser and the page reloaded. How to make it faster as 40 seconds is too much?
It doesnt really take 40seconds on my machine.
But I will consider migrating to esbuild from babel.
Will keep this issue open for now.
This is do-able but the problem could be with support for old browsers(as I am not sure if ESBuild is somewhat flexible to Babel's browser version specific bundles) So this could mean dropping support for older browsers.
Currently the manifest v3 upgrade might need to drop support for old browsers ( Chrome < 88 ). If that is the case, I will surely consider doing this too. For now I think Keeping Babel is fine. But if anyone needs it be be switched with Esbuild, there is a webpack loader for that, feel free to use it.