We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcdc934 + a3890cb commit cf6d610Copy full SHA for cf6d610
1 file changed
lib/compiler/swc/swc-compiler.ts
@@ -276,11 +276,11 @@ export class SwcCompiler extends BaseCompiler {
276
// or any other specified directory
277
return;
278
}
279
- const extensions = options.cliOptions?.extensions ?? ['ts'];
+ const extensions = options.cliOptions?.extensions ?? ['.ts'];
280
const watcher = chokidar.watch(srcDir, {
281
ignored: (file, stats) =>
282
(stats?.isFile() &&
283
- extensions.includes(path.extname(file).slice(1))) as boolean,
+ !extensions.some((ext) => file.endsWith(ext))) as boolean,
284
ignoreInitial: true,
285
awaitWriteFinish: {
286
stabilityThreshold: 50,
0 commit comments