Skip to content

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

Closed
webpack/webpack-sources
#171
@kerm1it

Description

@kerm1it

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions