Issue with including yjs in worker

Hello,

I am running into an issue when I include yjs (npm) package in my workers logic. Code actually fails to run.

The issue I get is the following:
MiniflareError: Unable to resolve “dist/index.mjs” dependency “perf_hooks”: no matching module rules

I am using the rollup template with typescript that is provided by cloudflare.

issue looks similar to package that uses buffer as dependency fails · Issue #49 · cloudflare/miniflare · GitHub which doesn’t have an answer.