Skip to content

Commit

Permalink
chore: remove unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 15, 2021
1 parent dfff1d6 commit fbcb07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/node/alias.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from 'path'
import { Alias, AliasOptions } from 'vite'
import { UserConfig } from './config'

const PKG_ROOT = path.join(__dirname, '../../')
export const APP_PATH = path.join(__dirname, '../client/app')
Expand All @@ -17,10 +16,7 @@ export const DEFAULT_THEME_PATH = path.join(
export const SITE_DATA_ID = '@siteData'
export const SITE_DATA_REQUEST_PATH = '/' + SITE_DATA_ID

export function resolveAliases(
themeDir: string,
userConfig: UserConfig
): AliasOptions {
export function resolveAliases(themeDir: string): AliasOptions {
const paths: Record<string, string> = {
'/@theme': themeDir,
'/@shared': SHARED_PATH,
Expand Down
2 changes: 1 addition & 1 deletion src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export async function resolveConfig(
outDir: resolve(root, 'dist'),
tempDir: path.resolve(APP_PATH, 'temp'),
markdown: userConfig.markdown,
alias: resolveAliases(themeDir, userConfig),
alias: resolveAliases(themeDir),
vue: userConfig.vue,
vite: userConfig.vite
}
Expand Down

0 comments on commit fbcb07e

Please sign in to comment.