Merge pull request 'Fix HMR import.meta.hot for Bun static analysis' (#1) from probablycorey/forge:fix/hmr-static-analysis into main
Reviewed-on: #1
This commit is contained in:
commit
50aa4c5d07
|
|
@ -10,7 +10,9 @@ export function clearStyles() {
|
|||
}
|
||||
|
||||
// HMR support - clear styles when module is replaced
|
||||
import.meta.hot?.dispose(() => clearStyles())
|
||||
if (import.meta.hot) {
|
||||
import.meta.hot.dispose(() => clearStyles())
|
||||
}
|
||||
|
||||
export function createTheme<const T extends Record<string, string | number>>(name: string, values: T): T {
|
||||
themes[name] = values as Record<string, string | number>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user