For some reason the bundle name is generated using doubles .min example:
v-click-outside.min.min.umd.js and v-click-outside.min.min.umd.js.map
npm script: microbundle --entry lib/index.js --target browser --format umd --name v-click-outside
@ndelvalle what does your package.json look like? (in particular, any main fields like umd:main).
Yep:
"main": "dist/v-click-outside.min.umd.js",
"umd:main": "dist/v-click-outside.min.umd.js",
You can take a look here
Thanks for the help! 馃憤
Does it work if you remove the --name CLI argument?
Nop :(
Where does the build output name come from? I changed the package name, files name etc and the output is always de same.
Yup, same here. --name doesn't change output name.
$ foobar\node_modules\.bin\microbundle --entry src/index.tsx --output dist --target browser --format es --name barfoo
Build "barfoo" to dist:
802 B: foobar.mjs
Done in 3.02s.
Sometimes it gets worse, not sure if it is something related to my setup

@ndelvalle oh, man... seems you need to manualy review dist/ output, cause files in current release @next/@2.1.0-0 has double .min extension and cannot be resolved with simple:
import vClickOutside from 'v-click-outside'
Yeah @LordotU I'm still fighting with this issue :( A new release was deployed [email protected]
@ndelvalle I think, it is not your fight. :-) The Devil, I guess, somewhere here: between https://github.com/developit/microbundle/blob/f6ebebb1f81dfec9367e65f1448e5aba5777bcbc/src/index.js#L387 and https://github.com/developit/microbundle/blob/f6ebebb1f81dfec9367e65f1448e5aba5777bcbc/src/index.js#L410