You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path.resolve return path segment separator is \ on Windows,but in metadata.json path segment separator is / path.relative api
When I add .replace(/\\/g,'/'),it wroks .
Describe the bug
It is incorrect to judge whether the package is CommonJS On Windows 。And the npm package uses scope(like @vhook/test) .
Reproduction
repository link
System Info
vite
version: 2.0.0-beta.35yarn 1.16.0
Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: