Null ref exception during build on Windows VM
Summary: https://pxl.cl/STmd Reviewed By: passy Differential Revision: D18883703 fbshipit-source-id: ff4ee954ee253d46683f162f26c0de734c6acbb3
This commit is contained in:
committed by
Facebook Github Bot
parent
0c13943139
commit
f9c89c09ae
@@ -68,7 +68,11 @@ function watchChanges(
|
||||
fs.watch(plugin.rootDir, {recursive: true}, (eventType, filename) => {
|
||||
// only recompile for changes in not hidden files. Watchman might create
|
||||
// a file called .watchman-cookie
|
||||
if (!filename.startsWith('.') && !delayedCompilation[plugin.name]) {
|
||||
if (
|
||||
filename &&
|
||||
!filename.startsWith('.') &&
|
||||
!delayedCompilation[plugin.name]
|
||||
) {
|
||||
delayedCompilation[plugin.name] = setTimeout(() => {
|
||||
delayedCompilation[plugin.name] = null;
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
Reference in New Issue
Block a user