ember-cli / babel-plugin-debug-macros

13 stars 14 forks source link

Wrong transpilation for renamed import #48

Open simonihmig opened 7 years ago

simonihmig commented 7 years ago

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.

NullVoxPopuli commented 3 years ago

also: https://github.com/ember-cli/babel-plugin-debug-macros/pull/82