Globalization is dead if we hit peak world energy. Then it's every country for themselves. Most products contain energy, so why export energy in the form of finished goods? As energy gets more scarce, countries will get more stingy with exports and tend toward autarky.
Energy isn't all that limited though, especially with ever improving generation technology in wind and solar and in storage such as grid scale battery facilities.
Wind, solar and grid scale batteries fall somewhere between pipedreams and nightmares.
The resources needed to build much less maintain these at scale is a disaster, one that's largely inflicted on 'not us' but that requires massive economic transfers through globalization. You're not building these at this scale without globalization.
This opinion is highly incorrect. We are not headed to "peak world energy". Energy consumption will continue to rise, not fall. Even countries with extreme amounts of imports and population decline still continue to grow energy usage.
Keep in mind that "renewable" includes hydro and geothermal, both of which are reasonably substantial and largely fully exploited.
There've in fact been several notable decommissionings of hydro projects, and extant geothermal (such as The Geysers in northern California) are producing well below their peak due to field exhaustion (various factors, typically groundwater and/or actual thermal flux).
Wind and solar have grown markedly, but remain a small fraction of total electrical generation. Which itself remains a fraction (roughly 1/3) of total energy consumption.