Build UMD if name was specified#173
Conversation
|
I feel like this is a magical side effect? Would it be better to throw an error saying that the name is irrelevant unless you specify --format=umd? |
|
The worst thing that happens is that you get extra umd build which means slightly longer build time. Is it that bad side effect all considered? Throwing error feels like an annoyance to a user with no usefulness. He kinda has to double confirm that he really wants that UMD format :) Besides, currently, the I can tweak documentation to mention that behavior if you like. It was just an idea so I did not spend too much time with it. |
|
Closing. I just think this is too magical for my taste. |
Just a quick idea. I think it makes sense if a name was explicitly specified to have UMD build by default as well.
The issue for a reference: JustFly1984/react-google-maps-api#197