Sebastien Guillemot
Sebastien Guillemot
I think I figured out what is happening with this. Vite handles dependencies and code you wrote separately. Notably, Vite uses [dependency pre-bundling](https://vitejs.dev/guide/dep-pre-bundling) to bundle any package you have separately...
> Could you please provide me with a sample schema and output that fails in the current setup Yes, I added one as a test (recursive.json) which you can see...
> So this PR will make every exported typebox code (regardless if it contains recursive refs or not) into Module types, correct? Internally they are constructed as modules, but the...
@bastiion I won't have time to work on this, so you're free to yoink my code and modify it as required to get it merged
FYI it looks like `Type.Recursive` will be removed in the upcoming version of Typebox (1.0.0), and replaced with `Type.Cyclic` (which works like modules under the hood: https://github.com/sinclairzx81/typebox/blob/main/changelog/1.0.0-migration.md#typerecursive)