Skip to content

Commit c9a8ff8

Browse files
committed
switching file writing back to a synchronous task seems to resolve hangs on watches
pretty sure this closes #439
1 parent 9caf5ff commit c9a8ff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/ui_builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ var ui_builder = function () {
6969
*/
7070
function writeFile(filePath, data, callback) {
7171
if (callback) {
72-
fs.outputFile(filePath, data, callback);
72+
fs.outputFileSync(filePath, data, callback);
7373
} else {
74-
fs.outputFile(filePath, data);
74+
fs.outputFileSync(filePath, data);
7575
}
7676
}
7777

0 commit comments

Comments
 (0)