Skip to content

Using icons from @mdi/js imports entire package #4576

@Immugio

Description

@Immugio

I'm using a few icons from the @mdi/js. The package is added as devDependency and the import is done in this way:

import { mdiFlipHorizontal, .. } from "@mdi/js";

After building the project with webpack this result in approx. 1.6MB extra size added to the output bundle. Is there any way to just import a single icon?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionQuestion from a user.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions