Skip to content

Commit

Permalink
fix(webpack): windows build fail, close #1455 (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 9, 2022
1 parent 38db946 commit bce243b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shared-integration/src/layers.ts
Expand Up @@ -3,7 +3,9 @@ export const VIRTUAL_ENTRY_ALIAS = [
]
export const LAYER_MARK_ALL = '__ALL__'

const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/
export const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/
export const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/

export function resolveId(id: string) {
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
return id
Expand All @@ -18,8 +20,6 @@ export function resolveId(id: string) {
}
}

export const RESOLVED_ID_RE = /\/__uno(?:(_.*?))?\.css$/

export function resolveLayer(id: string) {
const match = id.match(RESOLVED_ID_RE)
if (match)
Expand Down

0 comments on commit bce243b

Please sign in to comment.