I am in a monorepo with yarn workspace and I have, as the doc recommends, the main this way:
"main": "__generated __ / AppEntry.js",