Create an objectProperty with an expression as the key #16433
Replies: 2 comments
-
Can you provide a code example? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@liuxingbaoyu as I was building the code example, I must've made some change to make it work. So, the code example has now become the solution I was trying to build in the first place 😄 Thanks for prompting me 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am doing a transform where I copy the list of ObjectProperty nodes from an objectExpression to another:
This works fine if all properties of
existingObjectExpression.properties
have literals for keys, but the resulting transform fails if the key for one of theObjectProperty
items is, say, aConditionalExpression
. Do you know how I can get the transformation to work withConditionalExpression
as theObjectProperty
s key?Beta Was this translation helpful? Give feedback.
All reactions