Refactor components and add tests for improved functionality and coverage
This commit is contained in:
1 parent
bbb76eaa31
commit
ab6cd7c162
13 files changed
+253
-54
No files matched your search
+12
-1
@@ -12,6 +12,17 @@ export default defineConfig({
|
||||
output: "server",
|
||||
adapter: node({ mode: "ssr" }),
|
||||
vite: {
|
||||
plugins: [tailwindcss()]
|
||||
plugins: [tailwindcss()],
|
||||
optimizeDeps: {
|
||||
// Client-island deps that are not reachable from the SSR entry graph are
|
||||
// discovered mid-session, which makes Vite re-optimize and bump the browserHash.
|
||||
// Every already-served island module then 504s with "Outdated Optimize Dep",
|
||||
// hydration aborts, and the Solid lists on /blog, /projects and /search stay
|
||||
// empty. Pre-declaring them bundles them at startup so the hash never changes
|
||||
// underneath a page. Keep this list in sync with the imports of every
|
||||
// src/components/*.tsx island (solid-js, @lib/utils -> clsx + tailwind-merge,
|
||||
// @lib/search -> fuse.js).
|
||||
include: ["solid-js", "solid-js/web", "clsx", "tailwind-merge", "fuse.js"],
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user