-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CHORE]: Convert project to ESM #39
Comments
@garris it may be time to convert the project to ES Modules. Some of the dependencies have gone all in.
Please let me know your thoughts on this and I will plan out the necessary tasks. |
Thanks. I don't think this impacts anyone from building or integrating with their environment, right? IOW: It's more for stylistic consistency? |
This would classify as a breaking change, and probably be a major (7.x.x) release.
instead of
Integration with environments may be impacted, especially in cases where users have build BackstopJS directly into CI tooling dashboards or have custom runners written in There's a great article on dev.to which provides the caveats in a ~5m read. The options are:
I don't want to push one way or the other. Long-term benefits, short-term community outrage (but won't there always be? :) vs. short-term updates (limited by any packages that have gone full-module, such as Let me know what you think! |
I am not against this. How about we do workarounds in the short term and stabilize the project over the next few releases? After getting a few solid releases under our belts (with minimal or no breaking changes) we could plan a more ambitious roadmap with planned breaking changes in the future. How does that sound? |
Requirements
A number of dependencies are now 100% ESM, and do not work with CommonJS/
require()
.The project should be converted, entirely, to ESM. This conversion is backwards compatible with CommonJS, but CommonJS is not compatible with ESM.
p-map
andchalk
for examplep-map
chalk
The text was updated successfully, but these errors were encountered: