Skip to content

Commit cec9ffe

Browse files
committed
fix(react): fix an issue with anatomy not being properly transpiled
1 parent 3f35a94 commit cec9ffe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ description: All notable changes will be documented in this file.
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- **Anatomy**: Fixed an issue where the `anatomy` was not properly transpiled.
12+
913
## [4.4.2] - 2024-11-14
1014

1115
### Fixed

packages/react/vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default defineConfig({
3131
target: 'esnext',
3232
minify: false,
3333
lib: {
34-
entry: globbySync('src/**/index.ts'),
34+
entry: globbySync(['src/**/index.ts', 'src/components/anatomy.ts']),
3535
fileName: (format) => (format === 'es' ? 'index.js' : 'index.cjs'),
3636
},
3737
rollupOptions: {
@@ -89,4 +89,4 @@ const isBarrelComponent = (file: path.ParsedPath) =>
8989
file.dir.endsWith(file.name) && !['presence', 'environment', 'locale'].includes(file.dir)
9090

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

0 commit comments

Comments
 (0)