Skip to content

Commit fcd9480

Browse files
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 #2775
1 parent 84a03ee commit fcd9480

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dev/esbuild.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export async function bundleJs(
5050
treeShaking: true,
5151
sourcemap: options.dev ? "linked" : false,
5252
minify: !options.dev,
53+
logOverride: {
54+
"suspicious-nullish-coalescing": "silent",
55+
},
5356

5457
jsxDev: options.dev,
5558
jsx: "automatic",

0 commit comments

Comments
 (0)