Update ESBuild error message types (#16404)

This commit is contained in:
fisker Cheung authored and GitHub committed 2024-06-14 16:33:52 +08:00
1 parent fb45e7d463
commit f9826a3d72
1 file changed
+12 -1
@@ -8,12 +8,18 @@ Open https://esbuild.github.io/api/#log-override, run
in console to get all message ids.
*/
const ESBUILD_MESSAGE_IDS = [
"assert-to-with",
"assert-type-json",
"assign-to-constant",
"assign-to-define",
"assign-to-import",
"call-import-namespace",
"class-name-will-throw",
"commonjs-variable-in-esm",
"delete-super-property",
"direct-eval",
"duplicate-case",
"duplicate-class-member",
"duplicate-object-key",
"empty-import-meta",
"equals-nan",
@@ -25,6 +31,9 @@ const ESBUILD_MESSAGE_IDS = [
"private-name-will-throw",
"semicolon-after-return",
"suspicious-boolean-not",
"suspicious-define",
"suspicious-logical-operator",
"suspicious-nullish-coalescing",
"this-is-undefined-in-esm",
"unsupported-dynamic-import",
"unsupported-jsx-comment",
@@ -33,15 +42,17 @@ const ESBUILD_MESSAGE_IDS = [
"css-syntax-error",
"invalid-@charset",
"invalid-@import",
"invalid-@nest",
"invalid-@layer",
"invalid-calc",
"js-comment-in-css",
"undefined-composes-from",
"unsupported-@charset",
"unsupported-@namespace",
"unsupported-css-property",
"unsupported-css-nesting",
"ambiguous-reexport",
"different-path-case",
"empty-glob",
"ignored-bare-import",
"ignored-dynamic-import",
"import-is-undefined",