livekit / agents-js

Build realtime multimodal AI agents with Node.js
https://docs.livekit.io/agents
Apache License 2.0
146 stars 18 forks source link

Consider using tsup to bundle #157

Open martin-purplefish opened 1 day ago

martin-purplefish commented 1 day ago

https://github.com/egoist/tsup

I think it'd make things a lot cleaner - it'd mean you don't have to import .js files, you can do import prefixes (e.g. @/agent/foo' instead of '../agent/foo.js' stuff.

nbsp commented 1 day ago

interesting! do you know if it'd still work with tsx without transpiling?

martin-purplefish commented 1 day ago

I don't know - but it should since it's just bundling things using (mostly) your tsconfig - so I would expect tsx to work fine.