This commit is contained in:
lda
2026-04-12 02:41:36 +07:00 Unverified
parent 6e91d0b599
commit 34e40e8c0d
13 changed files with 399 additions and 132 deletions
+9 -5
View File
@@ -17,11 +17,15 @@ function sourcemapEnabled(): boolean {
export default defineConfig({
plugins: [
react({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
react(
process.env.UI_REACT_COMPILER === "1"
? {
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}
: undefined,
),
],
base: "/ui/",
resolve: {