优化style[scoped]的解析
parent
dc1fea1bbb
commit
574dd7e693
|
@ -54,8 +54,12 @@ function scopeCss(css = '', hash) {
|
|||
if (last.includes(':')) {
|
||||
let res = V_DEEP.exec(last)
|
||||
if (res) {
|
||||
if (tmp.length) {
|
||||
last = tmp.pop()
|
||||
last += `[data-${hash}] ` + res[1]
|
||||
last += `[data-${hash}] `
|
||||
} else {
|
||||
last = res[1]
|
||||
}
|
||||
} else {
|
||||
if (last.startsWith(':')) {
|
||||
let _prev = tmp.pop()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fite",
|
||||
"type": "module",
|
||||
"version": "0.7.2",
|
||||
"version": "0.7.3",
|
||||
"bin": {
|
||||
"fite": "index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue