Skip to content

Commit

Permalink
fix: convert computeContextPath() from arrow to class function
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD authored and phryneas committed Jun 12, 2019
1 parent f6d52e7 commit 489dc89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,11 @@ class ForkTsCheckerWebpackPlugin {
}
}

private computeContextPath = (filePath: string) =>
path.isAbsolute(filePath)
? filePath
: path.resolve(this.compiler.options.context, filePath);
private computeContextPath(filePath: string) {
return path.isAbsolute(filePath)
? filePath
: path.resolve(this.compiler.options.context, filePath);
}

private pluginStart() {
const run = (_compiler: webpack.Compiler, callback: () => void) => {
Expand Down

0 comments on commit 489dc89

Please sign in to comment.