Skip to content

Commit

Permalink
fix: set sourcemap hires to boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
gera2ld committed Mar 7, 2024
1 parent f5b9fec commit 85f66e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export default (transform?: (metadata: string) => string): Plugin => {
if (transform) metadata = transform(metadata);
const s = new MagicString(code);
s.prepend(`${metadata}\n\n`);
return { code: s.toString(), map: s.generateMap().toString() };
return {
code: s.toString(),
map: s.generateMap({ hires: 'boundary' }).toString(),
};
},
};
};

0 comments on commit 85f66e9

Please sign in to comment.