Skip to content

Commit 7be9796

Browse files
committed
chore: fix editor debugging
1 parent 494531e commit 7be9796

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/client/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,10 @@ module.exports = composePlugins(withNx(), withWeb(), (config) => {
6868
extension: './src/extension.ts',
6969
};
7070

71+
config.output.devtoolModuleFilenameTemplate = function (info) {
72+
const rel = path.relative(process.cwd(), info.absoluteResourcePath);
73+
return `webpack:///./${rel}`;
74+
};
75+
7176
return config;
7277
});

packages/server/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,10 @@ module.exports = composePlugins(withNx(), withWeb(), (config) => {
6767
extension: './src/extension.ts',
6868
};
6969

70+
config.output.devtoolModuleFilenameTemplate = function (info) {
71+
const rel = path.relative(process.cwd(), info.absoluteResourcePath);
72+
return `webpack:///./${rel}`;
73+
};
74+
7075
return config;
7176
});

0 commit comments

Comments
 (0)