Skip to content

Commit 3a4a437

Browse files
authored
Merge branch 'main' into outbase
2 parents c39b6aa + 676cad1 commit 3a4a437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-dts/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ export async function redirectDtsImports(
243243
let redirectImportPath = importPath;
244244

245245
if (absoluteImportPath && redirect.path) {
246-
const isOutsideRootdir = !absoluteImportPath.startsWith(
247-
rootDir + path.sep,
246+
const isOutsideRootdir = !normalize(absoluteImportPath).startsWith(
247+
normalize(rootDir) + path.sep,
248248
);
249249

250250
if (isOutsideRootdir) {

0 commit comments

Comments
 (0)