Skip to content
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

Function reference not calling the aliased function name. #3

Open
tommyip opened this issue Jul 18, 2019 · 0 comments
Open

Function reference not calling the aliased function name. #3

tommyip opened this issue Jul 18, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@tommyip
Copy link
Owner

tommyip commented Jul 18, 2019

function foo() {
    return "actually baz";
}

export function bar() {
    return foo() + "bar";
}

export { foo as baz };

transpile to

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function foo() {
    return "actually baz";
}
exports.baz = foo;
function bar() {
    return exports.foo() + "bar";
}
exports.bar = bar;
@tommyip tommyip added the bug Something isn't working label Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant