Skip to content

Commit

Permalink
fix: generate correct sourceMaps for modern-compiler api (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal authored Aug 19, 2024
1 parent ef02dad commit f862f7a
Show file tree
Hide file tree
Showing 6 changed files with 2,574 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ function getModernWebpackImporter(loaderContext, implementation, loadPaths) {
});
});

return { contents, syntax };
return { contents, syntax, sourceMapUrl: canonicalUrl };
} catch (err) {
return null;
}
Expand Down
Loading

0 comments on commit f862f7a

Please sign in to comment.