James Garbutt and Alex Lichter explain when npm packages should ship source maps, and when they just bloat installs. Publishing them grew the change-case package from 7.2KB to 22.7KB, while dropping them cut magic-string from 241KB to 155KB. Source maps only pay off when the published code is lossy: minified output or compiled syntaxes like Vue SFCs. Ship readable, unminified library code, or host sources remotely with sourceRoot.
Source maps or not?
