-
I've got a relatively small project and am trying to keep the number of design tokens to a minimum but TypeScript performance is still pretty poor (i.e. auto-completion breaks, IDE CPU usage spikes, etc.). This is might be impossible to fix since VE has no choice but to produce massive union types, and those can be expensive, but I was wondering if other folks had found any workarounds for this. I assume that anyone who uses VE on a medium to large project has to have figured out something if I'm experiencing this at the scale I'm working at. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Would be helpful to specify the TypeScript version used. Even better would be steps to reproduce with a sample project. Is this happening just with I've found that TS IDE performance has a high degree of variability depending on the machine and the editor. |
Beta Was this translation helpful? Give feedback.
Sorry I should have mentioned that. I am using:
@vanilla-extract/sprinkles
I use WebStorm and occasionally check in on VSCode to see if it's a general TS issue or WebStorm specific and up until recently both editors had the issue. I just checked with VSCode and autocomplete is working perfectly fine and things are pretty snappy in general.
My understanding is that both VSCode and WebStorm use TSServer so I'm not sure why they'd have such variation in performance but that's a question to ask JetBrains...
…