Open linonetwo opened 3 years ago
I was able to do something like this. It doesn't work exactly as it should, but it will allow you to click on it.
webpack.dev.js
output: {
devtoolModuleFilenameTemplate: info => {
return `file:///${encodeURI(info.absoluteResourcePath)}`
},
},
Currently the error message will be like:
In which the former part can be clicked
(
/Applications/TiddlyGit.app/Contents/Resources/app.asar/.webpack/main/webpack
)but it is actually useless.
I hope we can click on the later part
(
/TiddlyGit/src/services/windows/index.ts:227:24
)but it is start with project folder name
/TiddlyGit
, so when open the log file with VSCode ,it won't detect this as path.Hope we can properly format the path, so later part can be click or copy to used for the file jump.