c8 7.11.2 → 7.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/report.js +2 -1
- package/package.json +1 -1
package/lib/report.js
CHANGED
|
@@ -190,12 +190,13 @@ class Report {
|
|
|
190
190
|
result: emptyReports
|
|
191
191
|
})
|
|
192
192
|
const workingDirs = this.src
|
|
193
|
+
const { extension } = this.exclude
|
|
193
194
|
for (const workingDir of workingDirs) {
|
|
194
195
|
this.exclude.globSync(workingDir).forEach((f) => {
|
|
195
196
|
const fullPath = resolve(workingDir, f)
|
|
196
197
|
if (!fileIndex.has(fullPath)) {
|
|
197
198
|
const ext = extname(fullPath)
|
|
198
|
-
if (
|
|
199
|
+
if (extension.includes(ext)) {
|
|
199
200
|
const stat = statSync(fullPath)
|
|
200
201
|
const sourceMap = getSourceMapFromFile(fullPath)
|
|
201
202
|
if (sourceMap) {
|