Skip to content

Commit

Permalink
fix(typescript): don't resolve filtered files (rollup#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-1io committed Oct 10, 2022
1 parent cafc32b commit e45073c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/typescript/src/index.ts
Expand Up @@ -125,6 +125,7 @@ export default function typescript(options: RollupTypescriptOptions = {}): Plugi

if (resolved) {
if (/\.d\.[cm]?ts/.test(resolved.extension)) return null;
if (!filter(resolved.resolvedFileName)) return null;
return path.normalize(resolved.resolvedFileName);
}

Expand Down

0 comments on commit e45073c

Please sign in to comment.