Replies: 3 comments
-
Response from Andrew: https://twitter.com/atcb/status/1674299679063015424 |
Beta Was this translation helpful? Give feedback.
-
Yes. I don't know if it's a good idea for Oxc, though.
Why wouldn't it be doable? |
Beta Was this translation helpful? Give feedback.
-
I have a related idea that I think would be super useful. If you land functionality like this, and if you build a full module graph, it seems like you would be able to help authors detect and avoid the dual-package hazard. For example, if a project has a tree like
and a file like // index.mjs
import {} from "cjs-only-dep";
import {} from "dual-dep"; Now suppose that |
Beta Was this translation helpful? Give feedback.
-
You are doomed if you see
ERR_REQUIRE_ESM
or similar error messages withESM
, you'll spend hours googling and trying out different solutions to make things work.As a linter, I think we may be able help with the situation by figuring out your incompatible usage and tell you what to do?
Similar project: https://github.com/arethetypeswrong/arethetypeswrong.github.io
My first questions are:
Beta Was this translation helpful? Give feedback.
All reactions