Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Jul 29, 2020
1 parent cfc8ce7 commit 18b517f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 18b517f

Please sign in to comment.