Many libraries published to npm are using some form of source transform like babel or typescript or flow, etc.
So for people to actually consume that module by source they need their own build process to do those same transforms, and then you'd need to have this be selective per every external module because no one build process is going to work for everything.
So generally you consume something that's been compiled and wrapped in UMD
16
u/samjmckenzie Nov 27 '18
Why are minified libraries published onto npm? Is this standard practice?