fix: non-scoped css &

This commit is contained in:
Toshit Chawda 2024-06-30 13:47:16 -07:00
parent 58338836b8
commit 1a9d03969c
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 3 additions and 2 deletions

View file

@ -87,7 +87,6 @@ export default (args) => {
}
}
const dlbanner = `// dreamland.js, MIT license\nconst DLFEATURES = [${Object.entries(
features
)

View file

@ -114,7 +114,9 @@ export function genCss(uid, str, scoped) {
.split(',')
.map((x) => {
x = x.trim()
if (x[0] === ':') {
if (x[0] === '&') {
return `.${uid}${x.slice(1)}`
} else if (x[0] === ':') {
return `.${uid}${x}`
} else {
return `.${uid} ${x}`