From 2add9cf7d7e4e23c1ba89a264f461e63109f58e0 Mon Sep 17 00:00:00 2001 From: gtasm Date: Wed, 1 Dec 2021 21:40:23 +0100 Subject: [PATCH] Update utils.ts Some libraries such as https://github.com/hperrin/svelte-material-ui depend on the "get_slot_context" being exported, but it was not any more, having them break on build. --- src/runtime/internal/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/utils.ts b/src/runtime/internal/utils.ts index 8868e38ee2..1379c15aad 100644 --- a/src/runtime/internal/utils.ts +++ b/src/runtime/internal/utils.ts @@ -89,7 +89,7 @@ export function create_slot(definition, ctx, $$scope, fn) { } } -function get_slot_context(definition, ctx, $$scope, fn) { +export function get_slot_context(definition, ctx, $$scope, fn) { return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;