When trying to execute the following code snippet in Ember CLI, it works without any issues:
import X from 'source';
X.doSomething();
However, when attempting to use an alternative form of the code like this:
import {X as Y} from 'source';
Y.doSomething();
An exception is logged in the browser:
TypeError: Y is not defined
Based on the ES6 specifications, this should be a valid syntax. Is this issue specific to Ember CLI, or am I potentially making a mistake in my syntax?