-
Notifications
You must be signed in to change notification settings - Fork 35
Conversation
⏱ Benchmark resultsComparing with c079d56 largeDepsEsbuild: 2.4s⬇️ 22.81% decrease vs. c079d56
Legend
largeDepsNft: 7.8s⬇️ 22.65% decrease vs. c079d56
Legend
largeDepsZisi: 14.5s⬇️ 31.77% decrease vs. c079d56
Legend
|
src/runtimes/runtime.ts
Outdated
@@ -54,6 +54,7 @@ export interface ZipFunctionResult { | |||
nodeModulesWithDynamicImports?: string[] | |||
path: string | |||
runtimeVersion?: string | |||
entryFilename?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should always be able to populate entryFilename
. It should be either ___netlify-entry-point.mjs
or <func name>.js
. If we always populate it, I think consuming this in the CLI will be easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. done in 9e25e9a. I'm unsure about the entryFilename
for Go and Rust functions - my assumption is that we output an executable binary, so I set entryFilename
to ""
- that way, join(path, entryFilename)
will always point to the right file, independent of runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
* feat: expose entryFilename * fix: always populate entryFilename * fix: tests
🎉 Thanks for submitting a pull request! 🎉
Summary
As proposed by @eduardoboucas in netlify/cli#5804 (comment), this PR exposes the
entryFilename
for usage from the CLI.For us to review and ship your PR efficiently, please perform the following steps:
This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing
a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)