Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webpack): windows build fail, close #1455 #1711

Merged
merged 1 commit into from Oct 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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