Skip to content

Commit e6f992e

Browse files
authored
Merge branch 'main' into chore/revert-solid-issue
2 parents 651f898 + 748d2e9 commit e6f992e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.changeset/soft-peas-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/devtools': patch
3+
---
4+
5+
fix import.meta usage in rsbuild

packages/devtools/src/context/pip-context.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ export const PiPProvider = (props: PiPProviderProps) => {
5555
)
5656
}
5757

58-
const meta = typeof import.meta !== 'undefined' ? import.meta : null
59-
60-
meta?.hot?.on('vite:beforeUpdate', () => {
58+
import.meta.hot?.on('vite:beforeUpdate', () => {
6159
localStorage.setItem('pip_open', 'false')
6260
closePipWindow()
6361
})

0 commit comments

Comments
 (0)