You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have gotten this feature to work when running in node the normal way. But I also want to get it to work when I run a single js-file in Visual Studio Code (using the Run Code feature, Ctr+Alt+N). It works if I put require('module-alias/register') at the top of the file, but I would prefer to not have to do this in every single js file just to make VS Code happy.
Is there a way to configure VS Code to run require('module-alias/register') automatically for me, by specifying something in the jsconfig.json file for example?
The text was updated successfully, but these errors were encountered:
Hi,
I have gotten this feature to work when running in node the normal way. But I also want to get it to work when I run a single js-file in Visual Studio Code (using the Run Code feature, Ctr+Alt+N). It works if I put require('module-alias/register') at the top of the file, but I would prefer to not have to do this in every single js file just to make VS Code happy.
Is there a way to configure VS Code to run require('module-alias/register') automatically for me, by specifying something in the jsconfig.json file for example?
The text was updated successfully, but these errors were encountered: