Skip to content

Commit 5a46021

Browse files
committed
chore: update
1 parent 53a8598 commit 5a46021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-dts/src/utils.ts

+2-2
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 = !normalize(absoluteImportPath).startsWith(
247-
normalize(rootDir) + path.sep,
246+
const isOutsideRootdir = !absoluteImportPath.startsWith(
247+
rootDir + path.sep,
248248
);
249249

250250
if (isOutsideRootdir) {

0 commit comments

Comments
 (0)