We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0dbd70 commit 19d578dCopy full SHA for 19d578d
lib/broccoli/broccoli-typescript.js
@@ -391,8 +391,8 @@ class CustomLanguageServiceHost {
391
resolveModuleNames(moduleNames, containingFile)/*: ResolvedModule[]*/ {
392
return moduleNames.map((moduleName) => {
393
let shouldResolveUsingDefaultMethod = false;
394
- for (const ext of ['ts', 'd.ts']) {
395
- const name = `${moduleName}.${ext}`;
+ for (const ext of ['', '.ts', '.d.ts']) {
+ const name = `${moduleName}${ext}`;
396
const maybeModule = this._resolveModulePathWithMapping(name, containingFile);
397
if (typeof maybeModule == 'string') {
398
return {
0 commit comments