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

Call dynamic import transform on expression used by export equal statement #18028

Merged

Conversation

weswigham
Copy link
Member

Fixes #16641

@mhegazy
Copy link
Contributor

mhegazy commented Aug 24, 2017

Please port this to release-2.5

@weswigham weswigham merged commit 643a7e7 into microsoft:master Aug 25, 2017
@weswigham weswigham deleted the dynamic-import-export-assignment branch August 25, 2017 00:09
weswigham added a commit to weswigham/TypeScript that referenced this pull request Aug 25, 2017
…ement (microsoft#18028)

* Call dynamic import transform on expression used by export equal statement

* Use Debug.fail
weswigham added a commit that referenced this pull request Aug 25, 2017
…ement (#18028) (#18033)

* Call dynamic import transform on expression used by export equal statement

* Use Debug.fail
currentModuleInfo.exportEquals.expression
)
);
const expressionResult = importCallExpressionVisitor(currentModuleInfo.exportEquals.expression);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been visitNode(currentModuleInfo.exportEquals.expression, importCallExpressionVisitor, isExpression) as it does the necessary validation you're doing on 435-437 for you.

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants