valaxy-theme-hairy 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/valaxy.config.ts +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-hairy",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "packageManager": "pnpm@8.15.8",
5
5
  "author": {
6
6
  "email": "wwu710632@gmail.com",
package/valaxy.config.ts CHANGED
@@ -1,14 +1,10 @@
1
1
  import type { DefaultTheme, ValaxyTheme } from 'valaxy'
2
2
  import { defineTheme, mergeValaxyConfig } from 'valaxy'
3
- import { addonAlgolia } from 'valaxy-addon-algolia'
4
3
  import { withImageConfig, withThemeConfig } from './node'
5
4
  import type { ThemeConfig } from './types'
6
5
 
7
6
  export default defineTheme<ThemeConfig>((options) => {
8
7
  let config: ValaxyTheme<ThemeConfig & DefaultTheme.Config> = {
9
- addons: [
10
- addonAlgolia(),
11
- ],
12
8
  themeConfig: {
13
9
  valaxyDarkOptions: {
14
10
  useDarkOptions: { disableTransition: false },
@@ -20,6 +16,9 @@ export default defineTheme<ThemeConfig>((options) => {
20
16
  post: 'image:slice:reverse',
21
17
  },
22
18
  },
19
+ vite: {
20
+ optimizeDeps: { include: ['dayjs', 'element-plus'] },
21
+ },
23
22
  }
24
23
 
25
24
  config = mergeValaxyConfig(config, withImageConfig(options))