You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though swc-loader seems to be passing the inputSourceMap to swc correctly, the output source map of swc does not contain any of the original source map, thus breaks debugging in browser's dev console.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
Even though swc-loader seems to be passing the inputSourceMap to swc correctly, the output source map of swc does not contain any of the original source map, thus breaks debugging in browser's dev console.
Input code
Config
Expected behavior
Input source map from vue-loader and source map from swc should be merged properly.
Given this original source map from vue-loader:
Original source map
This is what babel outputs:
Compiled code
Output source map
This is what swc outputs:
Compiled code
Output source map
Notice that
sourcesContent
,sourcesRoot
andsources
were not taken from the original source map.Version
The version of @swc/core: 1.2.47
Additional context
Relevant issue:
vuejs/vue-loader#1163
babel/babel#7761
The text was updated successfully, but these errors were encountered: