diff --git a/compiler/apps/playground/components/Editor/EditorImpl.tsx b/compiler/apps/playground/components/Editor/EditorImpl.tsx index d7229361d39c2..0c12b482a3b7d 100644 --- a/compiler/apps/playground/components/Editor/EditorImpl.tsx +++ b/compiler/apps/playground/components/Editor/EditorImpl.tsx @@ -13,7 +13,7 @@ import BabelPluginReactCompiler, { CompilerErrorDetail, CompilerDiagnostic, Effect, - ErrorSeverity, + ErrorCategory, parseConfigPragmaForTests, ValueKind, type Hook, @@ -258,7 +258,7 @@ function compile( console.error(err); error.details.push( new CompilerErrorDetail({ - severity: ErrorSeverity.Invariant, + category: ErrorCategory.Invariant, reason: `Unexpected failure when transforming input! ${err}`, loc: null, suggestions: null, diff --git a/compiler/packages/babel-plugin-react-compiler/src/index.ts b/compiler/packages/babel-plugin-react-compiler/src/index.ts index 2830d70d95c8d..a8b934160a023 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/index.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/index.ts @@ -12,6 +12,7 @@ export { CompilerDiagnostic, CompilerSuggestionOperation, ErrorSeverity, + ErrorCategory, LintRules, type CompilerErrorDetailOptions, type CompilerDiagnosticOptions,