chore: Update vite.config.ts to handle vue-router package name correctly
All checks were successful
CI / cache-and-install (push) Successful in 1m7s

This commit is contained in:
严浩
2024-08-14 09:24:54 +08:00
parent fcff296d4e
commit a544e501c2

View File

@ -79,7 +79,8 @@ export default defineConfig(({ mode, command }) => {
? pkgName.split('/')[0] + '/' + pkgName.split('/')[1]
: pkgName.split('/')[0];
if (pkgName.startsWith('@vue/') || pkgName === 'vue-demi') pkgName = 'vue';
if (pkgName.startsWith('@vue/') /* || pkgName === 'vue-demi' */) pkgName = 'vue';
/* if (pkgName.includes('vue-router')) pkgName = 'vue-router'; */
return `libs/${pkgName}`;
}