Optimizing Shopware extension asset builds by replacing Webpack with ESBuild reduced build times from 6 minutes to 7 seconds. The approach uses shopware-cli with ESBuild integration, eliminating the need for Shopware source files and heavy node_modules during CI builds. For Administration builds, enabling ESBuild requires minimal configuration changes. Storefront builds need the shopware-storefront-sdk package for isolated compilation. The solution includes a fast ESBuild-based watcher that starts in under a second compared to 55 seconds for the standard watcher.
Table of contents
Optimizing the current setup #What the Webpack in Administration does #Combining ESBuild with shopware-cli #Sort: