Skip to content

Commit

Permalink
fix: remapping order
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Jan 25, 2024
1 parent f82cf30 commit dc70195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export const unpluginFactory: UnpluginFactory<UserOptions | undefined> = (
const transformed = ctx.transformWithMap(code, id)
if (transformed) {
const map = remapping(
[transformed.map, this.getCombinedSourcemap() as any],
[this.getCombinedSourcemap() as any, transformed.map],
() => null,
) as any
)
return {
code: transformed.code,
map,
Expand Down

0 comments on commit dc70195

Please sign in to comment.