From b626e523246770ea5e765e172e4565d8f2c73201 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 13 Aug 2024 20:41:32 +0200 Subject: [PATCH] add bun bundling error info --- frontend/src/lib/components/DisplayResult.svelte | 10 ++++++++++ .../lib/components/apps/editor/RunnableJobPanel.svelte | 2 +- .../routes/(root)/(logged)/run/[...run]/+page.svelte | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/DisplayResult.svelte b/frontend/src/lib/components/DisplayResult.svelte index 342cfd2625..0105fa06b9 100644 --- a/frontend/src/lib/components/DisplayResult.svelte +++ b/frontend/src/lib/components/DisplayResult.svelte @@ -45,6 +45,7 @@ export let noControls: boolean = false export let drawerOpen = false export let nodeId: string | undefined = undefined + export let language: string | undefined = undefined const IMG_MAX_SIZE = 10000000 const TABLE_MAX_SIZE = 5000000 @@ -544,6 +545,15 @@ > + {#if language == 'bun'} +
+ + Bun script are bundled for performance reasons. If you see an odd error that doesn't + appear when testing (which doesn't use bundling), try putting //nobundling at the top of your script to disable bundling and feel free to mention it to the Windmill's + team. + + {/if} {:else if !forceJson && resultKind == 'approval'}