Skip to content

Commit

Permalink
feat: 🚀 add plugins to the demonstration project
Browse files Browse the repository at this point in the history
  • Loading branch information
limuen committed Jun 18, 2024
1 parent e29b379 commit f2a0004
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/defaultProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react-swc": "^3.5.0",
"vite-plugin-checker": "^0.6.2",
"vite": "5.2.0",
"@limuen/viteconfig": "workspace:*",
"@limuen/tsconfig": "workspace:*"
Expand Down
6 changes: 5 additions & 1 deletion apps/defaultProject/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { defineConfig, mergeConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import checker from "vite-plugin-checker";
import viteConfig from "@limuen/viteconfig";

export default defineConfig(configEnv => {
return mergeConfig(viteConfig(configEnv), {});
return mergeConfig(viteConfig(configEnv), {
plugins: [react(), checker({ typescript: true })]
});
});
38 changes: 38 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2a0004

Please sign in to comment.