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.
In my case,
highlight.jslibrary is used, and the import like this:highlight.js/languages/javascriptresults inhightlight/languages/javascript(the wrong extension is erased). Then, incasestatements, there are 2 possible options:highlight.js/languages/javascript.jsandhighlight/languages/javascript.js.js.I found the problem in
utils.tsfile:importee.replace(ext, '')replaces the first occurrence. I would suggest using something likeext && importee.endsWith(ext) ? importee.slice(0, -ext.length) : importee.