I am trying to build a library using tsup
. But I can not ignore test files
When setting external: [/\.test\./],
, I get errors
The entry point "./src/...-wrapper.test.tsx" cannot be marked as external
If I don't ignore, I get following error
error TS2339: Property 'media' does not exist on type 'Window & typeof globalThis'
All my tests are working well, and I have configured all global in vitest-setup.ts
file
How to fix the build?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too