From 542f8783b8bc505eaaf508135b7c4e535757035c Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Tue, 4 Oct 2022 00:41:19 -0300 Subject: [PATCH] allow js files to import transpiled typescript files. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ef3c79e..6414035 100644 --- a/src/index.ts +++ b/src/index.ts @@ -179,7 +179,7 @@ function resolveTsFilename( ) { const tsPath = resolveTsPath(request); - if (parent && isTsFilePatten.test(parent.filename) && tsPath) { + if (parent && tsPath) { try { return resolveFilename.call( this,