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 a0bdebe676
commit d0f33cf0c0
No known key found for this signature in database

View file

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