Skip to content

Optimize e = ...; return e only closures #4

@Qix-

Description

@Qix-

Right now there are a lot of functors that do () => {var e = x; return e;} inside arrow functions, instead of just () => x.

I think OXC is working on a system for these sorts of optimization passes but it'd be nice if we just didn't emit them to begin with.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions