Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
convertToEs6Module_notAtTopLevelmicrosoft/TypeScript:convertToEs6Module_notAtTopLevelCopy head branch name to clipboard
May 14, 2018
Merged

Don't add a suggestion to convert to an es6 module if no commonjs import/export appears at top-level.#24101
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
convertToEs6Module_notAtTopLevelmicrosoft/TypeScript:convertToEs6Module_notAtTopLevelCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented May 14, 2018

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.