Skip to content

Commit

Permalink
Merge pull request #430 from Giphy/react-components/nextjs-use-client…
Browse files Browse the repository at this point in the history
…-esm

react-components: use cilent added to barrel file
  • Loading branch information
giannif authored Dec 13, 2023
2 parents 02d8658 + 25266c7 commit eb731d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/poor-zoos-float.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions packages/react-components/src/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit eb731d0

Please sign in to comment.