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
What is the use case that should be solved?
The forceExclude option currently only applies to devDependencies, but peerDependencies is a more appropriate place for aws-sdk. Putting it in devDependencies is a violation of the following lint rule: https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
Can serverless-webpack be updated so that forceExclude also applies to peerDependencies?
If there is additional config how would it look
No additional config required
This is a breaking change, so we'd better have good reasons for that. PRs are welcomed.
Otherwise you may switch to a custom webpack.config.js to gain more control on which sections in package.json to exclude with webpack-node-externals, see the modulesFromFile#excludeFromBundle option.
Well, I would think forceExclude is the equivalent to "trust me bro, I know what I'm doing".
Would allow me to nicely get rid of typescript and all the other stuff I don't want bundled and provide a nice escape hatch to all the issues brought by peerDependencies being bundled in
This is a (Feature Proposal)
Description
What is the use case that should be solved?
The forceExclude option currently only applies to devDependencies, but peerDependencies is a more appropriate place for aws-sdk. Putting it in devDependencies is a violation of the following lint rule:
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
Can serverless-webpack be updated so that forceExclude also applies to peerDependencies?
If there is additional config how would it look
No additional config required
Related issue(s):
Additional Data
The text was updated successfully, but these errors were encountered: