Skip to content

[bug]: external dependency is included in output #77

Open
@jorrit

Description

@jorrit

What version of @strapi/sdk-plugin are you using?

  • NPM 11
  • Node 22
  • React 18.3.1
  • @strapi/sdk-plugin 5.3.0

What's Wrong?

I noticed that the admin build of strapi-plugin-navigation includes the entire lodash dependency. I think this related to some kind of configuration in @strapi/sdk-plugin and/or @strapi/pack-up.

See VirtusLab-Open-Source/strapi-plugin-navigation#509 for more discussion.

To Reproduce

  1. Checkout https://github.com/VirtusLab-Open-Source/strapi-plugin-navigation
  2. yarn + yarn build (which uses strapi-plugin build)
  3. Notice that dist/admin/index.js and dist/admin/index.mjs contain the source of the lodash dependency.

Expected Behaviour

All dependencies should be external.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions