We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ssr.resolve.conditions
import
1 parent 08f8ee2 commit 3831454Copy full SHA for 3831454
1 file changed
src/config.ts
@@ -215,6 +215,12 @@ export async function getVitestConfigFromNuxt(
215
},
216
}
217
218
+ configResolved(config) {
219
+ // https://github.com/nuxt/test-utils/issues/1635
220
+ if (config.ssr.resolve?.conditions) {
221
+ config.ssr.resolve.conditions = config.ssr.resolve.conditions.filter(x => x !== 'import')
222
+ }
223
+ },
224
225
],
226
} satisfies ViteUserConfig,
0 commit comments