chore: Update vite.config.ts to handle vue-router package name correctly
All checks were successful
CI / cache-and-install (push) Successful in 1m7s
All checks were successful
CI / cache-and-install (push) Successful in 1m7s
This commit is contained in:
@ -79,7 +79,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
? pkgName.split('/')[0] + '/' + pkgName.split('/')[1]
|
? pkgName.split('/')[0] + '/' + pkgName.split('/')[1]
|
||||||
: pkgName.split('/')[0];
|
: 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}`;
|
return `libs/${pkgName}`;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user