Skip to content

Commit

Permalink
build: add use client to focus trap
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Jan 9, 2025
1 parent aeaeb1c commit 159a36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default defineConfig({

const renderBanner = (fileName: string) => {
const file = path.parse(fileName)
if (['portal', 'frame', 'client-only'].includes(file.name)) {
if (['portal', 'frame', 'client-only', 'focus-trap'].includes(file.name)) {
return `'use client';`
}
if (isBarrelComponent(file) || isSpecialFile(file)) {
Expand Down

0 comments on commit 159a36b

Please sign in to comment.