ESM
Prisma environment variable handling breaks in monorepos and ESM contexts
8Prisma struggles to correctly load `.env` files in monorepo setups, doesn't support NODE_ENV-based `.env` switching, and silently pollutes `process.env` without explicit dotenv usage. Recent versions (6.7.0+) have introduced critical ESM-related module resolution failures across Turborepo, Next.js, Remix, and other frameworks.
High number of unbundled network requests causing slow page loads
6Exceptionally large codebases experience slow page loads due to the high number of unbundled network requests in ESM-based development, requiring network overhead optimization.
CommonJS dependencies incompatible with Vite
6CommonJS packages don't work seamlessly with Vite's ESM-first architecture, requiring manual configuration via `optimizeDeps.include` to function properly.
CommonJS to ESM migration friction in new projects
4Developers starting new browser-based projects in 2025 sometimes default to CommonJS (`require()`) and heavy webpack configurations despite native ESM working everywhere that matters. This creates unnecessary migration burden and uses legacy tooling patterns.