webpack-contrib/terser-webpack-plugin

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

kerm1it opened this issue · 4 comments

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

I will look soon at this

Thanks

any progress?

Still in my TODO, a lot of issue, if you have a time feel free to investigate and send a PR