Source maps or not? @43081j and @manniL explain when npm packages should ship so...
Web Standards @webstandards_dev@mastodon.social
Source maps or not? @43081j and @manniL explain when npm packages should ship source maps and when they just bloat installs. Publishing them grew the change-case package from 7.2 to 22.7KB, while dropping them cut magic-string from 241 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. #npm