Custom bundling
I'd like to run ts-patch https://github.com/nonara/ts-patch my convex code so I can use ts compiler plugins (its compile-time only, not runtime), but you need to use
tspc
instead of tsc
. Is it possible to tell the convex cli to run tspc?GitHub
GitHub - nonara/ts-patch: Augment the TypeScript compiler to suppor...
Augment the TypeScript compiler to support extended functionality - nonara/ts-patch
1 Reply
Currently Convex uses esbuild to bundle convex functions and this isn't very customizable yet.
We could allow custom esbuild plugins or completely custom commands for bundling. I don't see an esbuild plugin for ts-patch, know if one exists? Thoughts on a standard interface for bundling, say you specify a command and we tell you where on the filesystem to stick the bundles?