Skip to content

consider replacing lodash with lodash-es (fix warning "CommonJS or AMD dependencies can cause optimization bailouts.") #4095

Open
@saschaszott

Description

@saschaszott

Description

Currently, dspace-angular uses lodash, which is a CommonJS module. This can lead to suboptimal tree shaking in Webpack, as CommonJS dependencies prevent full optimization.

Proposed Solution

Replace lodash with lodash-es, which is the ES Module (ESM) version of Lodash. This allows Webpack to eliminate unused code, reducing bundle size and improving performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code taskdependenciesPull requests that update a dependency filehelp wantedNeeds a volunteer to claim to move forward

    Type

    Projects

    Status

    📋 To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions