From 18b517fb64d5f0fdab56a73616569dc8a97e15e2 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Tue, 28 Jul 2020 21:22:43 -0400 Subject: [PATCH] fix --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a2572af78..5f00cb9b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -609,10 +609,9 @@ export function create (rawOptions: CreateOptions = {}): Register { const fixupResolvedModule = (resolvedModule: _ts.ResolvedModule) => { if (!resolvedModule.isExternalLibraryImport) return const resolvedFileNameCanonical = getCanonicalFileName(resolvedModule.resolvedFileName) - if (mustBeEmittedCanonicalFileNames.has(resolvedFileNameCanonical)) { + if (!ignored(resolvedFileNameCanonical)) { resolvedModule.isExternalLibraryImport = false } - // TODO if a file is first allowed to be external, then later require()d, what happens? } const moduleResolutionCache = ts.createModuleResolutionCache(cwd, getCanonicalFileName, config.options)