fix imports

This commit is contained in:
Drake Costa committed 2025-07-22 06:32:37 -07:00
1 parent 38b2fa9dc5
commit f01edb403e
1 file changed
+5 -5
+5 -5
View File
@@ -1,8 +1,8 @@
import react from '@vitejs/plugin-react'
import path, { resolve } from 'path'
import { fileURLToPath } from 'url'
import tsconfigPaths from 'vite-tsconfig-paths'
import { resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
// Some tools like Vitest VSCode extensions, have trouble with resolving relative paths,
// as they use the directory of the test file as `cwd`, which makes them believe that
@@ -18,7 +18,7 @@ export default defineConfig({
],
resolve: {
alias: {
'@ui': path.resolve(__dirname, './../../packages/ui/src'),
'@ui': resolve(__dirname, './../../packages/ui/src'),
},
},
test: {