Skip to content

Commit

Permalink
fix: fix deducing of extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 4, 2024
1 parent b41ab4b commit 2c361cc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ async function loadInterfaceFiles(
]
const { importPathAbsolute } = extendsConfig.filePath
assert(importPathAbsolute)
const extensionName = importPathAbsolute.split('/')[0]!
const extensionName = importPathAbsolute
.split('/')
.slice(0, importPathAbsolute.startsWith('@') ? 2 : 1)
.join('/')
const warnMsg = alreadyMigrated.includes(extensionName)
? `You're using a deprecated version of the Vike extension ${extensionName}, update ${extensionName} to its latest version.`
: `The config of the Vike extension ${extensionName} should set a ${pc.cyan('name')} value`
Expand Down

0 comments on commit 2c361cc

Please sign in to comment.