Skip to content

Commit

Permalink
fix: build error when using vite mode on windows (#12612)
Browse files Browse the repository at this point in the history
* fix: windows 无法使用vite启动的问题

* 更新 transformIEAR.ts

Co-authored-by: Peach <scdzwyxst@gmail.com>

---------

Co-authored-by: xiangyuanji <xiangyuanji1@outlook.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
  • Loading branch information
3 people committed Aug 6, 2024
1 parent c81271f commit cb9e848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/utils/transformIEAR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const IEAR_REG_EXP = new RegExp(
// match quotes ($2)
`('|")`,
// match absolute file path ($3)
`(\\/.*[^\\\\])\\2`,
`((?:[a-zA-Z]:|\\/).*[^\\\\])\\2`,
')',
].join(''),
// match full-content
Expand Down

0 comments on commit cb9e848

Please sign in to comment.