Skip to content

Commit

Permalink
Merge pull request #272 from arekmaz/patch-2
Browse files Browse the repository at this point in the history
fix vite example
  • Loading branch information
steida authored Dec 2, 2023
2 parents cd18f94 + e73f4f3 commit b28c3d1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions examples/vite/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@ export default defineConfig({
// Another workaround for Vite bug: https://github.com/radix-ui/primitives/discussions/1915#discussioncomment-5733178
include: ["react-dom"],
},
// assets lazily loaded by evolu
assetsInclude: [/@scure\/bip39/],
build: {
rollupOptions: {
// lazily loaded modules
external: [/@scure\/bip39/],
},
},
worker: {
format: "es",
},
preview: {
headers: {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp",
},
},
plugins: [
react(),
{
Expand Down

1 comment on commit b28c3d1

@vercel
Copy link

@vercel vercel bot commented on b28c3d1 Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evolu – ./

evolu-evolu.vercel.app
evolu-git-main-evolu.vercel.app
evolu.vercel.app
www.evolu.dev
evolu.dev

Please sign in to comment.