config: add explicit module resolution for Vercel

- Add resolve.extensions to help with .js module resolution
- Include applesauce packages in optimizeDeps for better bundling
- Attempt to fix Vercel build issue with async-event-store.js
This commit is contained in:
Gigi
2025-10-07 05:52:16 +01:00
parent 559c288215
commit 7af0827019

View File

@@ -5,6 +5,12 @@ export default defineConfig({
plugins: [react()],
server: {
port: 9802
},
resolve: {
extensions: ['.js', '.ts', '.tsx', '.json']
},
optimizeDeps: {
include: ['applesauce-core', 'applesauce-factory', 'applesauce-relay', 'applesauce-react']
}
})