From 4b4761660cea8955609a684ae8a3c08f374e9050 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 4 Oct 2026 09:45:39 +0200 Subject: [PATCH] Fix source map paths --- apps/api/webpack.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js index e59eee0bfb..29a7a84a1e 100644 --- a/apps/api/webpack.config.js +++ b/apps/api/webpack.config.js @@ -45,5 +45,17 @@ const buildOptions = { * @type {import('webpack').WebpackOptionsNormalized} */ module.exports = async () => ({ + output: { + devtoolModuleFilenameTemplate: ({ absoluteResourcePath }) => { + return `webpack:///${ + path.isAbsolute(absoluteResourcePath) + ? path.relative( + path.resolve(__dirname, '../..'), + absoluteResourcePath + ) + : absoluteResourcePath + }`; + } + }, plugins: [new NxAppWebpackPlugin(buildOptions)] });