Skip to content

Commit

Permalink
feat(build): Add VSCode debug config for running rollup (#4680)
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie authored Mar 3, 2022
1 parent f55697e commit 7f94831
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,30 @@
}
],
"configurations": [
// Run rollup using the config file which is in the currently active tab.
{
"name": "Debug rollup (config from open file)",
"type": "pwa-node",
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
"request": "launch",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"rollup",
"-c",
"${file}"
],
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std"
},
// Run a specific test file in watch mode (must have file in currently active tab when hitting the play button).
// NOTE: If you try to run this and VSCode complains that the command `shellCommand.execute` can't be found, go
// install the recommended extension Tasks Shell Input.
Expand Down

0 comments on commit 7f94831

Please sign in to comment.