Open hpinkos opened 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
goober-rocks | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 29, 2024 3:18pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
heya @hpinkos thanks for looking into this. Adding that check adds +17B
and wondering if this https://github.com/cristianbote/goober/pull/562 could also fix what you are seeing but with a smaller footprint?
@cristianbote unfortunately no. I did check that out and try it first, but in this environment globalThis
is set up to be a mocked version of window
so it's not equivalent to this
Prevents an error when importing a component using goober into a vitest unit test
The error is happening because
this
is equivalent tomodule.exports
Reproducible example of the error: https://github.com/hpinkos/vitest-goober