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
According to the documentation, the below configuration should allow to selectively pack only the imported modules:
// webpack.config.jsvarnodeExternals=require('webpack-node-externals')module.exports={// we use webpack-node-externals to excludes all node deps.// You can manually set the externals too.externals: [nodeExternals()],}
Bug Report
Description
Node modules are not auto-packing as expected. Please check the following repository which helps reproduce this issue - https://github.com/dpkshrma/sls-webpack-peer-dep-issue
According to the documentation, the below configuration should allow to selectively pack only the imported modules:
But, with the peer dependency webpack": "^5.4.0, no npm modules are packaged in the artifacts:
With peer dependency webpack": "^4.5.1, it works as expected:
What did you expect should have happened?
Node modules should have been auto-packed with webpack version 5.4.0
What was the config you used?
Similar or dependent issue(s):
Additional Data
The text was updated successfully, but these errors were encountered: