Skip to content

Commit f8d4de4

Browse files
committed
Use ESM vitest config for bun
1 parent f48bd11 commit f8d4de4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/sim/vitest.config.ts renamed to apps/sim/vitest.config.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import path, { resolve } from 'path'
33
import react from '@vitejs/plugin-react'
44
import tsconfigPaths from 'vite-tsconfig-paths'
55
import { configDefaults, defineConfig } from 'vitest/config'
6-
7-
const nextEnv = require('@next/env')
8-
const { loadEnvConfig } = nextEnv.default || nextEnv
6+
import nextEnv from '@next/env'
97

108
const projectDir = process.cwd()
9+
const { loadEnvConfig } = nextEnv as { loadEnvConfig: (dir: string) => void }
1110
loadEnvConfig(projectDir)
1211

1312
export default defineConfig({

0 commit comments

Comments
 (0)