In my case, highlight.js library is used, and the import like this: highlight.js/languages/javascript results in hightlight/languages/javascript (the wrong extension is erased). Then, in case statements, there are 2 possible options: highlight.js/languages/javascript.js and highlight/languages/javascript.js.js.
I found the problem in utils.ts file: importee.replace(ext, '') replaces the first occurrence. I would suggest using something like ext && importee.endsWith(ext) ? importee.slice(0, -ext.length) : importee.