src/clean-webpack-plugin.ts
changed.
Showing 1 of 1 files from the diff.
@@ -1,6 +1,6 @@
Loading
1 | 1 | import { sync as delSync } from 'del'; |
|
2 | 2 | import path from 'path'; |
|
3 | - | import { AssetInfo, Compilation, Compiler, Stats } from 'webpack'; |
|
3 | + | import { Compilation, Compiler, Stats } from 'webpack'; |
|
4 | 4 | ||
5 | 5 | export interface Options { |
|
6 | 6 | /** |
@@ -238,17 +238,19 @@
Loading
238 | 238 | /** |
|
239 | 239 | * Fetch Webpack's output asset files |
|
240 | 240 | */ |
|
241 | - | const assets: AssetInfo[] = |
|
241 | + | const assets = |
|
242 | 242 | stats.toJson({ |
|
243 | 243 | assets: true, |
|
244 | 244 | }).assets || []; |
|
245 | 245 | ||
246 | 246 | const relatedAssets = assets |
|
247 | 247 | .map((asset) => { |
|
248 | - | return ((asset.related && |
|
249 | - | Array.isArray(asset.related) && |
|
250 | - | asset.related) || |
|
251 | - | []) as AssetInfo[]; |
|
248 | + | return ( |
|
249 | + | (asset.related && |
|
250 | + | Array.isArray(asset.related) && |
|
251 | + | asset.related) || |
|
252 | + | [] |
|
253 | + | ); |
|
252 | 254 | }) |
|
253 | 255 | .reduce((previousAssets, currentAssets) => { |
|
254 | 256 | return [...previousAssets, ...currentAssets]; |
Files | Coverage |
---|---|
src/clean-webpack-plugin.ts | 98.81% |
Project Totals (1 files) | 98.81% |
l80625pj6xmgmrm9
l80625pj6xmgmrm9
03yskdewg8fk0fge
03yskdewg8fk0fge
03yskdewg8fk0fge
l80625pj6xmgmrm9
223.0
225.0
223.0
224.0
223.0
224.0
224.0
225.0
9fjh6aolsadsk3lj
9fjh6aolsadsk3lj
foa3h4gbvlyxfsr7
9fjh6aolsadsk3lj
foa3h4gbvlyxfsr7
foa3h4gbvlyxfsr7
pr5itxn9sc56anvh
pr5itxn9sc56anvh
l0vbn7wattjqqho9
pr5itxn9sc56anvh
l0vbn7wattjqqho9
l0vbn7wattjqqho9
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.