Skip to content

Commit

Permalink
add back compiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersayshi committed Jan 26, 2025
1 parent c5a5ced commit 630c683
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/fixtures/monorepo/packages/waku-project/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
"jsx": "react-jsx",
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}
}
15 changes: 15 additions & 0 deletions examples/05_compiler/waku.config.ts
Original file line number Diff line number Diff line change
@@ -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()],
}),
Expand Down

0 comments on commit 630c683

Please sign in to comment.