Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] Update documentation with installation instructions for Vite. #479

Open
samwightt opened this issue Sep 8, 2024 · 1 comment

Comments

@samwightt
Copy link
Contributor

Vite has specific settings that need to be set in vite.config.ts and vitest.config.ts in order for it to work with Evolu. Those are:

export default defineConfig({
	worker: {
		format: "es",
	},
	optimizeDeps: {
		exclude: ["@evolu/react", "@sqlite.org/sqlite-wasm"],
		include: ["react-dom"],
	},
})

It would be great if this was included as part of the installation instructions!

@steida
Copy link
Contributor

steida commented Sep 9, 2024

I will review it after the new sync and update docs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants