Skip to content

Commit

Permalink
fix: remove ?v= query on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 12, 2022
1 parent 464cdd1 commit b8f88f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared-integration/src/context.ts
Expand Up @@ -86,7 +86,7 @@ export function createContext<Config extends UserConfig<any> = UserConfig<any>>(
const filter = (code: string, id: string) => {
if (code.includes(IGNORE_COMMENT))
return false
return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id)
return code.includes(INCLUDE_COMMENT) || code.includes(CSS_PLACEHOLDER) || rollupFilter(id.replace(/\?v=\w+$/, ''))
}

async function getConfig() {
Expand Down

0 comments on commit b8f88f6

Please sign in to comment.