-
Notifications
You must be signed in to change notification settings - Fork 157
fix(components): remove faulty whitespace #606
Conversation
If an inline element has whitespace, and then a text node, Vue will preserve this whitespace inside the component, and thus it will take up bundle size (a tiny little bit)
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.
In InstantSearch.js, we compress the templates to avoid creating unnecessary text nodes (algolia/instantsearch#3176). This allows to keep our templates more readable.
In React, we don't have this issue because JSX ignores whitespaces. Is there any way to achieve that with Vue?
I've looked and no automatic way exists to do these changes |
I came across this thread but it might be too complex for now. |
I would have prefer to use the |
We are not using the |
We do through the Rollup plugin. |
* fix(components): remove faulty whitespace If an inline element has whitespace, and then a text node, Vue will preserve this whitespace inside the component, and thus it will take up bundle size (a tiny little bit) * chore(error): no newline * chore(error): https
If an inline element has whitespace, and then a text node, Vue will preserve this whitespace inside the component, and thus it will take up bundle size (a tiny little bit)