Skip to content

Commit

Permalink
fix(vite): unocss:shadow-dom sourcemap (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jun 17, 2024
1 parent b202436 commit 28615ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vite/src/modes/shadow-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ export function ShadowDomModuleModePlugin({ uno }: UnocssPluginContext): Plugin
name: 'unocss:shadow-dom',
enforce: 'pre',
async transform(code, id) {
return transformWebComponent(code, id)
const css = await transformWebComponent(code, id)

return {
code: css,
map: null,
}
},
handleHotUpdate(ctx) {
const read = ctx.read
Expand Down

0 comments on commit 28615ce

Please sign in to comment.