Skip to content

Commit

Permalink
feat(dev): update vite config for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmason committed Apr 12, 2024
1 parent 9f9e368 commit 0ea214b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default defineConfig({
build: {
outDir: './build',
target: 'esnext',
commonjsOptions: { include: [] },
rollupOptions: {
output: {
manualChunks: (id) => {
Expand All @@ -57,7 +56,6 @@ export default defineConfig({
},
},
},
optimizeDeps: { disabled: false },
plugins: [
eslint({ cache: false, formatter: 'stylish' }),
react(),
Expand All @@ -69,5 +67,10 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: './tests/setup.js',
server: {
// Prevents Vitest from crashing when it
// encounters a module that exports CSS.
deps: { inline: true },
},
},
});

0 comments on commit 0ea214b

Please sign in to comment.