You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project that only uses es modules and therefore doesn't have a transformation step for other module formats. When I imported date-fns-tz I got an error that some modules don't export a default.
Hi @marnusw,
thanks for your awesome project.
I'm working on a project that only uses es modules and therefore doesn't have a transformation step for other module formats. When I imported date-fns-tz I got an error that some modules don't export a default.
So I investigated and found out that the esm functions don't import from
date-fns/esm
but fromdate-fns
directly (example: https://github.com/marnusw/date-fns-tz/blob/master/src/zonedTimeToUtc/index.js#L1).I edited your build script to modify the paths. I hope I got that hole situation right?
The text was updated successfully, but these errors were encountered: