We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fe1ec commit ee10ee3Copy full SHA for ee10ee3
2 files changed
.changeset/preact-optimize-signals.md
@@ -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
@@ -126,6 +126,8 @@ function configEnvironmentPlugin(compat: boolean | undefined): Plugin {
126
'@astrojs/preact/client.js',
127
'preact',
128
'preact/jsx-runtime',
129
+ 'preact/hooks',
130
+ '@astrojs/preact > @preact/signals',
131
];
132
}
133
0 commit comments