We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16af1d commit 676cad1Copy full SHA for 676cad1
packages/plugin-dts/src/utils.ts
@@ -243,8 +243,8 @@ export async function redirectDtsImports(
243
let redirectImportPath = importPath;
244
245
if (absoluteImportPath && redirect.path) {
246
- const isOutsideRootdir = !absoluteImportPath.startsWith(
247
- rootDir + path.sep,
+ const isOutsideRootdir = !normalize(absoluteImportPath).startsWith(
+ normalize(rootDir) + path.sep,
248
);
249
250
if (isOutsideRootdir) {
0 commit comments