web
web copied to clipboard
cjs useCookieValue will include whole react-hookz rather than just one hooks
What is the current behavior?
Included whole lib in the bundle
Steps to Reproduce
- one of the file using
import { useCookieValue } from "@react-hookz/web/cjs/useCookieValue/useCookieValue" - use
webpack-bundle-analyzerto view the bundle
What is the expected behavior?
It should include useCookieValue only rather than whole bundle
I believe the potential cause is because we import the other hooks in this syntax
import { useFirstMountState, useMountEffect, useSafeState, useSyncedRef } from '..';