Skip to content

Avoid mutating module exports. #114

@rwjblue

Description

@rwjblue

We should stop mutating the modules exports.

This was needed while ember-cli was using amdStrict mode (since it did not use the _interopRequireDefault babel helper), and that is being unrolled in ember-cli/ember-cli#6827.

Suggested migration path is:

  • Change makeDefaultExport to use Object.defineProperty(exports, 'default,...) with a getter that issues a deprecation warning in debug builds (avoiding Object.defineProperty in prod builds).
  • Remove deprecation and method after major version bump to loader.js@5.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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