diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts index d32eff0aa4a..ad4c6b420b7 100644 --- a/build/lib/compilation.ts +++ b/build/lib/compilation.ts @@ -47,7 +47,7 @@ function createCompile(src: string, build: boolean, emitError?: boolean): (token opts.inlineSources = !!build; opts.noFilesystemLookup = true; - const ts = tsb.create(opts, true, undefined, err => new reporter(err.toString())); + const ts = tsb.create(opts, true, undefined, err => new (reporter)(err.toString())); return function (token?: util.ICancellationToken) {