Skip to content

broken forceExclude for peerDep on node16(npm v. 8) #1439

Description

@collierrgbsitisfise

This is a Bug Report

Description

For bug reports:
forceExclude doest work correctly with node16(npm v8) when excluded dep. defined as peerDep for one of the packages. In my caase aws-sdk in not excluded which drastically increase the final packet size. Was prepared example repo with described steps to reproduce: https://github.com/collierrgbsitisfise/serverless-webpack-issue

Similar or dependent issue(s):

Additional Data

  • Serverless-Webpack Version: ^5.11.0:
  • Webpack version you're using: ^5.79.0:
  • Serverless Framework Version you're using: ^3.30.1:
  • node: 16.16:
  • npm: 8:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions