mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-11-10 06:24:33 +08:00
perf(buildReport): exclude node_modules from watch list
This commit is contained in:
parent
9152dfc943
commit
6aae37833e
@ -12,6 +12,9 @@ export default function buildReporterPlugin(): Plugin<BuildReporterApi> {
|
||||
buildEnd() {
|
||||
const allModuleIds = Array.from(this.getModuleIds())
|
||||
const sourceFiles = allModuleIds.filter(id => {
|
||||
if (id.includes('node_modules')) {
|
||||
return false
|
||||
}
|
||||
const info = this.getModuleInfo(id)
|
||||
return info && !info.isExternal
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user