Skip to content

Commit

Permalink
chore: use ESM Vite config
Browse files Browse the repository at this point in the history
Resolves a deprecation warning.
  • Loading branch information
targos committed Dec 13, 2023
1 parent 5218ea4 commit dc7feca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"src/demo",
"src/index.tsx",
"test-e2e",
"vite.config.ts",
"vite.config.mts",
"playwright*"
],
"compilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src", "test-e2e", "playwright.config.ts", "vite.config.ts"],
"include": ["src", "test-e2e", "playwright.config.ts", "vite.config.mts"],
"exclude": ["node_modules"]
}
3 changes: 2 additions & 1 deletion vite.config.ts → vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import react from '@vitejs/plugin-react-swc';
import analyze from 'rollup-plugin-analyzer';
import { AliasOptions, defineConfig } from 'vite';
import type { AliasOptions } from 'vite'
import { defineConfig } from 'vitest/config';

// https://vitejs.dev/config/
export default () => {
Expand Down

0 comments on commit dc7feca

Please sign in to comment.