Skip to content

Commit

Permalink
fix: pass sourcemap into Rollup treeShakingPlugin
Browse files Browse the repository at this point in the history
Fixes #889
  • Loading branch information
aleclarson committed Apr 21, 2023
1 parent efdd438 commit 7a745b7
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 @@ -33,7 +33,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 7a745b7

Please sign in to comment.