Skip to content

Commit

Permalink
fix: remove ?import from query, so .[ext]$ checks will pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 18, 2022
1 parent 237b48c commit b66dd6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function normalizeId(id: string, base?: string): string {
.replace(/^(node|file):/, '')
.replace(/^\/+/, '/') // remove duplicate leading slashes
.replace(/[?&]v=\w+/, '?') // remove ?v= query
.replace(/\?import/, '') // remove ?import query
.replace(/\?$/, '') // remove end query mark
}

Expand Down

0 comments on commit b66dd6d

Please sign in to comment.