microscopic-florist-22719
06/23/2018, 5:41 PMawait import
syntax.big-soccer-75859
06/23/2018, 11:30 PMmicroscopic-florist-22719
06/24/2018, 2:31 AMwhite-balloon-205
06/24/2018, 4:48 AMnode_modules
automatically. If you are not seeing that - would be great if you could open an issue with details of your example so that we can investigate. Note that if packages are not getting included, you can explicitly include them using e.g. pulumi config set cloud-aws:functionIncludePackages express
. See https://github.com/pulumi/pulumi-cloud/blob/master/aws/config/index.ts#L42 for a few details on this config setting.big-soccer-75859
06/24/2018, 12:10 PMconst jwt = await import('jsonwebtoken');
it actually packages the @types/jsonwebtoken
module rather than the actual jsonwebtoken
module. Note that @types/jsonwebtoken
is in my devDependencies@types/jsonwebtoken
and changing the line to const jwt = require('jsonwebtoken');
fixed the build but obviously the library becomes an any
which is a bit annoying but I can deal with it.white-balloon-205
06/24/2018, 2:11 PMbig-soccer-75859
06/24/2018, 2:14 PM