We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16dcecc commit a21e20eCopy full SHA for a21e20e
rescript
@@ -30,9 +30,13 @@ process.env.BSB_PROJECT_ROOT = cwd;
30
31
// If the project uses gentype and uses custom file extension
32
// via generatedFileExtension, ignore them in watch mode
33
-var genTypeConfig = require(path.join(cwd, bsconfig)).gentypeconfig
34
-if (genTypeConfig) {
35
- var genTypeFileExtension = genTypeConfig.generatedFileExtension
+var bsConfigFile = path.join(cwd, bsconfig);
+
+if (fs.existsSync(bsConfigFile)) {
36
+ var genTypeConfig = require(bsConfigFile).gentypeconfig
37
+ if (genTypeConfig) {
38
+ var genTypeFileExtension = genTypeConfig.generatedFileExtension
39
+ }
40
}
41
42
// All clients of type MiniWebSocket
0 commit comments