diff --git a/lib/compile-vue.js b/lib/compile-vue.js index 74bfc43..cd7e016 100644 --- a/lib/compile-vue.js +++ b/lib/compile-vue.js @@ -72,8 +72,14 @@ function scopeCss(css = '', hash) { output = `${last} ${output}` } } else { - if (last.startsWith(':')) { - output = parseVDeep(last, output) + if (last.includes(':')) { + if (last.startsWith(':')) { + output = parseVDeep(last, output) + } else { + scoped = true + last = last.replace(':', `[data-${hash}]:`) + output = `${last} ${output}` + } } else { scoped = true output = `${last}[data-${hash}] ${output}` diff --git a/package.json b/package.json index 5f359b1..6dc91c4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "0.7.4", + "version": "0.7.5", "bin": { "fite": "index.js" },