2
使用燼CLI下面的代碼工作:灰燼CLI和進口......爲
import X from 'source';
X.doSomething();
但是,在使用的另一種形式:
import {X as Y} from 'source';
Y.doSomething();
瀏覽器登錄異常:
TypeError: Y is not defined
根據ES6 specs這應該工作。這種行爲僅僅是Ember CLI的限制嗎,還是我的語法有問題?