unjs / jiti

Runtime TypeScript and ESM support for Node.js
MIT License
1.91k stars 62 forks source link

fix: handle global url instance mismatch #298

Closed danielroe closed 2 months ago

danielroe commented 2 months ago

When testing, it's possible that the instanceof URL test does not succeed.

Discovered/reproducible via https://github.com/nuxt/ecosystem-ci/actions/runs/10953460888/job/30413781016.

I will see if I can create a minimal reproduction - there are several layers of nesting in the more complex reproduction, but raising in case this seems good to you (and I can confirm it does resolve the issue) or you have an idea where to look further.