When a CDK project depends on resource lookups to synthesize the stacks (i.e. an SSM parameter value), it runs synthesis multiple times, which results in NodejsFunction executing esbuild each time.