Skip to content

Commit cd8b4be

Browse files
committed
fix: revert \0 prefix to fix hmr
1 parent d75d468 commit cd8b4be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/shared-integration/src/layers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ export const VIRTUAL_ENTRY_ALIAS = [
33
]
44
export const LAYER_MARK_ALL = '__ALL__'
55

6-
export const RESOLVED_ID_WITH_QUERY_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/
7-
export const RESOLVED_ID_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css$/
6+
export const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/
7+
export const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/
88

99
export function resolveId(id: string) {
1010
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
@@ -14,8 +14,8 @@ export function resolveId(id: string) {
1414
const match = id.match(alias)
1515
if (match) {
1616
return match[1]
17-
? `\0/__uno_${match[1]}.css`
18-
: '\0/__uno.css'
17+
? `/__uno_${match[1]}.css`
18+
: '/__uno.css'
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)