提交 37a4d41d 编写于 作者: fxy060608's avatar fxy060608 提交者: qiang

fix: hasRootFile 可能被调用多次,不再仅重写一次了

上级 10147d5a
......@@ -57,8 +57,6 @@ export function rewriteExistsSyncHasRootFile() {
)
fs.existsSync = (path) => {
if (path === pnpmWorkspaceYaml) {
// 仅重写一次,用于绕过 vite,避免后续其他地方真的需要判断
fs.existsSync = existsSync
return true
}
return existsSync(path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册