Skip to content

Commit

Permalink
fix: handle vite client path with dollar signs (#1732)
Browse files Browse the repository at this point in the history
fix #1423
  • Loading branch information
merceyz committed Jan 26, 2021
1 parent 82d87d9 commit 20bacf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export async function resolveConfig(

// resolve alias with internal client alias
const resolvedAlias = mergeAlias(
[{ find: /^\/@vite\//, replacement: CLIENT_DIR + '/' }],
// @ts-ignore
[{ find: /^\/@vite\//, replacement: () => CLIENT_DIR + '/' }],
config.alias || []
)

Expand Down

0 comments on commit 20bacf7

Please sign in to comment.