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

Commit

Permalink
perf(uglifyjs): remove unused readFileAsync during uglify (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and danbucholtz committed Nov 7, 2017
1 parent 700ca04 commit e9217c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/uglifyjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export async function uglifyjsWorkerImpl(context: BuildContext, uglifyJsConfig:
}

async function runUglifyInternal(sourceFilePath: string, destFilePath: string, sourceMapPath: string, destMapPath: string, configObject: any): Promise<any> {
const sourceFileContentPromise = readFileAsync(sourceFilePath);
const [sourceFileContent, sourceMapContent] = await Promise.all([readFileAsync(sourceFilePath), readFileAsync(sourceMapPath)]);
const uglifyConfig = Object.assign({}, configObject, {
sourceMap: {
Expand Down

0 comments on commit e9217c2

Please sign in to comment.