Skip to content

Commit 81ce9d3

Browse files
authored
fix(ui): break circular import between styled-system and primitives (#8754)
1 parent ef420d9 commit 81ce9d3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Fix a circular import in the styled-system that could crash module initialization under bundler configurations with tree-shaking disabled.

packages/ui/src/styledSystem/InternalThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ThemeProvider } from '@emotion/react';
33
import React from 'react';
44

5-
import { useAppearance } from '../customizables';
5+
import { useAppearance } from '../customizables/AppearanceContext';
66
import type { InternalTheme } from './types';
77

88
type InternalThemeProviderProps = React.PropsWithChildren<{

0 commit comments

Comments
 (0)