Open samesfahani-tuplehealth opened 1 month ago
For now the simplest way is to switch back to the Babel plugin. They working a Rust port, I hope this can be builtin in SWC in the future!
how can I New React Compiler setting Vite project, now? I try to rewrite "vite.config.ts" file (plus plugins section) ..... but the "babel" letter makes errors
You should use vite-plugin-react
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const ReactCompilerConfig = {};
export default defineConfig({
plugins: [
react({
babel: {
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
},
}),
],
});
Will there be instructions on how to use the new React Compiler given that it's babel based?