fix(esbuild): disable spammy warning for monaco editor (#2928)

It's a super spammy warning message when you're using the monaco editor.
They have code like that as the result of minifcation.

Fixes https://github.com/denoland/fresh/issues/2775
This commit is contained in:
Marvin Hagemeister
2025-05-13 00:13:21 +02:00
committed by GitHub
parent 84a03ee66c
commit fcd94809c8
+3
View File
@@ -50,6 +50,9 @@ export async function bundleJs(
treeShaking: true,
sourcemap: options.dev ? "linked" : false,
minify: !options.dev,
logOverride: {
"suspicious-nullish-coalescing": "silent",
},
jsxDev: options.dev,
jsx: "automatic",