@@ -36,10 +36,10 @@ export async function watchCompile(
36
36
if (
37
37
! disableBabel &&
38
38
isMatch ( output , [ '**/*.[jt]s?(x)' ] ) &&
39
- ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , '**/*.d.ts' ] )
39
+ ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , '**/*.d.ts' , '**/tsconfig.json' ] )
40
40
) {
41
41
transform ( filepath , { entryDir, esm, ...other } ) ;
42
- } else if ( ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , 'tsconfig.json' , '**/*.d.ts' ] ) ) {
42
+ } else if ( ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , '**/ tsconfig.json' , '**/*.d.ts' ] ) ) {
43
43
const result = ts . sys . readFile ( filepath ) ;
44
44
outputFiles ( output , result ) ;
45
45
}
@@ -52,13 +52,12 @@ export async function watchCompile(
52
52
! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , '**/*.d.ts' ] )
53
53
) {
54
54
transform ( filepath , { entryDir, cjs, ...other } ) ;
55
- } else if ( ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , 'tsconfig.json' , '**/*.d.ts' ] ) ) {
55
+ } else if ( ! isMatch ( output , [ '**/?(*.)+(spec|test).[jt]s?(x)' , '**/ tsconfig.json' , '**/*.d.ts' ] ) ) {
56
56
const result = ts . sys . readFile ( filepath ) ;
57
57
outputFiles ( output , result ) ;
58
58
}
59
59
}
60
60
} ) ;
61
- // if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
62
61
if ( ( tsOptions . noEmit && disableBabel ) || ( tsOptions . noEmit && ! disableBabel ) ) {
63
62
return ;
64
63
}
0 commit comments