Skip to content

Commit c3e9ed5

Browse files
committed
fix(alita): 修复win平台下 路径错误的bug
1 parent 3388038 commit c3e9ed5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extractWxCompFiles/extractJSONFile.ts

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ function shortPath(ao, module) {
147147

148148
const absolutePath = ao.replace(configure.inputFullpath, '')
149149
.replace('node_modules', 'npm')
150+
.replace(/\\/g, '/') // 考虑win平台
150151

151152
const shortPath = relativePath.length > absolutePath.length ? absolutePath : relativePath
152153

0 commit comments

Comments
 (0)