webpack esm resolve issue Installation yarn How to reproduce the bug? yarn start browser should open on localhost:3000 open devtools and search "swr" you'll see swr/dist/index.esm.js and swr/dist/index.mjs are both resolved there