get that to work

This commit is contained in:
lda
2026-04-12 02:45:10 +07:00 Unverified
parent 34e40e8c0d
commit d0006f2db5
3 changed files with 32 additions and 1 deletions
+6 -1
View File
@@ -15,13 +15,18 @@ function sourcemapEnabled(): boolean {
return rustLog.includes("debug") || rustLog.includes("trace");
}
const ReactCompilerConfig = {
target: '18',
runtimeModule: 'react-compiler-runtime', // Redirects the missing specifier
};
export default defineConfig({
plugins: [
react(
process.env.UI_REACT_COMPILER === "1"
? {
babel: {
plugins: ["babel-plugin-react-compiler"],
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
},
}
: undefined,