From 4554f1eae03dd26a11d79ebb5bf11bd4ec7bcc78 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Tue, 26 Nov 2024 14:37:30 +0700 Subject: [PATCH] Enable preprocessing script tags in vitePreprocess This fixes the error about TypeScript enums not being natively supported --- frontend/svelte.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index 214f94b1ab..db1b6ab2cb 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -17,6 +17,7 @@ const config = { }, preprocess: [ vitePreprocess({ + script: true, postcss: true }) ],