-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node Native ESM Support #31
Comments
AVA v3 has arrived, but only with the groundwork for ES modules support. At the time of writing I'm unaware of any work arounds to have AVA continue with the Given this, as much of the groundwork (import paths, bulk of package config) will be done in the meantime to permit a speedier implementation later on. |
AVA v3.3 added support for loading ES module tests. Some creativity may be needed to ensure both entrypoints are tested, and that they can be properly consumed. |
ESM code can now be imported in Node 12 and above without the experimental flag. |
Native ESM is working (yay!) but we'll need to purge Pausing this until userfrosting/merge-package-dependencies#15 is resolved, after which the migration can begin. |
userfrosting/merge-package-dependencies#15 is a significant refactor which demands a lot of attention. I've got time back on my side (so it'll get done) however with NodeJS 10 soon to leave maintenance level support, I need to get the This is now unblocked. |
As of NodeJS 13, ES Modules are now stable. Furthermore, there are strategies for backward compatible adoption.
At this stage, there are upstream dependencies (e.g. AVA avajs/ava#2293) and likely corner cases to consider (mainly around CJS and ESM boundaries). Regardless, it is worth putting some thought into native ESM support can be achieved. Particularly as quicker adoption means less transpilation is needed (meaning more predictable issues in the wild).
The text was updated successfully, but these errors were encountered: