Skip to content

Commit 19d578d

Browse files
hanslfilipesilva
authored andcommitted
build(typescript): path mapping now includes checking without an extension (#875)
1 parent d0dbd70 commit 19d578d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/broccoli/broccoli-typescript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ class CustomLanguageServiceHost {
391391
resolveModuleNames(moduleNames, containingFile)/*: ResolvedModule[]*/ {
392392
return moduleNames.map((moduleName) => {
393393
let shouldResolveUsingDefaultMethod = false;
394-
for (const ext of ['ts', 'd.ts']) {
395-
const name = `${moduleName}.${ext}`;
394+
for (const ext of ['', '.ts', '.d.ts']) {
395+
const name = `${moduleName}${ext}`;
396396
const maybeModule = this._resolveModulePathWithMapping(name, containingFile);
397397
if (typeof maybeModule == 'string') {
398398
return {

0 commit comments

Comments
 (0)