Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Transition package from CJS to ESM #78

Closed
Tracked by #8306
christian-bromann opened this issue May 25, 2022 · 3 comments · Fixed by #83
Closed
Tracked by #8306

Transition package from CJS to ESM #78

christian-bromann opened this issue May 25, 2022 · 3 comments · Fixed by #83
Assignees

Comments

@christian-bromann
Copy link
Contributor

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.

@RossVertizan
Copy link
Contributor

I'll take a look at this one.

@christian-bromann
Copy link
Contributor Author

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
Copy link
Contributor Author

Implemented in #83

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants