-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor using import-cost module #3
Refactor using import-cost module #3
Conversation
Takes care of this issue #2 |
ec70e59
to
8845b72
Compare
@@ -7,5 +7,5 @@ | |||
opacity: 0.5; | |||
margin-left: 10px; | |||
position: relative; | |||
top: -(@component-line-height - (@component-padding/2)); | |||
top: -@component-line-height; |
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.
you have to leave the padding as it is. Since it will disturb the position of the size
from the top by 2px.
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.
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.
hmm! Probably because I've changed the font! (but not sure how that can effect)
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.
I also use a custom font. I just switched to the default font and it looks properly aligned.
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.
yeah, in custom font, it breaks a bit bad :P (but its fine) people hardly change it ;)
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.
LGTM!
@siddharthkp this changes looks good to me. Waiting for your review & merge |
Whoops, this completely stopped working for me. Reverted it for now: 30654bc Let me dig deeper into what happened. |
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.
There are a few things:
- loader is not working (not sure why)
- This works only when the package is available in
node_modules
folder.
How can I repro this issue? |
I didn't get time to debug it properly after that 😢 Let me try to get some help with this |
This is the error that I was getting.
I've published it again as |
Ok, i will take a look. |
|
One of the dependency of The work around is to rebuild the failing dependency by clicking on the red bug icon at the bottom right of Atom. it is not a great experience but that's the best we can do for now... Examples: |
That doesn't sound good 😞 I've been playing with the idea of keeping the installs and bundling on a remote server that uses the same package and talk to it via an API. Cons: Need internet access to get the size of a package@version you are using for the first time. |
I was just going through this: https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md Will dig into it more and drop here if I come across something useful. |
Use import-cost to calculate import sizes. I removed all the unnecessary stuff and did a bit of function renaming.