fix: use hashed style code for const styly! macro

This commit is contained in:
Yiffy Dev 2024-11-16 19:55:27 +05:00 • committed by spushk
commit 96b411a190
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -133,7 +133,7 @@ pub fn styly_macro_impl(input: TokenStream) -> TokenStream {
if constant {
let compiler = CompilerAdapter::new(config.clone());
let css = match compiler.compile_module(ms.syntax.0, &ms.code.code) {
let css = match compiler.compile_module(ms.syntax.0, &scope.hashed_code) {
Ok(c) => c,
Err(e) => {
return syn::Error::new(