Skip to content

detect "external dependencies" and included them in the SBOM result #211

@emersonpgomes

Description

@emersonpgomes

Hi! First, thanks for this great plugin.

So, I have a webpack config with some external dependencies like react, react-dom, and lodash:

// webpack.config.js
{
  // ...
  externals: [
    // ...
    {
      "react-dom": "ReactDOM",
      lodash: "_",
      react: "React",
    },
  ],
};

These dependencies were also added to the package.json, but we load them directly from our own CDN. However, there is no information about those in the BOM file.

When checking the plugin code I noticed that the context property is null for external modules and then it is skipped.

I would like the external dependencies to be added as well. Any suggestion on how to solve this?

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