Skip to content

Commit

Permalink
docs(vite-node): disable optimizeDeps in example (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed May 9, 2022
1 parent 5f82280 commit 3dfc2eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vite-node/README.md
Expand Up @@ -37,7 +37,12 @@ import { ViteNodeServer } from 'vite-node/server'
import { ViteNodeRunner } from 'vite-node/client'

// create vite server
const server = await createServer()
const server = await createServer({
optimizeDeps: {
// It's recommended to disable deps optimization
disabled: true,
},
})
// this is need to initialize the plugins
await server.pluginContainer.buildStart({})

Expand Down

0 comments on commit 3dfc2eb

Please sign in to comment.