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: {