Remember an experience of upgrading webpack 5 + swc from webpack 4

Original link: https://lucifer.ren/blog/2023/03/27/migrate-to-webpack5_swc/

Recently, I upgraded the project’s webpack 4 to webpack 5. After a day or two, I encountered some problems that I could not find information on the Internet, so I decided to record the process.

This article is transferred from: https://lucifer.ren/blog/2023/03/27/migrate-to-webpack5_swc/
This site is only for collection, and the copyright belongs to the original author.