Closed liuwenzhuang closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
在这次更新中,主要改动是引入了 @umijs/utils
包中的 winPath
函数,并在 extractJSCodeFiles
函数中使用 winPath
来处理 folderBase
的比较。这一改动旨在提高路径处理的跨平台兼容性。
文件路径 | 变更摘要 |
---|---|
packages/mfsu/src/mfsu/strategyStaticAnalyze.ts | 添加了 winPath 函数的导入,并在 extractJSCodeFiles 函数中使用 winPath 处理 folderBase 的比较。 |
代码如诗,路径如梦, 引入新法,兼容无穷。
winPath
出马,跨平台同, 稳定高效,未来共荣。 🐰🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
windows 下,比如更新 routes 里面的 icon,会更新 src/.umi/plugin-layout/icon.tsx 中的内容,理论上需要更新 mfsu 缓存,但因为路径格式不一致(D:/xx 和 D:\xx 的区别),导致 mfsu 虽然监听到文件内容的更改,但没有触发相应的更新逻辑。
Summary by CodeRabbit