Skip to content

Commit

Permalink
Fix import .d.ts as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Feb 23, 2021
1 parent 0fb19ea commit 316d1a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/karma-typescript/src/bundler/dependency-walker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class DependencyWalker {

if (lodash.isMap(resolvedModules)) { // Typescript 2.2+
resolvedModules.forEach((resolvedModule: any, moduleName: string) => {
if (resolvedModule.extension === ".d.ts") return
this.addBundleItem(queued, resolvedModule, moduleName, ambientModuleNames);
});
}
Expand Down

0 comments on commit 316d1a0

Please sign in to comment.