Note: I'm not involved in Prepack in any way — please correct me if I say anything incorrect below!
What is Prepack?
So for example if you give it this code...
Running nightmare on Amazon Linux
You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.
Provision instance which replicates Lambda environment
According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias
amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):
What forces layout / reflow
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
Getting box metrics