From 9784588ae798f5fbc4fc5f229cf6e242fa0270bd Mon Sep 17 00:00:00 2001 From: Weston Harper Date: Thu, 10 Oct 2024 17:39:02 -0500 Subject: [PATCH] fix(example): fix HDR loader in react example --- examples/react-app/vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/react-app/vite.config.ts b/examples/react-app/vite.config.ts index 607cddccb..ab6707af2 100644 --- a/examples/react-app/vite.config.ts +++ b/examples/react-app/vite.config.ts @@ -26,5 +26,12 @@ export default defineConfig(() => { preview: { port: 4000, }, + optimizeDeps: { + esbuildOptions: { + loader: { + '.hdr': 'dataurl', + }, + }, + } }; });