You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: missing sourcesContent entries are emitted as "" instead of null #16347
When another source in the same chunk map has text, Rspack writes "" for the missing entry, and webpack writes null:
rspack: sourcesContent for b.js = ""
webpack: sourcesContent for b.js = null
Chrome DevTools uses any non-null entry as the file's text (CompilerScriptMapping.ts), so it shows b.js as an empty file. With null, it fetches the source URL instead. So on Rspack, a loader can't leave the text out and let DevTools load the file from the server.
Activity