China’s rampant economic growth has been a boon for exporters in Japan, South Korea and Taiwan, who have supplied high-end components and machines for its factories. The risk for them now is that China will switch from customer to competitor as it ascends the value chain.

Japanese shipments to China reached a record $130 billion (about ¥13.65 trillion) in 2017, leading an export-driven economic recovery that’s run for eight quarters straight. Korean sales to its neighbor have jumped 70 percent in a decade, while Taiwanese sales have climbed to an all-time high.

Yet a deeper dive into the data highlights the threat. Take the trade in semiconductors — and the machines that make these chips. Sales of the components from firms like South Korean tech giant SK Hynix Inc. have helped drive export growth to China from the rest of North Asia.

But at the same time, there’s been a spike in sales to China of precision metal-working machines and chip-making equipment from firms like Japan’s Yaskawa Electric Corp. With a Chinese state-backed fund gearing up to pour as much as $31.5 billion into homegrown semiconductor manufacturing, there’s potential for trade flows to shift.

China’s ambitions, set out in its sweeping Made in China 2025 plan, go much further than semiconductors and would see its technical prowess advance in a host of areas ranging from biomedicine and artificial intelligence to new-energy vehicles and aircraft. The challenge to Japan, Korea and Taiwan also applies to European exporters like Germany and comes on top of the risks to global trade from the Trump administration’s embrace of tariffs.

“The bits of the global supply chain that are currently the preserve of Korea, Japan, Taiwan, the U.S. and Germany, are the bits of the supply chain that China has a decade-long industrial strategy to move into,” said Tom Orlik, Bloomberg’s chief Asia economist. He said it’s only a matter of time before many components for electronic products are made domestically and the country is on track to become a car exporter. Eventually, it will be selling airplanes, said Orlik.

“Sensors are dominated by the Japanese, and it might take a while until the Chinese catch up,” said Bloomberg Intelligence analyst Nikkie Lu. “Maybe in the next five years. But it is slowly emerging.”

To be sure, climbing up the value chain will pose challenges for Chinese companies. For one, they still have a ways to go in building trust with consumers and developing “softer skills” in customer service, which Japan excels at, according to Deborah Elms, executive director of the Asia Trade Centre in Singapore. They also need to demonstrate similar standards for protecting consumer privacy and intellectual property to displace companies from Japan, Korea and Taiwan, she said. In addition, a more successful and richer China will also offer opportunities for its neighbors. Already its growing wealth has unleashed a tidal wave of outbound tourists. Their purchasing power in Japan is so renowned that a new word has been coined for it: bakugai, which means “explosive buying.” More than 14 million mainland Chinese visited neighboring economies in the region in 2017, even after a security dispute saw a sharp drop-off in tourists to South Korea.

Airlines, hotels, tour operators and retailers in Japan, South Korea and Taiwan have all benefited from the influx of travelers. Japanese hotels in tourist hot-spot Kyoto, Korean tour operator Hana Tour Service Inc. and Taiwan’s China Airlines Ltd. have all profited from mainland customers. Despite the drop-off in Korea, the growth in mainland tourists is expected to continue across the region over the longer term.Of course, foreign firms have also benefited by setting up their own manufacturing operations in China to lower costs and tap its huge consumer market. Japanese textiles manufacturer Toray Industries Inc. is a recent example, announcing in November that it would invest about ¥7 billion for a new plant in Guangdong province.

Yet the direction is clear: Beijing is aiming higher and it has the resources to reach its destination. And that will mean difficulties for many companies around the region.”China, in a very short period of time, is rapidly going up the value chain,” said Gary Hufbauer, senior fellow and trade specialist at the Peterson Institute for International Economics in Washington, speaking from Taos, New Mexico. “They will produce the things that Korea and Japan are now producing, and Korean and Japanese firms have a big challenge to try to keep ahead on the technology.”