Skip to content

Dangerous const to var rollup plugin #5925

Closed
@lforst

Description

@lforst

#5917 revealed something we didn't fully consider when writing our const to var rollup plugin. This plugin is supposed to reduce bundle size but it also has a semantic impact that can lead to opaque bugs.

We should definitely reconsider if we want to keep this plugin, or if we should at least change it to a "const to let" plugin.

Plugin in question:

export function makeConstToVarPlugin() {

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