Skip to content

Commit 15cc32c

Browse files
committed
Ditch fs.readFile since parseTsconfig already throws when something is wrong with the file
1 parent 28b7598 commit 15cc32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EsbuildPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class EsbuildPlugin implements Plugin {
6363
this.logger = logger;
6464
if (this.esbuildConfig.tsconfig) {
6565
const parsedTsconfig = await parseTsconfig(this.esbuildConfig.tsconfig);
66-
this.tsconfigRaw = parsedTsconfig ? JSON.stringify(parsedTsconfig) : await promisify(fs.readFile)(this.esbuildConfig.tsconfig, 'utf8');
66+
this.tsconfigRaw = JSON.stringify(parsedTsconfig);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)