developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8k stars 361 forks source link

How to set file names for chunk bundles #1013

Open jalagari opened 1 year ago

jalagari commented 1 year ago

Chunk file is suffixed with random string. Is it possible to set fixed file name for chunk files?

> microbundle --format=esm

Build "foo" to dist:
         67 B: foo.esm.js.gz
         51 B: foo.esm.js.br
      12.3 kB: index-5d50c813.js.gz
      10.9 kB: index-5d50c813.js.br
      26.4 kB: core-9b3f477a.js.gz
      23.3 kB: core-9b3f477a.js.br
rschristian commented 1 year ago

I don't believe that's possible now, no.