From 00a9d962471dfbc1e19be7e8c95cfa155c362a36 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:40:51 +0100 Subject: [PATCH] Fix vite deprecations (#2885) I wasn't able to fully migrate to esmodules because eslint fails then. Thus there's still a deprecation warning when running vite. (https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated) --- web/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index 69186c25d..ef693d338 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -29,8 +29,8 @@ function externalCSSPlugin() { return { name: 'external-css', transformIndexHtml: { - enforce: 'post', - transform() { + order: 'post', + handler() { return [ { tag: 'link',