China is fine with dependence on other nations, it just can't rely on sea-based imports when the US could easily block them by blockading the strait of Malacca. That's why China has invested so heavily into their Belt And Road initiative (which is notably a giant land-based shipping route).
Actually, it seems China has given up on the feasibility of BRI because they don't control all the variables in their partner countries. Which is why Xi has been super focused on creating an autarkic economy dependent on domestic demand and encouraging production for the native population, as a back up. Failures in helping industrialize countries such as Pakistan and those in Africa due to systemic and unavoidable issues have soured on the Chinese. That autarkic vision hinges strongly on a solid renewables energy production base.