Compare commits

..

No commits in common. "50aa4c5d0706a4f9ef51b9cc0239b09f5b50475d" and "e14821c6995e82088efdfe16e53021afe471ac83" have entirely different histories.

View File

@ -10,9 +10,7 @@ export function clearStyles() {
} }
// HMR support - clear styles when module is replaced // HMR support - clear styles when module is replaced
if (import.meta.hot) { import.meta.hot?.dispose(() => clearStyles())
import.meta.hot.dispose(() => clearStyles())
}
export function createTheme<const T extends Record<string, string | number>>(name: string, values: T): T { export function createTheme<const T extends Record<string, string | number>>(name: string, values: T): T {
themes[name] = values as Record<string, string | number> themes[name] = values as Record<string, string | number>