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.
This commit is contained in:
saberzero1 2026-03-17 20:41:14 +01:00
parent f4f933584e
commit 2250ce03e9
No known key found for this signature in database

View file

@ -56,6 +56,7 @@ export default defineConfig({
target: "es2022",
splitting: false,
outDir: "dist",
platform: "node",
esbuildOptions(options) {
options.jsx = "automatic";
options.jsxImportSource = "preact";