Skip to content

Instantly share code, notes, and snippets.

@seacloud9
Created April 15, 2019 20:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save seacloud9/c4d95e1ee3baa8ae946741e1db7ad8b2 to your computer and use it in GitHub Desktop.
launch.json -> vs code ssr debugging babel 7
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/server/server.js",
"cwd": "${workspaceFolder}",
"stopOnEntry": false,
"sourceMaps": false,
"smartStep": true,
"env": {
"NODE_ENV": "development"
},
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/babel-node",
"skipFiles":[
"${workspaceFolder}/node_modules/**/*.js"
],
"runtimeArgs": ["--nolazy", "--debug", "--presets", "@babel/preset-env"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment