Skip to content

[Feature] Support adding custom loaders to the test runner #26822

@AlessioGr

Description

@AlessioGr

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:
Screenshot 2023-08-31 at 19 33 25@2x

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions