[Feature] Support adding custom loaders to the test runner
Ever since switching from CJS to ESM, we've needed a custom node loader to process .scss, .svg and png file imports.
For playwright, we had to create a patch file which patches playwright to point to our custom loader.
Without this loader, we'd get the following error:
Instead of us having to patch playwright, could you either
- add a config option which allows us to add custom node loaders here, or
- natively support scss/svg/png imports in playwright's own loader?
any update on this ?
Also looking for an update on this one. We've patched this here:
https://github.com/payloadcms/payload/blob/alpha/patches/playwright%401.42.1.patch
But would love to sunset our reliance on patching Playwright.
Thank you!
Currently running into this issue in our monorepo. It'd be nice to be able to use tsx to overcome the ESM/CJS module hell in Playwright.