wmill sync not bundling relative imports
I would expect this to be bundled when using "wmill sync push" as per the docs, but the script gets "--- BUN INSTALL ---
error: Failed to find relative import at ...."
In the VSCode plugin, I can observe the same error, but if I tick the "bundle relative paths for preview" box, the script works as expected, and the dependencies get bundled. If i run "bun build" on the script, I can also observe a correct and expected bundle being generated.
No matter what I do I cant get the dependencies to resolve outside of my own local "bun build" or the VSCode plugin with "bundle relative imports" enabled.
Am I wrong that using "wmill sync push" should build a bundle with dependencies included?
Ive experimented with different values in "includes" and "excludes". The dependency is a Prisma Client generated with ESM and if I dont have it in "excludes", "wmill sync push" generates 100's of scripts + yamls + lock files, one for each single individual file in the generated client and any dependency it has, that just doesnt seem right...? Is it the case that you need to create "scripts" for every single file that is a part of a relatively imported dependency tree? Some of my upcoming dependencies have 1000+ files, what is the intended workflow for relative imports?
I just want the script I push with "windmill sync push" to be the same as when I bundle locally with esbuild or the VSCode extension feature, is that not possible?
This line in the docs is very confusing at https://www.windmill.dev/docs/advanced/dependencies_in_typescript#bundle-per-script-built-by-cli:
"Windmill CLI, it is done automatically on wmill sync push for any script that falls in the patterns of includes and excludes as defined by the wmill.yaml (in the codebase field)."
I dont have any codebases, just my windmill code and scripts in same path, with stuff i want to import relateively across several scripts...