We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21e20e commit 9812508Copy full SHA for 9812508
rescript
@@ -31,6 +31,7 @@ process.env.BSB_PROJECT_ROOT = cwd;
31
// If the project uses gentype and uses custom file extension
32
// via generatedFileExtension, ignore them in watch mode
33
var bsConfigFile = path.join(cwd, bsconfig);
34
+var genTypeFileExtension = undefined;
35
36
if (fs.existsSync(bsConfigFile)) {
37
var genTypeConfig = require(bsConfigFile).gentypeconfig
@@ -417,7 +418,7 @@ if (
417
418
fileName.endsWith(".mjs") ||
419
fileName.endsWith(".cjs") ||
420
fileName.endsWith(".gen.tsx") ||
- fileName.endsWith(genTypeFileExtension) ||
421
+ (genTypeFileExtension && fileName.endsWith(genTypeFileExtension)) ||
422
watch_generated.indexOf(fileName) >= 0 ||
423
fileName.endsWith(".swp")
424
);
0 commit comments