We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc540f5 commit 2d29042Copy full SHA for 2d29042
src/context.ts
@@ -187,7 +187,8 @@ export class Context {
187
}
188
189
normalizePath(path: string) {
190
- return resolveAlias(path, this.viteConfig?.resolve.alias || [])
+ // @ts-expect-error backward compatibility
191
+ return resolveAlias(path, this.viteConfig?.resolve?.alias || this.viteConfig?.alias || [])
192
193
194
relative(path: string) {
0 commit comments