coverage-istanbul-loader icon indicating copy to clipboard operation
coverage-istanbul-loader copied to clipboard

coverage with tree shaking and minification

Open rschoenbichler opened this issue 2 years ago • 0 comments

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.

rschoenbichler avatar Feb 07 '23 07:02 rschoenbichler