Skip to content

Commit

Permalink
Update ESBuild error message types (#16404)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jun 14, 2024
1 parent fb45e7d commit f9826a3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/build/esbuild-plugins/throw-warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit f9826a3

Please sign in to comment.