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

fix(compiler-cli): generate proper exports.* identifiers in cjs output #22564

Closed
wants to merge 1 commit into from

Commits on Mar 5, 2018

  1. fix(compiler-cli): generate proper exports.* identifiers in cjs output

    When the compiler generates a reference to an exported variable in the
    same file, it inserts a synthetic ts.Identifier node. In CommonJS
    output, this synthetic node would not be properly rewritten with an
    `exports.` prefix.
    
    This change sets the TS original node property on the synthetic node
    we generate, which ensures TS knows to rewrite it in CommonJS output.
    alxhub committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    c04e89b View commit details
    Browse the repository at this point in the history