Allow ~/path
as <img src="~/...">
with ~
alias
#13460
Labels
✨ feature request
New feature or request
~/path
as <img src="~/...">
with ~
alias
#13460
Vue version
3.5.16
Link to minimal reproduction
https://github.com/OrbisK/vue-img-src-tilde
Steps to reproduce
pnpm i
pnpm dev
What is expected?
The first
~
should not be stripped.What is actually happening?
core/packages/compiler-sfc/src/template/templateUtils.ts
Lines 22 to 29 in cdffaf6
This does always remove the first
~
System Info
Any additional comments?
Nuxt uses
~
as alias for the/app
directory.Ref: vitejs/vite-plugin-vue#15
Ref: nuxt/nuxt#32119 (comment)
/cc @danielroe
The text was updated successfully, but these errors were encountered: