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 getting errors because zustand/middleware.js and zustand/shallow.js have non-supported syntax in them.
There is a .cjs.js file for each but then I have to import from 'zustand/middleware.cjs' which feels a bit weird, but it's a successful workaround.
It seems with additional non-main entries like these, they do not have the convenience of specifying main and module in the package.json like the main entry has. So the safest bet would probably be to have their .js file be the lowest common demoninator, commonjs.
I'm not sure these two entries need to be exported as anything but commonjs.
The text was updated successfully, but these errors were encountered:
I'm getting errors because zustand/middleware.js and zustand/shallow.js have non-supported syntax in them.
There is a .cjs.js file for each but then I have to import from 'zustand/middleware.cjs' which feels a bit weird, but it's a successful workaround.
It seems with additional non-main entries like these, they do not have the convenience of specifying
main
andmodule
in the package.json like the main entry has. So the safest bet would probably be to have their.js
file be the lowest common demoninator, commonjs.I'm not sure these two entries need to be exported as anything but commonjs.
The text was updated successfully, but these errors were encountered: