Skip to content

Mark dedent function as side effect free #441

@hugo082

Description

@hugo082

Related to rollup limitation on PURE annotated tagged template literals: rollup/rollup#4035

I suggest to mark the dedent function as side effect free so the tree shaker can do is job as expected:

/* @__NO_SIDE_EFFECTS__ */
function dedent(text, ...values) {
  // ...
}

You can have a look at the following replication for details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions