-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export default class
emits non-default export
#2537
Comments
This appears to be broken again in 1.7... it appears to be working fine in 1.6. Should this be reported as a new issue? |
Can you please share a repro code since I cannot reproduce this issue locally? "use strict";
var One = (function () {
function One() {
}
One.prototype.foo = function () {
return this;
};
return One;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = One; Looks like an expected output to me. |
I will try to post one when I get back to my computer... In the meantime, make sure you set |
Yes, it's fine in master but 1.7.5 gives class One {
foo() {
return this;
}
}
exports.One = One; |
Got it, thanks for the info! |
This compiles and the output is correct.
Combining the class declaration and the export compiles, but the output is incorrect:
The
default
is ignored.The text was updated successfully, but these errors were encountered: