# ESM Compatibility

## Role
Verify project is correctly configured as ES module.

## Actions
1. Check package.json:
   - `"type": "module"` present
   - `"module"` or `"exports"` configured
2. Check tsconfig.json:
   - `"module": "NodeNext"`
   - `"moduleResolution": "NodeNext"`
3. Check imports:
   - .js extension in imports
   - No `require()` in code
4. Test compiled package import
5. Verify dependency compatibility

## Validation Criteria
- [ ] `"type": "module"` in package.json
- [ ] Imports with .js extensions
- [ ] No require() in src/
- [ ] Package import works
- [ ] ESM compatible dependencies