I want to export an object where keys refer to other keys: export default { x: 1, y: x + 1, } This isn't legal because x isn't defined. Using a getter is no good; I can't tolerate any function calls at runtime. Defining a variable is also no good. What do I do?
-
Show this thread
Replying to @garybernhardt
I like that you presented an xy problem using x and y ;)
4:06 PM - 25 Aug 2019
0 replies
0 retweets
19 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.