Slide 8
Slide 8 text
Indexing (cont.)
vite.config.ts
pagefind.js must be removed from the bundle by specifying external in rollupOptions.
build: { rollupOptions: { external: ['/pagefind/pagefind.js?url'] } },
export default defineConfig({
plugins: [
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
unstable_singleFetch: true,
},
}),
tsconfigPaths(),
],
})