-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
.es.js
should be renamed .mjs
#16439
Comments
Hi! Thanks for being part of the Font Awesome Community and thanks for reporting this. Let's see if @robmadole and @mlwilkerson can help
I also read this, but I don't know if it is the case of this repo |
I’m other words, “.es.js” is not a thing. Published .js files should be CJS and transpiled; if you don’t want to do the best practice, then they should be .mjs files. |
We'll start by evaluating the node.js doc on ECMAScript Modules and go from there. |
Hi, has there been any decision made on use of |
node has type:module to override |
This is becoming a bigger impediment as time goes on. Any movement? |
How is this a bigger impediment? Has something changed? |
@robmadole I keep hitting on compatibility issues that require workarounds. The most recent one was that I don't bundle It's difficult to say whether this issue comes down to |
Precisely zero tools expect |
All we are going to focus the conversation about this in the PR #19041 |
Describe the bug
This bug is described fully @ import-js/eslint-plugin-import#1717
The quick version is that
eslint-plugin-import
throws some errors reading.es.js
files. The fix is to rename the files.mjs
which officially indicates they are modules, not common-js style exports.Expected behavior
I expect other libraries to have easy inter-op with fontawesome.
Version and implementation
Bug report checklist
The text was updated successfully, but these errors were encountered: