Skip to content

[EuiIcon] Dynamic async module is not really compatible with all bundlers. #2467

@cedeber

Description

@cedeber

Hello,

I am currently bundling my app with Parcel and the dynamic async import into EuiIcon is lost while bundling because the path is dynamically set and so it can't be detected at build time.

When it loads, the assets path does'nt exist, of course. I don't have a good solution for that instead of importing them all statically and bet on tree-shaking to clean the code at build time.

Has anybody already have this problem or know how to solve it simply?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale-issue(Don't delete - used for automation)stale-issue-closed(Don't delete - used for automation)⚠️ needs validationFor bugs that need confirmation as to whether they're reproducible

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions