Ver a proveniência

Adds better sourcemap support

main
Eric Amodio há 5 anos
ascendente
cometimento
39f6830680
2 ficheiros alterados com 5 adições e 4 eliminações
  1. +4
    -2
      .vscode/launch.json
  2. +1
    -2
      webpack.config.js

+ 4
- 2
.vscode/launch.json Ver ficheiro

@ -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
},
@ -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"

+ 1
- 2
webpack.config.js Ver ficheiro

@ -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: [

Carregando…
Cancelar
Guardar