You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to publish a deno lambda and noticed during build I was getting warning:
⚠️ Warning: `deno bundle` is deprecated and will be removed in Deno 2.0.
Use an alternative bundler like "deno_emit", "esbuild" or "rollup" instead.
This led me to denoland/deno#11073 and I found out deno compile can be used to build a static executable containing the deno runtime and all app codes and dependencies.
Since this repo takes the approach to run the deno command directly I don't think the using compile will work. AWS allows a file bootstrap to be executed automatically so I wonder if a simpler technique compatible with future deno roadmap is to just use deno compile to produce bootstrap, and then have user code import the event loop as a module and then copy and paste a main function?
I was able to make this approach work and have a hello world example that can be deployed with terraform. The entrypoint for user code is app.ts and the event loop is in lambda.ts: https://github.com/GeoffWilliams/deno-lambda-terraform
Is this heading in the right direction? If so is there scope to include in this repo?
The text was updated successfully, but these errors were encountered:
I have been trying to publish a deno lambda and noticed during build I was getting warning:
This led me to denoland/deno#11073 and I found out
deno compile
can be used to build a static executable containing the deno runtime and all app codes and dependencies.Since this repo takes the approach to run the
deno
command directly I don't think the usingcompile
will work. AWS allows a filebootstrap
to be executed automatically so I wonder if a simpler technique compatible with future deno roadmap is to just usedeno compile
to producebootstrap
, and then have user code import the event loop as a module and then copy and paste a main function?I was able to make this approach work and have a hello world example that can be deployed with terraform. The entrypoint for user code is
app.ts
and the event loop is inlambda.ts
: https://github.com/GeoffWilliams/deno-lambda-terraformIs this heading in the right direction? If so is there scope to include in this repo?
The text was updated successfully, but these errors were encountered: