Source Map is inorrect when enable extractComments.banner of terser-webpack-plugin
kerm1it opened this issue · 4 comments
kerm1it commented
Bug report
What is the current behavior?
When my project using json file and use-sync-external-store@1.2.0
, 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
alexander-akait commented
I will look soon at this
kerm1it commented
Thanks
kerm1it commented
any progress?
alexander-akait commented
Still in my TODO, a lot of issue, if you have a time feel free to investigate and send a PR