johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.58k stars 207 forks source link

Remove Webpack in favour of esbuild #833

Closed johnbillion closed 9 months ago

johnbillion commented 9 months ago

This removes Webpack in favour of esbuild. Even with the small number of files that Query Monitor uses for its new front end rendering feature, Webpack is taking several seconds to generate the build. Its configuration is never much fun either.

This PR switches us to esbuild which is exceptionally fast and supports TypeScript and convenience features such as minification out of the box.

I might yet switch to Vite which I've been enjoying using on some hack projects but I need to figure out how it can be used without an index.html entrypoint.