From e08bf2ad3cbe7fbf8280b4ee9f7cd7ba4c368bc3 Mon Sep 17 00:00:00 2001 From: Brody McKee Date: Tue, 28 Sep 2021 21:50:46 +0300 Subject: [PATCH] Update src/ExportMap.js Co-authored-by: Jordan Harband --- src/ExportMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(