It's been two years since I wrote an article about how to bundle phaser projects using parcel. Eventually I needed to find a solution that fit my needs better and ended up trying all the big players in bundling right now. After a couple of weeks with sticking to esbuild, here's a final write up on my current workflow, that reliably works for every new project I work on.
Setting up the project
Skip this part if you're familiar with how to set up a basic project in your IDE and continue with Adding esbuild
The Basics
Using mkdir create an empty folder - but don't worry, you can simply create a folder as you normally would with your system.
After opening this folder with our IDE, initialize a new project.…