From c90abb32b634b21ec474f8f7f6167eb51192dbae Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Tue, 17 Mar 2026 20:41:14 +0100 Subject: [PATCH] chore: set tsup platform to node Plugins run server-side during the Quartz build step, not in the browser. Setting platform: 'node' tells esbuild to treat Node builtins as available externals and avoids CJS-in-ESM require() failures for any bundled dependencies that use Node APIs. --- tsup.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tsup.config.ts b/tsup.config.ts index 3b003aa..0322fe3 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -12,4 +12,5 @@ export default defineConfig({ target: "es2022", splitting: false, outDir: "dist", + platform: "node", });