Merge pull request #2461 from zonemeen/refactor/simplify-import

refactor: simplify the import path
pull/2464/head
烽宁 1 year ago committed by GitHub
commit f9cfd16167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
import type { DefaultTheme } from 'vitepress/theme' import type { DefaultTheme } from 'vitepress/theme'
import { onMounted, onUnmounted, onUpdated, type Ref } from 'vue' import { onMounted, onUnmounted, onUpdated, type Ref } from 'vue'
import type { Header } from '../../shared' import type { Header } from '../../shared'
import { useAside } from '../composables/aside' import { useAside } from './aside'
import { throttleAndDebounce } from '../support/utils' import { throttleAndDebounce } from '../support/utils'
// magic number to avoid repeated retrieval // magic number to avoid repeated retrieval

@ -4,7 +4,7 @@ import MiniSearch from 'minisearch'
import fs from 'fs-extra' import fs from 'fs-extra'
import _debug from 'debug' import _debug from 'debug'
import type { SiteConfig } from '../config' import type { SiteConfig } from '../config'
import { createMarkdownRenderer } from '../markdown/markdown' import { createMarkdownRenderer } from '../markdown'
import { resolveSiteDataByRoute, slash } from '../shared' import { resolveSiteDataByRoute, slash } from '../shared'
const debug = _debug('vitepress:local-search') const debug = _debug('vitepress:local-search')

@ -7,7 +7,7 @@ import {
type SiteData, type SiteData,
type SSGContext type SSGContext
} from './shared' } from './shared'
import type { MarkdownOptions } from './markdown/markdown' import type { MarkdownOptions } from './markdown'
import type { Options as VuePluginOptions } from '@vitejs/plugin-vue' import type { Options as VuePluginOptions } from '@vitejs/plugin-vue'
import { type Logger, type UserConfig as ViteConfig } from 'vite' import { type Logger, type UserConfig as ViteConfig } from 'vite'

Loading…
Cancel
Save