DEV Community

Discussion on: Authoring a JavaScript library that works everywhere using Rollup

Collapse
 
advename profile image
Lars

Exactly, when bundling files, rollup generates some weird output. Source maps basically "map" the weird output between our original code, and when the weird output throws an error at position XYZ, then the source map will help the browser to display where in your original code the error happened.