Skip to content

ERROR: in "import x from y with {z}" the "with {z}" part is removed on cleanup #118

@rhnatiuk

Description

@rhnatiuk

When cleaning up the code like this

import weldIcon from "../icons/weld_18x18.svg" with { loader: "text" };

TSCO will remove the with part

import weldIcon from "../icons/weld_18x18.svg";

Which breaks the code.

As a workaround, I would be happy if TSCO would not touch import statements altogether, but it ignores settings for not optimizing imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions