terser-webpack-plugin
terser-webpack-plugin copied to clipboard
Source Map is inorrect when enable extractComments.banner of terser-webpack-plugin
Bug report
What is the current behavior?
When my project using json file and [email protected], the source map is 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.
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