work around webpack silliness

This commit is contained in:
Rich Harris
2018-05-23 22:05:40 -04:00
parent 6aa3ce4f05
commit 98d0df4320

View File

@@ -201,7 +201,9 @@ class Watcher extends EventEmitter {
client_files
});
watch_serviceworker();
// we need to wait a beat before watching the service
// worker, because of some webpack nonsense
setTimeout(watch_serviceworker, 100);
}
});