Skip to content

coverage with tree shaking and minification #13

Open
@rschoenbichler

Description

Hello,

I'm facing an issue where my coverage report is not properly reflecting the actual bundle.
Code which is omitted thanks to tree shaking/minification is showing up as uncovered.

I'm using coverage-istanbul-loader, ts-loader and TerserPlugin for optimization.
devtool is set to source-map and sourceMap is enabled in both tsconfig and terserOptions.

I have been unable to find proper documentation on this topic so far, so any pointers would be appreciated.

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