Minor Changes
-
#4991
6095eaf9a
Thanks @segunadebayo! - Update build system
we use from a custom babel cli setup to
preconstruct.The previous build system transpiles the code in
src
directory todist/esm
anddist/cjs
keeping the same file structure. The new build system merges
all files insrc
and transpiles to a singleesm
andcjs
file.Potential Breaking Change: The side effect of this is that, if you
imported any function, component or hook using the undocumented approach
like
import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"
,
you'll notice that the this doesn't work anymore.Here's how to resolve it:
// Won't work 🎇 import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click" // Works ✅ import { useOutsideClick } from "@chakra-ui/hooks"
If this affected your project, we recommend that you import hooks, functions
or components the way it's shown in the documentation. This will help keep
your project future-proof.
Patch Changes
- Updated dependencies
[6095eaf9a
]:- @chakra-ui/form-control@1.5.0
- @chakra-ui/hooks@1.7.0
- @chakra-ui/react-utils@1.2.0
- @chakra-ui/utils@1.9.0
- @chakra-ui/visually-hidden@1.1.0