Here’s a thorough guide that covers everything you need to know to migrate your CommonJS project to ESM.