Kricsleo
Kricsleo
I currently leave this PR as it is until more changes are requested. (And, the author, pi0 might not have enough bandwith for this for now)
It can be reproduced in node, see https://github.com/unjs/consola/issues/298#issuecomment-2125827332 And it's caused by this `JSON.strinfify` https://github.com/unjs/consola/blob/5ac9ed76b021c9ffc768f0727355238056aabeb1/src/consola.ts#L425-L430 `JSON.stringify` invokes the `getter`, which logs the same obj again, resulting in a recursive call...
No, I've tried (`ohash` or other methods), but they don't help. Anythings that works like `serialize` (which triggers `getter`) will result in infinite loop. It's not just the `getter`; `Proxy`...
Sure, I've updated the description. Looking forward to your feedback! ❤️
Isn't `JITI_CACHE` considered deprecated (as it's no longer mentioned in the docs) or replaced by `JITI_FS_CACHE`? (This issue primarily concerns `fsCache`, given that we also have `JITI_MODULE_CACHE`.)
I agree with your suggestion to support three modes on the same config: `fsCache: true | false | 'rebuild'`. 👍 Regarding `JITI_REBUILD_FS_CACHE`, since it mainly influences `JITI_FS_CACHE`, if they're used...
> confirm if fix tested on prod? Verified locally, I don't have an Azure setup, and it seems the nitro-deploys don't either 😂 https://github.com/nitrojs/nitro-deploys?tab=readme-ov-file#providers > Azure Functions ([docs](https://nitro.unjs.io/deploy/providers/azure#azure-functions) | ~~deployment~~...
Seems like a valid fix 🤔
A simplified minimal reproduction: https://stackblitz.com/edit/github-svycnqv9?file=src%2Findex.js&startScript=dev Although not the same error in StackBlitz, but it can be reproduced locally as described in this issue.
Can you confirm it with the latest unbuild? I tried it, the current output is: ```ts interface ReadonlyMapConstructor { new (): ReadonlyMap; new (entries?: ReadonlyArray | Iterable | null): ReadonlyMap;...