'How to configure VSCode path resolution to work with different file extensions

My project started using ".es6" to denote ES modules (before ".mjs" was a thing).

VSCode doesn't know how to follow that extension on imports, and I can't find a way to expand this, given the keywords are super generic and ambiguous.

Is there a way to configure VSCode to consider .es6 files on import path resolution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source