fix/Migrate to ESM #5 #10
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrate to ECMAScript Modules (ESM)
This PR completes the migration from CommonJS to ECMAScript Modules (ESM) as outlined in #5. The changes modernize our codebase to align with current JavaScript standards while maintaining all existing functionality.
Key Changes:
✅ Core Migration:
"type": "module"to package.jsonrequire()toimport/exportsyntax.js(with ESM imports)🛠 Test Fixes:
unstable_mockModule🔧 Configuration Updates:
New Jest config for ESM support
Updated Babel and build tool configurations
Verified all dependencies support ESM
Impact:
Improved tree-shaking capabilities
Better static analysis
Future-proof codebase
Maintained 100% backward compatibility
Verification:
Notes:
Closes #5