Skip to content

Commit 10fa9d4

Browse files
authored
Merge pull request rescript-lang#5008 from bloodyowl/fix-watch-mode-mjs
Don't trigger a rebuild if mjs file changes
2 parents 39bce82 + 86a54cc commit 10fa9d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: bsb

+2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ if (watch_mode) {
310310

311311
return !(fileName === '.merlin' ||
312312
fileName.endsWith('.js') ||
313+
fileName.endsWith('.mjs') ||
314+
fileName.endsWith('.cjs') ||
313315
fileName.endsWith('.gen.tsx') ||
314316
watch_generated.indexOf(fileName) >= 0 ||
315317
fileName.endsWith('.swp')

0 commit comments

Comments
 (0)