-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional forceExclude
of aws-sdk
based on runtime
version
#366
Conditional forceExclude
of aws-sdk
based on runtime
version
#366
Conversation
cc @jayair could i get some 👀 on this please? thank you! cc @warrickhill this is a similar fix to #354 but includes tests 😄, which I didn't actually see your pre-existing PR until after I did this work. |
Ok I tweaked this a bit so that the "default config" doesn't hardcode aws-sdk. It's now programatically added in the event the runtime is less than |
We currently use our own fork of serverless-bundle because of this. Good work, hope this gets merged! |
Thank you for this (and adding the tests)! |
On
nodejs18.x
and greater,aws-sdk
is no longer included and should be conditionally excluded based on theruntime
version, instead of being a hardcoded exclude.Fixes:
Ref: https://stackoverflow.com/a/74792625