Skip to content

Commit 7f94831

Browse files
authored
feat(build): Add VSCode debug config for running rollup (#4680)
1 parent f55697e commit 7f94831

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,30 @@
1818
}
1919
],
2020
"configurations": [
21+
// Run rollup using the config file which is in the currently active tab.
22+
{
23+
"name": "Debug rollup (config from open file)",
24+
"type": "pwa-node",
25+
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
26+
"request": "launch",
27+
"runtimeExecutable": "yarn",
28+
"runtimeArgs": [
29+
"rollup",
30+
"-c",
31+
"${file}"
32+
],
33+
"skipFiles": [
34+
"<node_internals>/**"
35+
],
36+
"outFiles": [
37+
"${workspaceFolder}/**/*.js",
38+
"!**/node_modules/**"
39+
],
40+
"sourceMaps": true,
41+
"smartStep": true,
42+
"internalConsoleOptions": "openOnSessionStart",
43+
"outputCapture": "std"
44+
},
2145
// Run a specific test file in watch mode (must have file in currently active tab when hitting the play button).
2246
// NOTE: If you try to run this and VSCode complains that the command `shellCommand.execute` can't be found, go
2347
// install the recommended extension Tasks Shell Input.

0 commit comments

Comments
 (0)