ember-cli-babel icon indicating copy to clipboard operation
ember-cli-babel copied to clipboard

Ember.assert is not renamed when import { assert as X } is used

Open NullVoxPopuli opened this issue 5 years ago • 2 comments

Ref: https://github.com/babel/ember-cli-babel/issues/372

NullVoxPopuli avatar Dec 02 '20 16:12 NullVoxPopuli

just noticed the same issue for deprecate:

import { deprecate as emberDeprecate } from '@ember/application/deprecations';

// ....
deprecate(message, // Here it fails with "TypeError: Ember.emberDeprecate is not a function"

worked it around by avoiding named import alias https://github.com/san650/ember-cli-page-object/pull/537/commits/2d7ea1b22f3ac910381c2f0b009fc6d9db293691

ro0gr avatar Feb 07 '21 14:02 ro0gr

Haven't had a chance to dig in here. I suspect the issue is in babel-plugin-debug-macros though.

rwjblue avatar Feb 09 '21 03:02 rwjblue