I'm using AWS SAM and running against Node 10.x.
Would love to pass in the flags for experimental modules and top level await.
Thanks!
I'm using AWS SAM and running against Node 10.x.
Would love to pass in the flags for experimental modules and top level await.
Thanks!
You can add Node.js command line options to lambda by setting the NODE_OPTIONS environment variable.
Type: AWS::Serverless::Function Properties: CodeUri: functions/stock-checker/ Handler: app.lambdaHandler Runtime: nodejs12.x Environment: Variables: NODE_OPTIONS: "--experimental-modules"
–
Cyanic © 2022 - 2024 — McMap. All rights reserved.