-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
mjs files get imported as static files #5234
Comments
I am so lost. 😥 Can somebody who has a stake in getting cc @lencioni @jgoux @hobochild @leebyron @jdalton @jbaxleyiii @jaydenseric who participated in earlier threads So far Our constraints are:
We've intentionally tried to disable |
Yes, at least when bundling dependencies in Out of the box Webpack handles |
Does #5258 look like the right fix for you? |
Is there a set of packages that we can test our support on? To verify we don't keep breaking this in every release. |
#5258 should get us back on track to supporting what will be "properly" setup packages in a Node & web world. Can someone with more knowledge in this area please confirm this is true? |
The CRA config is a little more complex than I'm used to… does CRA attempt to transpile all of |
CRA compiles all of |
It's still pretty hard to get things right with the current state of things. For example, even Projects like Babel 7, webpack 4, and |
It is far preferable that a bundling error throws so people can fix (and learn about) their flawed @jdalton The |
My comment was highlighting that support is tough even for projects which appear to be doing things properly.
I agree with caution over |
I haven't seen that happening, it defies the point of Node.js v10 end-of-life is April 2021, so like it or not Discourage use of an "experimental" feature, sure. But I can't get my head around why anyone would encourage incorrect use of
Anyway, speculating about the service life of |
@jaydenseric / @jdalton can you confirm my conclusion is somewhat right? #5258 (comment) |
Re-opened for continued discussion. |
👋 Node core and Node Module WG member here. Just a heads up, there is no set date for when
Bundling mushes transpiled code, CJS, ESM, and
👍
Yep. It'll do 😎 |
This should be resolved. It seems everyone has spoke their peace. Thanks! |
Hello,
Here is a repro :
Excluding the
.mjs
extension from thefile-loader
fix the issue.The text was updated successfully, but these errors were encountered: