terser-webpack-plugin icon indicating copy to clipboard operation
terser-webpack-plugin copied to clipboard

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

Open kerm1it opened this issue 1 year ago • 4 comments

Bug report

webpack-terser-bug

What is the current behavior?

When my project using json file and [email protected], 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 avatar Jan 10 '24 07:01 kerm1it

I will look soon at this

alexander-akait avatar Jan 10 '24 11:01 alexander-akait

Thanks

kerm1it avatar Jan 10 '24 11:01 kerm1it

any progress?

kerm1it avatar Jan 22 '24 02:01 kerm1it

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

alexander-akait avatar Jan 22 '24 12:01 alexander-akait