A source map connects locations in generated code with the original source files. Its .map file stores lookup information so browser errors can point back to source lines instead of bundled output. section 12.4
Debugging a bundled component
Build a component with Rollup’s -m flag, then trigger an error in the generated bundle. The browser can identify the exact line in the original source file, even though the application runs the bundle. section 12.4
Figure 12.4. Source maps show where an error occurred in your source files, even when bundling output.
Use the figure to see how source maps reveal original source locations during bundled-output errors. section 12.4

