Skip to content

Commit

Permalink
chore: fix alias
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 26, 2021
1 parent d12d8a7 commit 6db08f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slidev/node/plugins/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InlineConfig, mergeConfig, Plugin } from 'vite'
import { getIndexHtml } from '../common'
import { dependencies } from '../../../client/package.json'
import { ResolvedSlidevOptions } from '../options'
import { toAtFS } from '../utils'
import { resolveImportPath, toAtFS } from '../utils'

const EXCLUDE = [
'@slidev/types',
Expand All @@ -26,6 +26,7 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {
resolve: {
alias: {
'@slidev/client/': `${toAtFS(options.clientRoot)}/`,
'vue': `${toAtFS(resolveImportPath('vue', true))}`,
},
},
optimizeDeps: {
Expand Down

0 comments on commit 6db08f9

Please sign in to comment.