Skip to content

Latest commit

 

History

History

aws-lodash-ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

faast.js AWS bundled dependency TypeScript example

This example demonstrates that you don't need to do anything special to use package dependencies in cloud functions, even on AWS. This is because faast.js uses webpack to bundle dependencies in the cloud function module for you.

In this example, the code in functions.ts imports lodash and it just works.

Prerequisites

  • Node 8+.

Installing dependencies

$ npm install

Building

$ npm run build

Running

$ node dist/index.js

Expected output

square([0,1,2]) = [0,1,4]