Closed titenis closed 11 months ago
I think that depends on your project? But pretty sure you're gonna go with deps.optimizer.web.include
.
I think that depends on your project? But pretty sure you're gonna go with
deps.optimizer.web.include
.
I can confirm this worked for me.
deps: {
- inline: ['vitest-canvas-mock'],
+ optimizer: {
+ web: {
+ include: ['vitest-canvas-mock'],
+ },
+ },
},
The funny thing is that vitest actually suggest this, but I didn't notice at first:
Updated README as well. Thanks!
Starting with Vitest 0.34
deps.inline
is deprecatedVitest "deps.inline" is deprecated. If you rely on vite-node directly, use "server.deps.inline" instead. Otherwise, consider using "deps.optimizer.web.include"
How configuration should be migrated?