提交 6c566072 编写于 作者: fxy060608's avatar fxy060608 提交者: 雪洛

fix: 修复 windows 路径问题

上级 1665b615
......@@ -34,19 +34,19 @@ export const customResolver: ResolverFunction = (updatedId, importer) => {
if (utsModuleFile) {
return isWindows ? normalizePath(utsModuleFile) : utsModuleFile
}
if (isWindows) {
return normalizePath(
requireResolve(updatedId, importer || process.env.UNI_INPUT_DIR)
)
}
const resolveId = resolveEncryptUniModule(
updatedId,
normalizePath(updatedId),
process.env.UNI_UTS_PLATFORM,
process.env.UNI_APP_X === 'true'
)
if (resolveId) {
return resolveId
}
if (isWindows) {
return normalizePath(
requireResolve(updatedId, importer || process.env.UNI_INPUT_DIR)
)
}
return requireResolve(updatedId, importer || process.env.UNI_INPUT_DIR)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册