Fix placement of inserted semicolon when using SystemJS#2529
Fix placement of inserted semicolon when using SystemJS#2529lukastaegert merged 2 commits intorollup:masterfrom
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. |
lukastaegert
left a comment
There was a problem hiding this comment.
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
appendRightinstead.