Skip to content

Commit

Permalink
chore(deps): add deps vite-plugin-remove-console & optimize code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Aug 8, 2024
1 parent da94e7c commit 6387f23
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,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 { setupAutoImport } from './auto-import';
import { setupUnocss } from './unocss';
import { setupUnPluginIcon } from './unplugin-icon';
Expand All @@ -13,7 +14,8 @@ export function setupVitePlugins(viteEnv: Env.ImportMeta) {
setupUnocss(viteEnv),
...setupUnPluginIcon(viteEnv),
setupElegantRouter(),
Inspect()
Inspect(),
removeConsole()
];

return plugins;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"unplugin-icons": "0.19.1",
"vite": "5.3.5",
"vite-plugin-inspect": "0.8.5",
"vite-plugin-remove-console": "2.2.0",
"vite-plugin-svg-icons": "2.0.1"
},
"website": "https://antd.soybeanjs.cn"
Expand Down
2 changes: 1 addition & 1 deletion packages/simple-router/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class CreateRouter {
};
}

CustomRouterProvider: (loading:React.ReactNode) => JSX.Element = (loading) => {
CustomRouterProvider: (loading: React.ReactNode) => JSX.Element = loading => {
const reactiveRoute = {} as RouteLocationNormalizedLoaded;
// eslint-disable-next-line guard-for-in
for (const key in START_LOCATION_NORMALIZED) {
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const App = () => {
const locale = useAppSelector(getLocale);
const colors = useAppSelector(themeColors);
const darkMode = useAppSelector(getDarkMode);

const antdTheme = getAntdTheme(colors, darkMode);

useEffect(() => {
Expand Down

0 comments on commit 6387f23

Please sign in to comment.