Move package to ESM + ESLint 9#435
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 |
bvaughn
left a comment
There was a problem hiding this comment.
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-importsplugin caught a problem on its own.