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
Fix placement of inserted semicolon when using SystemJS #2529
Conversation
Hi @kyle1320, thanks a lot, you are really becoming quite the contributor here 😎 The
So my worries are about tree-shaking. Using Instead I would prefer to fix it in code.prependRight(this.right.end, `)`); which is definitely looks wrong following my above explanation, the code should probably be code.appendLeft(this.right.end, `)`); |
@lukastaegert Thanks for the feedback. That actually makes a lot of sense! This was my first experience with I thought I had tried changing the statement in I've pushed an update and changed the title of the PR to better reflect the scope of the change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks a lot!
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
#2527
Description
Fixes #2527.
Currently, semicolons are inserted using
appendLeft
. But this means that any code inserted after the end of the line will be inserted after the semicolon, which is not what we want.This fixes the issue by using
appendRight
instead.