I have configured Vite with an alias "@" as "./src".
Using the alias directly as <img>.src is ok:
<!-- this is ok -->
<img src="@/assets/icon-1.svg">
but passing the src as a prop is not working:
<!-- ComponentA -->
<template>
<img :src="imgSrc">
</template>
<!-- Parent Component: alias not resolved as expected; imgSrcWithAlias is "@/assets/icon-1.svg" -->
<component-a :img-src="imgSrcWithAlias" />
Is there any solution to use file path alias when passing props?