-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Move package to ESM + ESLint 9 #435
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@bvaughn Is this PR ok with you? E2E tests are failing because of commonjs tests. So how about we drop cjs entirely and release a v3? I can do it if it's ok with you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the effort spent on this PR. It's kind of a noisy change though, and (as it is) I think it could cause a couple of small regressions (commented). I'm not sure if I want to move forward with it.
@bvaughn What should we do about the cjs issue? Should we drop cjs support and go for a v3? |
Hmm. I don't think there's a strong reason to drop CJS support, unless it would in some way dramatically improve the source code/maintainence? |
My knowledge on the topic of CJS/ESM is limited but since the ecosystem has been moving on from CJS and been dropping support since Node 16 got deprecated (I'm not sure why but that's what I've witnessed), the project itself has to use ESM ( Also I think people who use React mostly use ESM and the ones who aren't up to date will be ok with v2. |
Hey @bvaughn. I fixed an import issue I had made and now one test is strangely failing:
The test itself makes sense but I couldn't find anywhere in the code that throws this exception. Why wasn't the error failing before? |
I'm also getting warnings saying One other thing I'm seeing is the exported |
In this PR I have:
no-restricted-imports
plugin caught a problem on its own.