Skip to content

Terser breaks ability to debug #1367

@olfek

Description

@olfek

I have this in my webpack config

...
optimization: {
    minimize: true,
    minimizer: [new TerserPlugin(
        {
            terserOptions: {
                sourceMap: {
                    content: 'inline',
                    includeSources: true,
                    url: 'inline'
                }
            }
        })],
},
...

Everything is undefined when stepping over code in the browser.

Switching mangle off makes the problem go away.

Why is this happening? 😕😕😕

When Terser mangles, does it not update the sourcemap with information to de-mangle?

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