Skip to content

Commit

Permalink
fix(react): resolve an issue with nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Mar 4, 2024
1 parent d91305b commit 2ebf6f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/frameworks/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ description: All notable changes to this project will be documented in this file

## [Unreleased]

### Fixed

- Resolved an issue with using `Locale` in Next.js projects.

## [2.2.2] - 2024-02-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/react/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const renderBanner = (fileName: string) => {

// e.g Avatar.tsx, Accordion.tsx
const isBarrelComponent = (file: path.ParsedPath) =>
file.name === file.dir && !['presence', 'environment'].includes(file.dir)
file.name === file.dir && !['presence', 'environment', 'locale'].includes(file.dir)

const isSpecialFile = (file: path.ParsedPath) =>
['index', 'factory', 'compose-refs'].includes(file.name)

0 comments on commit 2ebf6f8

Please sign in to comment.