From fcd94809c8ad47d3d676a4585320f3f1590eb3d0 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 13 May 2025 00:13:21 +0200 Subject: [PATCH] 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 --- src/dev/esbuild.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dev/esbuild.ts b/src/dev/esbuild.ts index 2fb34bd2..d56eb006 100644 --- a/src/dev/esbuild.ts +++ b/src/dev/esbuild.ts @@ -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",