Browse Source

Adds better sourcemap support

main
Eric Amodio 5 years ago
parent
commit
39f6830680
2 changed files with 5 additions and 4 deletions
  1. +4
    -2
      .vscode/launch.json
  2. +1
    -2
      webpack.config.js

+ 4
- 2
.vscode/launch.json View File

@ -11,8 +11,9 @@
"env": { "env": {
"VSCODE_DEBUGGING_EXTENSION": "gitlens" "VSCODE_DEBUGGING_EXTENSION": "gitlens"
}, },
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"], "outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true, "smartStep": true,
"sourceMaps": true "sourceMaps": true
}, },
@ -25,8 +26,9 @@
"VSCODE_DEBUGGING_EXTENSION": "gitlens" "VSCODE_DEBUGGING_EXTENSION": "gitlens"
}, },
"args": ["--extensionDevelopmentPath=${workspaceFolder}"], "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceFolder}/dist/**/*.js"], "outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/app/out/vs/**", "**/extensions/**"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
"smartStep": true, "smartStep": true,
"sourceMaps": true, "sourceMaps": true,
"preLaunchTask": "npm: watch" "preLaunchTask": "npm: watch"

+ 1
- 2
webpack.config.js View File

@ -68,8 +68,7 @@ function getExtensionConfig(env) {
devtool: 'source-map', devtool: 'source-map',
output: { output: {
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
filename: 'extension.js',
devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]'
filename: 'extension.js'
}, },
optimization: { optimization: {
minimizer: [ minimizer: [

Loading…
Cancel
Save