property

CompileBuildOptions.aotOrder

aotOrder?: null | string | false | string[]

Lay the executable out by the order in which a run of it entered its functions. Requires aot: true.

Run an executable built with aotRecordOrder: true with BUN_AOT_ORDER_OUT=<path> to record a start, then build again with that file. A file from an older build of the app still applies.

With several files, list the most important one first. A function lies where the first file that lists it places it.

false and null mean no file, so aotOrder: haveProfile && path works.

Equivalent CLI flag: --aot-order <file>[,<file>...]