This message was deleted.
# general
s
This message was deleted.
a
Hmm... turns out all the examples I'm seeing (including this docs page) are in typescript, which seems to handle the import. So if you choose javascript you have to use require.
l
Lambdas cannot use
"type":"module"
even if your runtime is node14. Don't know why. So if you want to create a pure JS package for your lambdas, you either need to use commonJS, or transpile down to that. I don't know how to transpile JS->JS; the TS->JS transpilation done with Pulumi's default config has always worked for me.
a
Yeah TS -> JS just moves it to commonJS ... We opted not to use TS so I'll just write it in commonJS. Thanks.