Skip to content

Commit 6aae378

Browse files
committed
perf(buildReport): exclude node_modules from watch list
1 parent 9152dfc commit 6aae378

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/plugins/buildReporter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default function buildReporterPlugin(): Plugin<BuildReporterApi> {
1212
buildEnd() {
1313
const allModuleIds = Array.from(this.getModuleIds())
1414
const sourceFiles = allModuleIds.filter(id => {
15+
if (id.includes('node_modules')) {
16+
return false
17+
}
1518
const info = this.getModuleInfo(id)
1619
return info && !info.isExternal
1720
})

0 commit comments

Comments
 (0)