Open
Description
I tried running the example on repo in windows, an warning occurred. And vite serve is broken.
By tracing, It seems by the root.insert
call node variable __dirname
. It will return win32 style path \\unplugin-vue-router\\
, and path.join
function keep the style.
When it written to / __vue-router/auto-routes
by generatePageImport
, path is converted to \unplugin-vue-router\
. That caused backslash escape error.
reproduction
https://github.com/Gehbt/uvr-bug-repo1
- go to
vite.config.js
- change
join
function import source tonode:path