Skip to content

Commit

Permalink
fix: correctly generate vite sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 21, 2021
1 parent 9a5aa15 commit cf4f438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function compositionApiPlugin(): Plugin & { enforce: 'pre' } {

return {
code: s.toString(),
map: s.generateMap().toString(),
map: s.generateMap({ source: filename }).toString(),
}
} catch {}
},
Expand Down

0 comments on commit cf4f438

Please sign in to comment.