microbundle icon indicating copy to clipboard operation
microbundle copied to clipboard

IIFE uses the same name format as CJS?

Open mynthon opened this issue 3 years ago • 1 comments

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

mynthon avatar Sep 08 '22 17:09 mynthon

I also just stumbled upon this issue. Would be nice to learn how to resolve this.

hirasso avatar Dec 20 '24 14:12 hirasso