Skip to content

Commit

Permalink
Update vite setup asset (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed May 29, 2024
1 parent ea2c3d4 commit 64a0203
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/cli/src/setup-assets/vite/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ export default defineConfig({
// withtout inlining assets as base64:
assetsInlineLimit: 0,
},
ssr: {
optimizeDeps: {
/**
* Include dependencies here if they throw CJS<>ESM errors.
* For example, for the following error:
*
* > ReferenceError: module is not defined
* > at /Users/.../node_modules/example-dep/index.js:1:1
*
* Include 'example-dep' in the array below.
* @see https://vitejs.dev/config/dep-optimization-options
*/
include: [],
},
},
});

0 comments on commit 64a0203

Please sign in to comment.