Skip to content

Commit

Permalink
Correct vite issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter-richardson committed Jul 23, 2024
1 parent f764a5f commit 3a64366
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 37 deletions.
24 changes: 0 additions & 24 deletions vite.ts

This file was deleted.

33 changes: 20 additions & 13 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { fileURLToPath } from 'node:url';
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config';
import viteConfig from './vite.ts';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import { fileURLToPath, URL } from 'node:url';
import checker from 'vite-plugin-checker';
import VueDevTools from 'vite-plugin-vue-devtools';
import { configDefaults, defineConfig } from 'vitest/config';

export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url))
}
})
)
// https://vitejs.dev/config/
/** @type {import ('vite').UserConfig} */
export default defineConfig({
plugins: [
checker({ typescript: true }),
vue(), vueJsx(), VueDevTools(),
], resolve: {
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }
}, test: {
environment: 'jsdom',
exclude: [ ...configDefaults.exclude, 'e2e/**' ],
root: fileURLToPath(new URL('./', import.meta.url))
}
});

0 comments on commit 3a64366

Please sign in to comment.