From ec97f5f7f95c0eb96ff2faa5a3253ee5540bf0dd Mon Sep 17 00:00:00 2001 From: Dylan Piercey Date: Wed, 30 Mar 2022 09:06:19 -0700 Subject: [PATCH] fix: source-maps not resolving to absolute path in browser build --- src/loader/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/loader/index.ts b/src/loader/index.ts index e63f2ea..3e115bd 100644 --- a/src/loader/index.ts +++ b/src/loader/index.ts @@ -126,6 +126,7 @@ export default async function ( }, babelConfig: { ...loaderOptions.babelConfig, + sourceFileName: resourcePath, // Webpack needs absolute file paths in the output sources and does not honor "sourceRoot". compact: false, comments: false, caller: {