From 1e2e907982eab2ea7e713d9cfbec046527616fa2 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 28 Jul 2024 11:06:43 +0200 Subject: [PATCH] fix: disable prebundling for nodejs mode scripts --- backend/windmill-common/src/worker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/windmill-common/src/worker.rs b/backend/windmill-common/src/worker.rs index c0e03168a6..5484e8a9b8 100644 --- a/backend/windmill-common/src/worker.rs +++ b/backend/windmill-common/src/worker.rs @@ -169,7 +169,9 @@ pub fn get_annotation(inner_content: &str) -> Annotations { let nodejs_mode: bool = annotations.contains(&"nodejs".to_string()); let npm_mode: bool = annotations.contains(&"npm".to_string()); let native_mode: bool = annotations.contains(&"native".to_string()); - let nobundling: bool = annotations.contains(&"nobundling".to_string()); + + //TODO: remove || npm_mode when bun build is more powerful + let nobundling: bool = annotations.contains(&"nobundling".to_string()) || nodejs_mode; Annotations { npm_mode, nodejs_mode, native_mode, nobundling } }