diff --git a/backend/windmill-worker/loader.bun.js b/backend/windmill-worker/loader.bun.js index 289fac0a9a..a697ba1d53 100644 --- a/backend/windmill-worker/loader.bun.js +++ b/backend/windmill-worker/loader.bun.js @@ -32,7 +32,12 @@ const p = { const imports = transpiler.scanImports(code); for (const imp of imports) { if (imp.kind == "import-statement") { - if (imp.path.startsWith(".") && !imp.path.endsWith(".ts")) { + if ( + (imp.path.startsWith(".") || + imp.path.startsWith("/u/") || + imp.path.startsWith("/f/")) && + !imp.path.endsWith(".ts") + ) { code = code.replaceAll(imp.path, imp.path + ".ts"); } }