Skip to content

Commit 08f3e7a

Browse files
committed
Define global as globalThis for swagger-ui
1 parent ea7cb11 commit 08f3e7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export default {
6161
},
6262
},
6363
},
64+
define: {
65+
// swagger-ui's CJS deps reference Node's `global`; Rolldown no longer shims it
66+
global: "globalThis",
67+
},
6468
plugins: isWatch ? [notifyAir()] : [],
6569
publicDir: false,
6670
build: {

0 commit comments

Comments
 (0)