function Loader() { const [resource] = createResource(fetchResourceFn); return <Suspense fallback={<div>Loading...</div>}> <Show when={resource()} keyed> {(resourceVal) => <ResourceRenderer resource={resourceVal}/>} </Show> </Suspense>}
import solid from "solid-start/vite";import { defineConfig } from "vite";export default defineConfig({ plugins: [solid()], ssr: { external: ["pdfjs-dist"], },});