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