Microbundle: Wrong build name (Double .min)

Created on 27 Aug 2018  路  9Comments  路  Source: developit/microbundle

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

question

All 9 comments

@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

screen shot 2018-12-07 at 16 40 58

@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]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aaronjensen picture aaronjensen  路  16Comments

pascalduez picture pascalduez  路  12Comments

wcastand picture wcastand  路  16Comments

Andarist picture Andarist  路  33Comments

peter-mouland picture peter-mouland  路  12Comments