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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support native esm modules. #453
Comments
@leerob The patch I submitted supports esm in a much more complete way, looking up the package's type like node.js does instead of urging to use the .mjs extension. Please consider it. |
Would you be open to adding a PR with a test? Happy to review and merge it. |
Yeah I'm onboard. |
Why not just always use |
I'm good with that as well, especially since we're doing a major version bump. |
Since we're using TS now, that gets transpiled to using
It was not a straightforward process to get that working the last time I tried. I plan to try a different solution when I get some time in the near future. |
Is it correct that I currently can't use |
@electerious If you're not using micro programmatically then the cli will fail when processing ESM files. If you want to use ESM, then you can use it this way:
There would be a fix to load ESM files through the CLI in the near future. |
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch
micro@9.3.4
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: