Skip to content

Commit

Permalink
Fix #319: external npm modules must not become bundle items
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Feb 6, 2019
1 parent ab6201a commit 6ddf43e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ node_modules
npm-debug.log
package-lock.json
tmp
.idea
tests/**/*.js
2 changes: 1 addition & 1 deletion packages/karma-typescript/src/bundler/resolve/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Resolver {
buffer: BundleItem[],
onModuleResolved: (bundleItem: BundleItem) => void) {

if (bundleItem.isTypescriptFile()) {
if (bundleItem.isTypescriptFile() && !bundleItem.isNpmModule()) {
process.nextTick(() => {
onModuleResolved(bundleItem);
});
Expand Down

0 comments on commit 6ddf43e

Please sign in to comment.