-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
module: move cjs type check behind experimental-modules flag #29732
Conversation
//cc @nodejs/modules-active-members |
I'd like to suggest we fast-track this change as much as possible too. |
one more checkmark from a core collab from after the fast track label and this can be fast tracked |
I treated the comment as the fast-tracking request but I also added the checkmark. So I think this can land now! |
CI is failing because of an unrelated issue. To unblock this, go over to #29741 (comment) and approve the PR and fast-tracking. |
Landed in 2825e11 |
PR-URL: #29732 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
PR-URL: #29732 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
This puts the check added in #29492 behind the
--experimental-modules
flag instead of being on by default.We added this error for require(.js) inside of "type": "module" packages to reduce an edge case hazard but it has caused more compatibility issues itself, for which we need to discuss a way forward.
While we do that, at least restricting the error to
--experimental-modules
usage will avoid unintentional compatibility issues unflagged.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes