From cab30b1d8b9d0faed42230e0ff207d46c850e976 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 16a0b10..7d411c6 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -13,6 +13,7 @@ export default defineConfig({ target: "es2022", splitting: false, outDir: "dist", + platform: "node", esbuildOptions(options) { options.jsx = "automatic"; options.jsxImportSource = "preact";