翠 / green

Results 246 comments of 翠 / green

It seems it does not reproduce with a simple setup. https://stackblitz.com/edit/github-marmex?file=src%2FApp.vue And it happens with vite-plugin-ssr + react too. https://stackblitz.com/edit/github-6pyqmj?file=renderer%2FPageShell.jsx

plugin-vue transforms `` into ```vue import logoSvg from '/logo.svg' ``` So something is not working around resolving `/logo.svg`. And since it does not happen with Vite only, I guess something...

> It seems that `@vitejs/plugin-vue` tries to resolve `src` if it doesn't match a `public/` asset. Yes. This is because of https://github.com/vitejs/vite/issues/10082#issuecomment-1243764867. > Vite-plugin-ssr 0.4 changed Vite's config `publicDir` to...

Closing as it seems https://github.com/vitejs/vite/pull/9928 was enough.

@hemengke1997 https://github.com/vitejs/vite/issues/8632#issuecomment-1242066533 Would you provide more context about the particular use case if #9928 isn't enough?

@hemengke1997 Yes I understand the difference. But we didn't understand why you need to avoid the dedupe of the actual file. Would you provide more context about that?