For about a month. Maybe.
More than 50% of the world’s silicon chip supply comes from TSMC fabs in Taiwan. Assuming those fabs survive an invasion, China would have a stranglehold over the world chip market and the most advanced fabs in the world. It would take 2-3 years to replace a meaningful proportion of that lost fab capacity in the West.
How long do you think the western population is going to do without shiny new phones, TV’s, luxury cars, computers...? Not 2-3 years.