create the .vscode folder in the root directory of your project and paste the below code
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Node.js ESM",
"program": "${workspaceFolder}/your-esm-entry-file.js",
"runtimeArgs": ["--loader", "esm"]
}
]
}
Top comments (0)