diff --git a/package.json b/package.json index e9228a729..58dc8a51d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ }, "win": { "publisherName": "Facebook, Inc." - } + }, + "asar": false }, "resolutions": { "@jest-runner/electron/electron": "3.0.0" diff --git a/static/compilePlugins.js b/static/compilePlugins.js index 3303b5c39..8b0f6bcf7 100644 --- a/static/compilePlugins.js +++ b/static/compilePlugins.js @@ -35,9 +35,13 @@ function watchChanges(plugins, reloadCallback, pluginCache) { Object.values(plugins).map(plugin => fs.watch(plugin.rootDir, (eventType, filename) => { - // eslint-disable-next-line no-console - console.log(`🕵️‍ Detected changes in ${plugin.name}`); - compilePlugin(plugin, true, pluginCache).then(reloadCallback); + // only recompile for changes in not hidden files. Watchman might create + // a file called .watchman-cookie + if (!filename.startsWith('.')) { + // eslint-disable-next-line no-console + console.log(`🕵️‍ Detected changes in ${plugin.name}`); + compilePlugin(plugin, true, pluginCache).then(reloadCallback); + } }), ); }