-
Notifications
You must be signed in to change notification settings - Fork 4
[Improvement] Usage of ESM imports instead of CommonJS #27
Comments
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reverted as v4.0.1. See: #68 and vercel/styled-jsx#733 |
I'm not sure why this would be an improvement... the |
There are many advantages to use ESM imports instead of CommonJS :
And the most important advantage in my opinion is that it is unified, as soon as the whole JavaScript ecosystem will migrate to full ESM (it will still probably take few years), it will be easier to code in JavaScript, as you will not need to learn 2 syntax to do the same thing, it's just seems that ESM is THE way to do it, as it is in the ECMAScript specification. Fundamentally, it doesn't change much for this small |
Cool 👍. |
Proposal
We should use ESM imports instead of CommonJS.
See: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
The text was updated successfully, but these errors were encountered: