Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin) downlevel implicit registerEnumType import in CommonJS
When code is downleveled to ES5 it automatically change all usages of imported members except those which was added by transform. This breaks `registerEnumType()` calls added by transform. The solution is create an explicit dedicated import only for this method in the transform and not relay on exisitng imports at all.
- Loading branch information
Showing
3 changed files
with
147 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters