rspack
rspack copied to clipboard
[Bug]: The source map is not working on Sentry
System Info
System: OS: macOS 15.0 CPU: (10) arm64 Apple M1 Max Memory: 2.03 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node npm: 10.8.3 - ~/.nvm/versions/node/v22.8.0/bin/npm bun: 1.1.27 - /usr/local/bin/bun Browsers: Chrome: 128.0.6613.138 Safari: 18.0
Details
The source maps stopped working on Sentry. After discussing with their team, we identified that the issue was caused by an invalid source map generated by Rspack.
When testing the source map with source-map-explorer or other tools, the following error appeared:
'Your source map refers to generated column 53099 on line 39, but the source only contains 53098 columns on that line. Please verify that you are using the correct source map.'
Approximately 70% of the source map files we tested are working, while 30% have failed.
Reproduce link
No response
Reproduce Steps
https://github.com/cjnoname/rspack-reproduce
npm run s