Skip to content

export default should use const/let, not var. #653

Description

@zbraniecki

Currently, when exporting a default object, it assigns it using var which is unnecessary.

Example:

export default {
  foo: 1
};

rollup ./test.js

var test = {
  foo: 1
};

Instead, it should use const.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions