Skip to content

Commit

Permalink
Update src/ExportMap.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
mrmckeb and ljharb committed Sep 28, 2021
1 parent 06af427 commit e08bf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExportMap.js
Expand Up @@ -527,7 +527,7 @@ ExportMap.parse = function (path, content, context) {
try {
if (tsConfigInfo.tsConfigPath !== undefined) {
// Projects not using TypeScript won't have `typescript` installed.
if (!ts) (ts = require('typescript'));
if (!ts) { ts = require('typescript'); }

const configFile = ts.readConfigFile(tsConfigInfo.tsConfigPath, ts.sys.readFile);
return ts.parseJsonConfigFileContent(
Expand Down

0 comments on commit e08bf2a

Please sign in to comment.