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