We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6931a0c commit d9388caCopy full SHA for d9388ca
src/compiler/compile/render_dom/Block.ts
@@ -411,8 +411,8 @@ export default class Block {
411
return body;
412
}
413
414
- has_content() {
415
- return this.renderer.options.dev ||
+ has_content(ignore_dev?: boolean) {
+ return (!ignore_dev && this.renderer.options.dev) ||
416
this.first ||
417
this.event_listeners.length > 0 ||
418
this.chunks.intro.length > 0 ||
src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts
@@ -154,7 +154,7 @@ export default class InlineComponentWrapper extends Wrapper {
154
155
// removing empty slot
156
for (const slot of this.slots.keys()) {
157
- if (!this.slots.get(slot).block.has_content()) {
+ if (!this.slots.get(slot).block.has_content(true)) {
158
this.slots.delete(slot);
159
160
0 commit comments