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

perf(uglifyjs): remove unused readFileAsync during uglify #1305

Merged
merged 1 commit into from
Nov 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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