Skip to content

Commit

Permalink
fix: source-maps not resolving to absolute path in browser build
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 30, 2022
1 parent f000b59 commit ec97f5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ec97f5f

Please sign in to comment.