benchmarks
benchmarks copied to clipboard
Add support to ESM
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
Frequently modules are dropping support to CommonJS and in order to keep it up to date, we should support the ESM as soon as possible
Motivation
https://github.com/fastify/benchmarks/pull/216
Example
No response
I rather just remove the offending modules.
I rather just remove the offending modules.
What's wrong with keeping things up-to-date and dropping legacy supports ?? Just curious to know what's the pain point in adding support to ESM. If possible, what could be the strategy and how can I help to bring this upgrade ??
- CJS isn't "legacy"
- ESM does not work the same way
- ESM is not instrumentable
There are limitations in interoperability, while ESM can import CJS, CJS cannot require ESM, because it would break the synchronous constraint.
If this is still true, one may want to reconsider. Currently Fastify works just fine in my ESM project.