Closed nrtzhou closed 5 months ago
The change in the src/utils.ts
file involves updating the getTarget
function. Specifically, the condition that checks if resolvePath
starts with a path joined with 'src'
has been modified to use normalizePath
. This adjustment ensures consistent path comparison across different environments and platforms.
File | Change Summary |
---|---|
src/utils.ts |
Modified the getTarget function to use normalizePath for path comparison. |
In code we trust, our paths align, With normalized steps, they intertwine. A rabbit's touch, so deft and fine, Ensures our logic stays divine. 🐇✨
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?
Win环境isSrcMode判断错误导致layout失效,解决办法是使用normalizePath包裹一下join(cwd, 'src')
Summary by CodeRabbit