From 5c58270bde8266b3f23ab05a9d819c0120ae8204 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 25 Jul 2024 16:04:55 +0200 Subject: [PATCH] build(frontend): check ts on build --- frontend/vite.config.prod.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/vite.config.prod.js b/frontend/vite.config.prod.js index 2290376bf..cf5bc5677 100644 --- a/frontend/vite.config.prod.js +++ b/frontend/vite.config.prod.js @@ -6,6 +6,7 @@ import replace from "vite-plugin-filter-replace"; import path from "node:path"; import { splitVendorChunkPlugin } from "vite"; import childProcess from "child_process"; +import { checker } from "vite-plugin-checker"; function pad(numbers, maxLength, fillString) { return numbers.map((number) => @@ -63,6 +64,11 @@ export default { generatePreviewFonts(); }, }, + checker({ + typescript: { + tsconfigPath: path.resolve(__dirname, "./tsconfig.json"), + }, + }), splitVendorChunkPlugin(), VitePWA({ injectRegister: "networkfirst",