Skip to content

Commit

Permalink
Adding use client banner
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Apr 19, 2024
1 parent c0eb51e commit 447b450
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useCombinedRefs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { Ref } from 'react'

/**
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useMediaQuery.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { useEffect, useState } from 'react'

import { breakpoints } from '~/css/breakpoints'
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default defineConfig({
outDir: path.resolve(__dirname, 'dist'),
rollupOptions: {
external: Object.keys(peerDependencies),
output: {
banner: "'use client';"
}
},
minify: false,
},
Expand Down

0 comments on commit 447b450

Please sign in to comment.