-
|
About this one: Vitest Browser Mode 2.1.4 regression: The suggested workaround is to add the following to your export default mergeConfig(
viteConfig,
defineConfig({
define: {
'process.env': JSON.stringify({}),
},
}),
)Why are we using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. |
Beta Was this translation helpful? Give feedback.
Yes.
define: { someKey: JSON.stringify(someValue) }is sort of a convention about "define" feature in general, so that's why I wrote it so. https://vite.dev/config/shared-options#define