优化style[scoped]的解析

pull/1/head
yutent 2023-04-27 15:46:28 +08:00
parent dc1fea1bbb
commit 574dd7e693
2 changed files with 7 additions and 3 deletions

View File

@ -54,8 +54,12 @@ function scopeCss(css = '', hash) {
if (last.includes(':')) {
let res = V_DEEP.exec(last)
if (res) {
last = tmp.pop()
last += `[data-${hash}] ` + res[1]
if (tmp.length) {
last = tmp.pop()
last += `[data-${hash}] `
} else {
last = res[1]
}
} else {
if (last.startsWith(':')) {
let _prev = tmp.pop()

View File

@ -1,7 +1,7 @@
{
"name": "fite",
"type": "module",
"version": "0.7.2",
"version": "0.7.3",
"bin": {
"fite": "index.js"
},