Skip to content

Don't add a suggestion to convert to an es6 module if no commonjs import/export appears at top-level. #24101

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

Merged
1 commit merged into from
May 14, 2018

Conversation

ghost
Copy link

@ghost ghost commented May 14, 2018

This code fix doesn't work for non-top-level imports/exports, so better to not add a suggestion diagnostic in that case.

@ghost ghost requested a review from mhegazy May 14, 2018 18:38
@ghost ghost force-pushed the convertToEs6Module_notAtTopLevel branch from 4b1e90b to a42afdf Compare May 14, 2018 18:39
@ghost ghost merged commit 7e3af08 into master May 14, 2018
@ghost ghost deleted the convertToEs6Module_notAtTopLevel branch May 14, 2018 19:00
sandersn pushed a commit that referenced this pull request May 16, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
This pull request was closed.
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.

1 participant