Skip to content

Commit

Permalink
Adds better sourcemap support
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Feb 9, 2019
1 parent f67bf87 commit 39f6830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"env": {
"VSCODE_DEBUGGING_EXTENSION": "gitlens"
},
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true,
"sourceMaps": true
},
Expand All @@ -25,8 +26,9 @@
"VSCODE_DEBUGGING_EXTENSION": "gitlens"
},
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true,
"sourceMaps": true,
"preLaunchTask": "npm: watch"
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ function getExtensionConfig(env) {
devtool: 'source-map',
output: {
libraryTarget: 'commonjs2',
filename: 'extension.js',
devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]'
filename: 'extension.js'
},
optimization: {
minimizer: [
Expand Down

0 comments on commit 39f6830

Please sign in to comment.