Sebastian Sdorra

Results 108 comments of Sebastian Sdorra

I understand the need, but I'm unsure about the API. With the API from your proposal, a user could create multiple watchers for each document in a collection. This could...

I don't particularly like either approach. Both have a lot of potential for errors. I have thought a little about automation. That all files and folders which are read using...

I think I found a compromise for an API. We expose a `watch` function from the transform context, as in your first suggestion. The `watch` function takes an base directory...

After digging into the code, I must say it is not easy. Triggering a new build whenever a file changes that matches the directory and expression is the simple part....

I don't see how watchman can help me with the cache problem

Can you provide a repository to reproduce the issue? If i try to reproduce it, i became a totally different issue: ```text Starting content-collections content-collections.ts build started ... ✘ [ERROR]...

Ok, i've used a quick workaround to bypass the problem with the missing path: ```bash cp node_modules/@theguild/remark-mermaid/dist/mermaid.js node_modules/@theguild/remark-mermaid/ ``` After that i could use mermaid diagrams in a code block...

The error went away if I pass the `cwd` to the `compileMDX`: ```ts const content = await compileMDX(ctx, post, { cwd: process.cwd(), remarkPlugins: [remarkMermaid], }); ``` I'm not sure why...

@Bartek532, can you confirm that passing the `cwd` resolves the issue?