We need to transition our codebase from CommonJS (CJS) to ECMAScript Modules (ESM) to align with modern JavaScript standards, improve compatibility with the latest Node.js versions, and enable better tree-shaking for optimized builds.
Additional Context
- If we need dual support (CJS + ESM), we may consider using "exports" field in package.json.
- Some dependencies may still require dynamic imports (import() instead of require).
We need to transition our codebase from CommonJS (CJS) to ECMAScript Modules (ESM) to align with modern JavaScript standards, improve compatibility with the latest Node.js versions, and enable better tree-shaking for optimized builds.
Additional Context