Skip to content

Wrong transpilation for renamed import #48

@simonihmig

Description

@simonihmig

Given this reproduction file: https://github.com/simonihmig/ember-warn-transpilation/blob/master/app/utils/warn.js

This is transpiled to:

define('ember-warn-transpilation/utils/warn', ['exports'], function (exports) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = warn;
  function warn() {
    (true && Ember.emberWarn(...arguments));
  }
});

Where Ember.emberWarn is obviously not a thing.

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