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

Source Map is inorrect when enable extractComments.banner of terser-webpack-plugin #17899

Closed
kerm1it opened this issue Dec 25, 2023 · 2 comments

Comments

@kerm1it
Copy link

kerm1it commented Dec 25, 2023

Bug report

webpack-terser-bug

What is the current behavior?

When my project using json file and use-sync-external-store@1.2.0, the source map is incorrect:

incorrect

Find a.json is mapped to use-sync-external-store incorrectly.

What is the expected behavior?

When disable extractComments options of terser-webpack-plugin,the behavior is correct.

correct

a.json is no-source, this is expected.

Other relevant information:
webpack version: 5.89.0
Node.js version: v18.18.0
Operating System: MacOS m2

@kerm1it
Copy link
Author

kerm1it commented Jan 5, 2024

any update ?

@alexander-akait
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants