Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested member expressions #172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/yak-swc/yak_swc/src/utils/ast_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ pub fn member_expr_to_strings(member_expr: &MemberExpr) -> Option<(Ident, Vec<At
let result = member_expr_to_strings(&member)?;
let (root_ident, mut nested_props) = result;
nested_props.extend(props);
nested_props.insert(0, root_ident.sym.clone());
Some((root_ident, nested_props))
}
_ => None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { sizes } from "./sizes";
export const Button = /*YAK Extracted CSS:
.Button {
font-size: --yak-css-import: url("./fonts:fonts:sm",mixin);
color: --yak-css-import: url("./colors:colors:colors:dark:primary",mixin);
background-color: --yak-css-import: url("./colors:colors:colors:light:full%20opacity",mixin);
color: --yak-css-import: url("./colors:colors:dark:primary",mixin);
background-color: --yak-css-import: url("./colors:colors:light:full%20opacity",mixin);
height: --yak-css-import: url("./sizes:sizes:0",mixin);
}
*/ /*#__PURE__*/ styled.button(__styleYak.Button);
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Button4 = /*YAK Extracted CSS:
export const Button5 = /*YAK Extracted CSS:
.Button5 {
--yak-css-import: url("./fonts:fonts:h1",mixin);
--yak-css-import: url("./fancy:fancy:fancy:mixins:specialEffect",mixin);
--yak-css-import: url("./fancy:fancy:mixins:specialEffect",mixin);
color: green;
}
*/ /*#__PURE__*/ styled.button(__styleYak.Button5);
Expand All @@ -41,7 +41,7 @@ export const Button6 = /*YAK Extracted CSS:
&:hover {
--yak-css-import: url("./constants.yak:yakMixin",selector);
}
--yak-css-import: url("./fancy:fancy:fancy:mixins:specialEffect",mixin)
--yak-css-import: url("./fancy:fancy:mixins:specialEffect",mixin)
;
color: green;
}
Expand Down
Loading