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()], }),