developit / microbundle

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

IIFE uses the same name format as CJS? #998

Open mynthon opened 1 year ago

mynthon commented 1 year ago

When exporting IIFE format, name of the output file is the same as for CJS format so CJS is overwritten

> microbundle --format cjs,iife --name mynth_test

Build "test" to dist:
        567 B: test.cjs.gz
        437 B: test.cjs.br
        573 B: test.cjs.gz
        442 B: test.cjs.br