wdio-video-reporter icon indicating copy to clipboard operation
wdio-video-reporter copied to clipboard

Transition package from CJS to ESM

Open christian-bromann opened this issue 2 years ago • 1 comments

As part of the v8 effort we are currently migrating over to ESM as many packages will stop support CJS in the future. This means we have to transition all plugins to ESM as well, ideally with continuous support for CJS.

christian-bromann avatar May 25 '22 09:05 christian-bromann

Update: my initial assumption that CJS services/reporters would stop working when running WebdriverIO within ESM context is wrong. They continue to work as is without any changes required. However I still suggest to do this ESM transition eventually as dependencies might migrate to ESM and stop working. Given WebdriverIO dynamically imports services and plugins there is no need to build a hybrid package for CJS and ESM. Plugins can just export ESM code and it will work fine for users running CJS and ESM.

christian-bromann avatar Jul 07 '22 10:07 christian-bromann

Thank you @mbIkola for the work transforming it 🎉

christian-bromann avatar Aug 11 '23 15:08 christian-bromann