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 3905eb8e8e
commit b5a87bf9cc
No known key found for this signature in database

View file

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