Skip to content

Commit 1b2ced8

Browse files
committed
chore: update
1 parent c315d41 commit 1b2ced8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-dts/src/utils.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,11 @@ export async function redirectDtsImports(
312312
}
313313
}
314314

315-
code.overwrite(start, end, redirectImportPath);
315+
const normalizedRedirectImportPath = redirectImportPath
316+
.split(path.sep)
317+
.join('/');
318+
319+
code.overwrite(start, end, normalizedRedirectImportPath);
316320
} catch (err) {
317321
logger.debug(err);
318322
}

0 commit comments

Comments
 (0)