Skip to content

Commit 9ff2f7e

Browse files
authored
fix: force TypeScript to use the non-polling file and directory watchers (#46)
Fixes: #32
1 parent 7e89020 commit 9ff2f7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/// <reference path="../typings/promise.d.ts" />
88
/// <reference path="../node_modules/@types/node/index.d.ts" />
99

10+
// Force TypeScript to use the non-polling version of the file watchers.
11+
process.env["TSC_NONPOLLING_WATCHER"] = true;
12+
1013
import * as ng from '@angular/language-service';
1114

1215
import 'reflect-metadata';

0 commit comments

Comments
 (0)