Eelco Wiersma

Results 102 comments of Eelco Wiersma

After some more testing the .mjs extension seems to cause issues, renaming the esm files to .js resolves the issues.

Thanks @balazsorban44 This issue is related to: https://github.com/chakra-ui/chakra-ui/issues/6436 Chakra UI uses .js extension for ESM modules. Any other package that depends on Chakra UI and uses .mjs extension for ESM...

Ok, my bad I misread this yesterday. Then we can agree using both 'import' and 'require' is the way to go, leaves us only with the question why the compiler...

So if no .mjs are found (even though type = module , or 'import' is defined, it will always treat the package as cjs?

So if no .mjs are found (even though type = module , or 'import' is defined, it will always treat the package as cjs?

I removed all 'contextWrapper' related code, because it was hard to read and add a lot of unneeded complexity and size to the overall package. Instead I opted for an...

Cool, I'll go ahead with these changes if @jensneuse agrees too. SSR will still work as before with Next.js, no changes needed.

Closing this for now as will we implement the learnings into SWR and React Query hooks

@sergio-bravo Do you have an example how to get this working with webpack and date-fns-timezone?