diff --git a/src/ExportMap.js b/src/ExportMap.js index d747d5cb18..d818fa6ca8 100644 --- a/src/ExportMap.js +++ b/src/ExportMap.js @@ -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(