From ea1a2dc8db34ec42e8f56ca8b4020be8bfe58972 Mon Sep 17 00:00:00 2001 From: woxtu Date: Wed, 29 Nov 2023 10:41:11 +0900 Subject: [PATCH] Update the Vitest configuration (#12493) --- packages/frontend/vite.config.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index da976b7917..4d2bb00e33 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -150,10 +150,14 @@ export function getConfig(): UserConfig { test: { environment: 'happy-dom', deps: { - inline: [ - // XXX: misskey-dev/browser-image-resizer has no "type": "module" - 'browser-image-resizer', - ], + optimizer: { + web: { + include: [ + // XXX: misskey-dev/browser-image-resizer has no "type": "module" + 'browser-image-resizer', + ], + }, + }, }, }, };