Skip to content

Commit 467886e

Browse files
committed
fix(module): import defineConfig from vite
resolves #1303
1 parent 9742a5c commit 467886e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import process from 'node:process'
22
import type { Nuxt, NuxtConfig } from '@nuxt/schema'
33
import type { UserWorkspaceConfig, InlineConfig as VitestConfig } from 'vitest/node'
4-
import { defineConfig } from 'vitest/config'
4+
// this is deliberately the vite config function so the module runs if vitest is not installed
5+
import { defineConfig } from 'vite'
56
import type { TestProjectInlineConfiguration } from 'vitest/config'
67
import { setupDotenv } from 'c12'
78
import type { DotenvOptions } from 'c12'

0 commit comments

Comments
 (0)