This has a few advantages:
- it runs at the generateBundle stage
- it reads files only once, doing all the compression in parallel
- it supports zstd compression
- it uses emitFile, which works in watch mode, instead of writing files
to the disk directly