diff --git a/.changeset/poor-zoos-float.md b/.changeset/poor-zoos-float.md new file mode 100644 index 00000000..931d5466 --- /dev/null +++ b/.changeset/poor-zoos-float.md @@ -0,0 +1,8 @@ +--- +'@giphy/react-components': patch +--- + +react-components: add 'use client' to barrel file (index.ts) in root of package +so tsup doesn't treeshake it out + +See: https://github.com/egoist/tsup/issues/835 diff --git a/packages/react-components/src/index.ts b/packages/react-components/src/index.ts index 01b358ac..c6e0bcb0 100644 --- a/packages/react-components/src/index.ts +++ b/packages/react-components/src/index.ts @@ -1,3 +1,4 @@ +'use client' import { appendGiphySDKRequestHeader } from '@giphy/js-util' export { default as Attribution } from './components/attribution' export { default as AttributionOverlay } from './components/attribution/overlay'