fix: disable prebundling for nodejs mode scripts

This commit is contained in:
Ruben Fiszel
2024-07-28 11:06:43 +02:00
parent c3848e2e30
commit 1e2e907982
+3 -1
View File
@@ -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 }
}