Skip to content

Commit

Permalink
fix: allow matching virtual id with query parameters (#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 10, 2022
1 parent 2075df9 commit a08d2e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/shared-integration/src/layers.ts
Expand Up @@ -3,7 +3,11 @@ export const VIRTUAL_ENTRY_ALIAS = [
]
export const LAYER_MARK_ALL = '__ALL__'

const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/
export function resolveId(id: string) {
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
return id

for (const alias of VIRTUAL_ENTRY_ALIAS) {
const match = id.match(alias)
if (match) {
Expand Down

0 comments on commit a08d2e3

Please sign in to comment.