perf(es/minifier): Skip useless analysis if not required (#5733)

This commit is contained in:
Donny/강동윤 2022-09-04 13:49:30 +09:00 committed by GitHub
parent 6510ced0f9
commit 8963db0a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ where
thread::current().name()
);
{
if self.options.hoist_vars || self.options.hoist_fns {
let data = analyze(&*n, self.module_info, Some(self.marks));
let mut v = decl_hoister(