Skip to content

Commit ee10ee3

Browse files
committed
fix(preact): pre-optimize @preact/signals to prevent dev reload flakiness
1 parent d0fe1ec commit ee10ee3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/preact': patch
3+
---
4+
5+
Pre-optimizes `@preact/signals` and `preact/hooks` in the Vite dep optimizer to prevent late discovery triggering full page reloads during dev

packages/integrations/preact/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ function configEnvironmentPlugin(compat: boolean | undefined): Plugin {
126126
'@astrojs/preact/client.js',
127127
'preact',
128128
'preact/jsx-runtime',
129+
'preact/hooks',
130+
'@astrojs/preact > @preact/signals',
129131
];
130132
}
131133

0 commit comments

Comments
 (0)