mirror of
https://github.com/quartz-community/graph.git
synced 2026-07-22 02:50:25 +00:00
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:
parent
a0bdebe676
commit
d0f33cf0c0
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ export default defineConfig({
|
|||
target: "es2022",
|
||||
splitting: false,
|
||||
outDir: "dist",
|
||||
platform: "node",
|
||||
esbuildOptions(options) {
|
||||
options.jsx = "automatic";
|
||||
options.jsxImportSource = "preact";
|
||||
|
|
|
|||
Loading…
Reference in a new issue