Skip to content

Commit

Permalink
build(deps): add deps vite-plugin-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Aug 24, 2024
1 parent a702d5c commit 2445424
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { PluginOption } from 'vite';
import react from '@vitejs/plugin-react';
import Inspect from 'vite-plugin-inspect';
import removeConsole from 'vite-plugin-remove-console';
import checker from 'vite-plugin-checker';
import { setupAutoImport } from './auto-import';
import { setupUnocss } from './unocss';
import { setupUnPluginIcon } from './unplugin-icon';
Expand All @@ -15,7 +16,10 @@ export function setupVitePlugins(viteEnv: Env.ImportMeta) {
...setupUnPluginIcon(viteEnv),
setupElegantRouter(),
Inspect(),
removeConsole()
removeConsole(),
checker({
typescript: true
})
];

return plugins;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
"unplugin-auto-import": "0.18.2",
"unplugin-icons": "0.19.2",
"vite": "5.4.0",
"vite-plugin-checker": "^0.7.2",
"vite-plugin-inspect": "0.8.5",
"vite-plugin-remove-console": "2.2.0",
"vite-plugin-svg-icons": "2.0.1"
Expand Down
126 changes: 126 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 2445424

Please sign in to comment.