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:
@@ -50,6 +50,9 @@ export async function bundleJs(
|
|||||||
treeShaking: true,
|
treeShaking: true,
|
||||||
sourcemap: options.dev ? "linked" : false,
|
sourcemap: options.dev ? "linked" : false,
|
||||||
minify: !options.dev,
|
minify: !options.dev,
|
||||||
|
logOverride: {
|
||||||
|
"suspicious-nullish-coalescing": "silent",
|
||||||
|
},
|
||||||
|
|
||||||
jsxDev: options.dev,
|
jsxDev: options.dev,
|
||||||
jsx: "automatic",
|
jsx: "automatic",
|
||||||
|
|||||||
Reference in New Issue
Block a user