-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ForceExclude #247
Comments
Hi @silver2k . Thanks for the good idea 🙌 . |
@silver2k Can you try with the PR I opened, if that works correctly on your platform? I did some tests locally and it seems to work. Use |
@silver2k Any chance that you can run some tests? I don't want to merge it only tested by me ;-) |
That was plan, but we ran into some issues with 3.1.1 dropping a bunch of
dependencies from zip files.
I wanted to get to the bottom of that first before testing the new patch.
(Unless you have seen it already?)
…On 11/10/2017 00:12, "Frank Schmid" ***@***.***> wrote:
@silver2k <https://github.com/silver2k> Any chance that you can run some
tests? I don't want to merge it only tested by me ;-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#247 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAq3hpPMpN8pC3XUrLYRzx-rREyXLaMnks5sq1EpgaJpZM4PrR9R>
.
|
No, I did not. The only difference between 3.1.0 and 3.1.1 is, that the |
Packaged package.json between 3.1.0 & 3.1.1 are identical. |
Released with |
hi @HyperBrain , this feature doesn't seem works for me `plugins:
In above config, I have aws-sdk is the dependencies of alexa-sdk. I want to exclude aws-sdk in the package out however it still included. Could you please advise me the best way to exclude aws-sdk . I am using "serverless-webpack": "^5.1.5", Thanks |
Hi @samuraitruong . This is related to #306 . As long as the aws-sdk is not a peer dependency of alexa-sdk but a real dependency it will be packaged. However, you can try to actually bundle the alexa-sdk - then the aws-sdk will become a first level dependency and the forceExclude could work. // webpack.config.js
externals: [ nodeExternals( { whitelist: [ "alexa-sdk" ] } ) ], and then without the forceInclude
Can you try that? |
This is a Feature Proposal
Description
Under the current method for bundling externals, while you can exclude dependencies by marking them as devDependencies, if a downstream dependency re-includes it, it will be bundled regardless.
While 99% of the time this makes sense, there are still a lot of projects out there, that are not lambda exclusive, which include
aws-sdk
as a dependency. While I could ask every project maintainer to move aws-sdk to peerDependency or devDependency - I think adding aforceExclude
would be a simple fix for a wide(ish) problemi.e.
The text was updated successfully, but these errors were encountered: