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
After looking for lifecycleEvents in the source code, I didn't find any hookable events I could use to customize the serverless-esbuild plugin behavior.
However it is common best practice to expose such events when you write a plugin (See here).
For example, serverless-offline exposes init, ready and end event that serverless-esbuild actually uses to build the module before launching serverless-offline (See here).
I would need this hook to copy some static assets before bundling the package with esbuild.
Let me know if you want me to open the PR.
The text was updated successfully, but these errors were encountered:
Hi @gabsn, I have in mind to implement this similar way like serverless-webpack does, but cannot currently focus on it. I would appreciate your effort if you're willing to contribute.
After looking for
lifecycleEvents
in the source code, I didn't find any hookable events I could use to customize theserverless-esbuild
plugin behavior.However it is common best practice to expose such events when you write a plugin (See here).
For example,
serverless-offline
exposesinit
,ready
andend
event thatserverless-esbuild
actually uses to build the module before launching serverless-offline (See here).I would need this hook to copy some static assets before bundling the package with
esbuild
.Let me know if you want me to open the PR.
The text was updated successfully, but these errors were encountered: