You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our components generate inline(-*) elements which are affected by surrounding whitespace. We used a `{{~!~}}` comment for most of these cases, but it seems comments are stripped in production builds, even if the comment also has whitespace stripping enabled.
As a workaround we now remove the actual whitespace from the source code, even though it makes things harder to read.
Once we convert to a v2 addon we can strip the whitespace at build time.
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
Copy file name to clipboardexpand all lines: addon/components/au-button.gts
+4-4
Original file line number
Diff line number
Diff line change
@@ -117,8 +117,9 @@ More info in the migration guide: https://github.com/appuniversum/ember-appunive
117
117
return'';
118
118
}
119
119
120
-
<template>
121
-
<button
120
+
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
121
+
// prettier-ignore
122
+
<template><button
122
123
class="au-c-button
123
124
{{this.widthClass}}
124
125
{{this.sizeClass}}
@@ -161,6 +162,5 @@ More info in the migration guide: https://github.com/appuniversum/ember-appunive
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
// We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
0 commit comments