From f55973f8c52a4321c88fc4d2d0f3d9859647b775 Mon Sep 17 00:00:00 2001 From: "Wong Zhao Wu (Bryan)" <70313929+kiritowu@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:07:09 +0800 Subject: [PATCH] Fix vite rollup config --- vite.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..c23d340 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,10 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + build: { + rollupOptions: { + external: [/^node:.*/] + } + } });