From c32ae0ef27b22163077ab5bb02b917081d95e366 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 13 Sep 2021 19:45:07 -0400 Subject: [PATCH] Fix missing variable declaration --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f7dff022c..db6b254de 100644 --- a/src/index.js +++ b/src/index.js @@ -126,7 +126,8 @@ function ncc ( } resolvePlugins.push(new TsconfigPathsPlugin(tsconfigPathsOptions)); - if (tsconfig.resultType === "success") { + const tsconfig = tsconfigPaths.loadConfig(); + if (result.resultType === "success") { tsconfigMatchPath = tsconfigPaths.createMatchPath(tsconfig.absoluteBaseUrl, tsconfig.paths); } } catch (e) {}