Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Debugging in browser with rspack serve shows multiple copies of a source file. #6878

Closed
pushkargupta9807 opened this issue Jun 20, 2024 · 0 comments · Fixed by #6993
Closed
Labels
bug Something isn't working

Comments

@pushkargupta9807
Copy link

pushkargupta9807 commented Jun 20, 2024

System Info

Browser : edge

Details

[Bug]: Debugging in browser with rspack serve shows multiple copies of a source file.
Say a source file is included in 2 different bundles. Then the file tree under the sources tab in the browser while debugging would show 2 copies of the same file each belonging to the different bundle.
image

This confusing to devs. With webpack it shows only 1 copy, as shown below:
image

Please find the repro repo and steps in next section

Reproduce link

https://github.com/pushkargupta9807/rspack-repro-latest

Reproduce Steps

  1. yarn install
  2. for rspack run : yarn dev:rspack
  3. Go to browser Devtools-> Sources tab and observe the multiple copies of the same files as shown in the image above in the details section
  4. for webpack run : yarn dev:webpack
  5. observe only 1 copy of the files are displayed in the file tree under the sources tab.
@pushkargupta9807 pushkargupta9807 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 20, 2024
@xc2 xc2 removed the pending triage The issue/PR is currently untouched. label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants