haim-io / cypress-image-diff

Visual regression test with cypress
MIT License
251 stars 62 forks source link

fix: add an escape hatch for esm config file #193

Closed kien-ht closed 9 months ago

kien-ht commented 9 months ago

This pull request fixes #192

CommonJS doesn't support importing ESM modules with require statements, and because our plugin is shipped as CommonJs, we fail to resolve the user config file cypress-image-diff.config.js in those projects that are ESM modules.

PippoRaimondiDIT commented 9 months ago

:tada: This PR is included in version 2.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: