It turns out that I can split my code into chunks very easily by passing a chunk name as the second parameter of PLATFORM.moduleName(). Aurelia and webpack automatically create a chunk out of it. Thanks to this discourse article: