Open benallfree opened 1 month ago
@benallfree we could add that as an additional way to import. Sometimes people want to resolve the files with the default loader system vs an explicit "with" loader.
We could call it "with-file"? Open to a PR. Aider.chat could probably implement this one automatically!
Actually maybe --content-format="import-with", i kind of like that.
Great idea. I'll send a PR if I get further into needing it. It turns out that creating a stand-alone executable of node console apps is tricky because many node packages are not easy bundled. Anything that uses dynamic imports presents challenges.
From https://bun.sh/docs/bundler/executables#embed-assets-files
Does it need
with { type: "file" }
appended to the imports?