2

Today I switched some project code base to use Node's ES modules which need to use .mjs file extension.

Sadly, this breaks Visual Studio Code's Go to definition when an imported resource comes from another module.

Is there any way I can tell Visual Studo Code to work with both .js and .mjs file extensions to look up for references?

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206

0 Answers0