Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
fix(index): don't call the callback twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Panferov committed Jul 24, 2015
1 parent cae4d00 commit 3abf8e4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ function ensureInstance(webpack: IWebPack, options: ICompilerOptions, instanceNa

let tsImpl: typeof ts;
try {
console.log(compilerName);
tsImpl = require(compilerName);
} catch (e) {
console.error(COMPILER_ERROR);
Expand Down Expand Up @@ -262,7 +261,6 @@ function ensureInstance(webpack: IWebPack, options: ICompilerOptions, instanceNa

let errors = helpers.formatErrors(diagnostics);
errors.forEach(emitError);
callback();
}

let phantomImports = [];
Expand Down

0 comments on commit 3abf8e4

Please sign in to comment.