chore: remove console log

pull/1213/head
Evan You 3 years ago
parent 8a2d4f39e4
commit 8b6aef7844

@ -1,5 +1,3 @@
// TODO figure out why it causes full page reload
import { Plugin, ViteDevServer, loadConfigFromFile, normalizePath } from 'vite'
import { dirname, resolve } from 'path'
import { isMatch } from 'micromatch'
@ -113,9 +111,6 @@ export const staticDataPlugin: Plugin = {
// invalidate loader file
delete idToLoaderModulesMap[id]
}
if (pattern) {
console.log(pattern, isMatch(ctx.file, pattern))
}
if (isLoaderFile || (pattern && isMatch(ctx.file, pattern))) {
ctx.modules.push(server.moduleGraph.getModuleById(id)!)
}

Loading…
Cancel
Save