Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a2ccbb8

Browse files
committed
Fix inline style css preprocess
1 parent d0551b8 commit a2ccbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export async function transform(url: string, code: string, options: TransformOpt
148148
.replace(/\:\s*%%aleph-inline-style-expr-(\d+)%%/g, (_, id) => `: var(--aleph-inline-style-expr-${id})`)
149149
.replace(/%%aleph-inline-style-expr-(\d+)%%/g, (_, id) => `/*%%aleph-inline-style-expr-${id}%%*/`)
150150
if (inlineStylePreprocess !== undefined) {
151-
tpl = await inlineStylePreprocess(key, style.type, tpl)
151+
tpl = await inlineStylePreprocess('#' + key, style.type, tpl)
152152
}
153153
tpl = tpl.replace(
154154
/\: var\(--aleph-inline-style-expr-(\d+)\)/g,

0 commit comments

Comments
 (0)