gluestack / gluestack-ui

React & React Native Components & Patterns (copy-paste components & patterns crafted with Tailwind CSS (NativeWind))
https://gluestack.io/
MIT License
2.74k stars 120 forks source link

TypeScript Intellisense VSCode slows after Eject Theme #2166

Open mathis-kdio opened 6 months ago

mathis-kdio commented 6 months ago

Description

After ejecting the theme following the documentation, VSCode Intellisense performance is poor.

CodeSandbox/Snack link

No response

Steps to reproduce

Follow steps here : https://gluestack.io/ui/docs/home/theme-configuration/customizing-theme/eject-theme

gluestack-ui Version

latest

Platform

Other Platform

No response

Additional Information

In my project :

Without import ./config/gluestack-ui.config and config={config} in

import { config } from './config/gluestack-ui.config';

<GluestackUIProvider config={config}>
Files:             1169
Lines:           162100
Identifiers:     171524
Symbols:         167738
Types:            48795
Instantiations: 1823801
Memory used:    259132K
I/O read:         0.42s
I/O write:        0.00s
Parse time:       2.95s
Bind time:        0.63s
Check time:       5.13s
Emit time:        0.00s
Total time:       8.72s

With

import { config } from './config/gluestack-ui.config';

<GluestackUIProvider config={config}>
Files:              1397
Lines:            172313
Identifiers:      179729
Symbols:         1351239
Types:             75941
Instantiations: 11298277
Memory used:     637780K
I/O read:          0.33s
I/O write:         0.00s
Parse time:        3.60s
Bind time:         0.69s
Check time:       98.65s
Emit time:         0.00s
Total time:      102.94s
ankit-tailor commented 5 months ago

Hey @mathis-kdio, Thanks for reporting the issue. We'll look into it.

DavidAmyot commented 4 months ago

Perhaps this is linked to #2102 ?