From 86f5794c2c62d0aed9624c3260978185b09b1cc8 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Fri, 21 Apr 2023 12:44:03 -0400 Subject: [PATCH] fix: pass sourcemap into Rollup treeShakingPlugin Fixes #889 --- src/plugins/tree-shaking.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tree-shaking.ts b/src/plugins/tree-shaking.ts index d3e7cf76e..c0b16674c 100644 --- a/src/plugins/tree-shaking.ts +++ b/src/plugins/tree-shaking.ts @@ -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 } }, }, ],