From 630c683459cc0ec67178c9d10c9b74ea8d43462a Mon Sep 17 00:00:00 2001 From: Tyler <26290074+thegitduck@users.noreply.github.com> Date: Sat, 25 Jan 2025 22:23:46 -0800 Subject: [PATCH] add back compiler config --- .../monorepo/packages/waku-project/tsconfig.json | 3 +-- examples/05_compiler/waku.config.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/e2e/fixtures/monorepo/packages/waku-project/tsconfig.json b/e2e/fixtures/monorepo/packages/waku-project/tsconfig.json index dd6fe8902..0d0f8993d 100644 --- a/e2e/fixtures/monorepo/packages/waku-project/tsconfig.json +++ b/e2e/fixtures/monorepo/packages/waku-project/tsconfig.json @@ -14,6 +14,5 @@ "jsx": "react-jsx", "rootDir": "./src", "outDir": "./dist" - }, - "include": ["src"] + } } diff --git a/examples/05_compiler/waku.config.ts b/examples/05_compiler/waku.config.ts index cc4237981..2604d29ad 100644 --- a/examples/05_compiler/waku.config.ts +++ b/examples/05_compiler/waku.config.ts @@ -1,8 +1,23 @@ import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'waku/config'; +import react from '@vitejs/plugin-react'; + +const ReactCompilerConfig = {}; + +const getConfig = () => ({ + plugins: [ + react({ + babel: { + plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]], + }, + }), + ], +}); export default defineConfig({ unstable_viteConfigs: { + 'dev-main': getConfig, + 'build-client': getConfig, common: () => ({ plugins: [tailwindcss()], }),