From e36e96fbc779d60c5569c69edd6effcc678fef6f Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Tue, 13 Sep 2022 19:00:00 +0800 Subject: [PATCH] reorder insertion --- .../compile/render_dom/wrappers/InlineComponent/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 2a150f9da9..f44170cda1 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -436,8 +436,8 @@ export default class InlineComponentWrapper extends Wrapper { b`if (${name}) @create_component(${name}.$$.fragment);` ); - block.chunks.mount.push(b`if (${name}) @mount_component(${name}, ${mount_target}, ${mount_anchor});`); if (css_custom_properties_wrapper) this.create_css_custom_properties_wrapper_mount_chunk(block, parent_node, css_custom_properties_wrapper); + block.chunks.mount.push(b`if (${name}) @mount_component(${name}, ${mount_target}, ${mount_anchor});`); if (to_claim) { if (css_custom_properties_wrapper) claim_nodes = this.create_css_custom_properties_wrapper_claim_chunk(block, claim_nodes, css_custom_properties_wrapper);