From f01edb403efdc0717fcc3a7f502ac375a2092f28 Mon Sep 17 00:00:00 2001 From: Drake Costa Date: Tue, 22 Jul 2025 06:32:37 -0700 Subject: [PATCH] fix imports --- apps/studio/vitest.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/studio/vitest.config.ts b/apps/studio/vitest.config.ts index 83e01c00e51..1f453470208 100644 --- a/apps/studio/vitest.config.ts +++ b/apps/studio/vitest.config.ts @@ -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: {