Skip to content

Commit

Permalink
fix: pass sourcemap into Rollup treeShakingPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson authored and sxzz committed Jul 16, 2024
1 parent 46a1f9d commit 86f5794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/tree-shaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const treeShakingPlugin = ({
return false
},
load(id) {
if (id === info.path) return code
if (id === info.path) return { code, map: info.map }
},
},
],
Expand Down

0 comments on commit 86f5794

Please sign in to comment.