Closed stefanpenner closed 9 years ago
also a problem with default imports
input:
import foo from './foo';
var obj = {
foo: function foo() {
return true;
}
};
foo();
output:
define(['./foo'], function (foo) {
'use strict';
var obj = {
foo: function foo['default']() {
return true;
}
};
foo['default']();
});
expected output:
define(['./foo'], function (foo) {
'use strict';
var obj = {
foo: function foo() {
return true;
}
};
foo['default']();
});
workaround:
import { default as otherFoo } from './foo';
Fixed in 0.6.19. Thanks for the test case @stefanpenner
Oh man. Thanks dude!! Will include this with the next ember cli release
input:
output:
expected output:
workaround: