Skip to content

StaticOptimizerOptions

StaticOptimizerOptions configures a static optimizer without functional options.

optional optimizers?: ASTOptimizer[]

optimizers contains the AST optimization passes applied in order.


optional source?: Source

source overrides the source used by the optimizer.

Setting this value discards the source info from the AST passed to optimize.