Skip to content

Don't elide imports when transforming JS files#50404

Merged
gabritto merged 11 commits intomainfrom
gabritto/jsemit
Sep 19, 2022
Merged

Don't elide imports when transforming JS files#50404
gabritto merged 11 commits intomainfrom
gabritto/jsemit

Conversation

@gabritto
Copy link
Member

@gabritto gabritto commented Aug 22, 2022

Fixes #48588.

The fix, as discussed in the design meeting, is to never elide imports when transforming JS files.

Note that this breaks some assumptions that were being made by further transforms, such as looking up only value symbols when finding whether an identifier was an import.

Also note: this change is when transforming JS files only. And it only updates our transforms to not eliding imports. Exports in JS files will still be elided as before.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Used import elided from emit where source is JavaScript

6 participants