Skip to content

Commit b45e114

Browse files
committed
Enable compiler, skipping errors
1 parent d37cabb commit b45e114

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/src/pages/playground/fetchPlaygroundPrompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
} from "@phoenix/utils/promptUtils";
4444

4545
import {
46-
fetchPlaygroundPromptQuery,
46+
fetchPlaygroundPromptQuery as fetchPlaygroundPromptQueryType,
4747
fetchPlaygroundPromptQuery$data,
4848
PromptMessageRole,
4949
} from "./__generated__/fetchPlaygroundPromptQuery.graphql";
@@ -577,7 +577,7 @@ export const fetchPlaygroundPrompt = async ({
577577
promptVersionId?: string | null;
578578
tagName?: string | null;
579579
}) => {
580-
return fetchQuery<fetchPlaygroundPromptQuery>(
580+
return fetchQuery<fetchPlaygroundPromptQueryType>(
581581
RelayEnvironment,
582582
fetchPlaygroundPromptQuery,
583583
{

app/vite.config.mts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ export default defineConfig(() => {
1313
// disable react's built-in 300ms suspense fallback timer
1414
// without this build plugin we see a 300ms delay on most UI interactions
1515
reactFallbackThrottlePlugin(),
16-
1716
react({
1817
babel: {
19-
plugins: ["babel-plugin-react-compiler"],
18+
plugins: [["babel-plugin-react-compiler", { panicThreshold: "none" }]],
2019
},
2120
}),
22-
2321
relay,
24-
2522
lezer(),
26-
,
2723
];
2824
// Uncomment below to visualize the bundle size after running the build command also uncomment import { visualizer } from "rollup-plugin-visualizer";
2925
// plugins.push(visualizer());

0 commit comments

Comments
 (0)