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

Commit e9217c2

Browse files
alan-agius4danbucholtz
authored andcommitted
perf(uglifyjs): remove unused readFileAsync during uglify (#1305)
1 parent 700ca04 commit e9217c2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/uglifyjs.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export async function uglifyjsWorkerImpl(context: BuildContext, uglifyJsConfig:
4747
}
4848

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

0 commit comments

Comments
 (0)