Added vite-plugin-checker to twenty-front (#3289)

* Added vite-plugin-checker to twenty-front

* Installed vite-plugin-checker globally
This commit is contained in:
Lucas Bordeau
2024-01-08 12:01:58 +01:00
committed by GitHub
parent d2e8df52cf
commit 71034849d3
3 changed files with 124 additions and 4 deletions

View File

@ -2,6 +2,7 @@ import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import svgr from 'vite-plugin-svgr';
import checker from 'vite-plugin-checker'
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
@ -18,6 +19,11 @@ export default defineConfig(({ mode }) => {
react({ jsxImportSource: "@emotion/react" }),
tsconfigPaths(),
svgr(),
checker({
typescript: {
tsconfigPath: "tsconfig.app.json"
}
}),
]
return {