thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
389 stars 49 forks source link

WIP - cross browser usage with Rollup #79

Closed mrchrisadams closed 2 years ago

mrchrisadams commented 2 years ago

🚨🚨🚨 this isn't close to being ready for merging 🚨🚨🚨

This is an experimental PR that instead of having fairly awkward to use build that largely assumes it's working in a nodejs runtime, instead provides:

This uses Rollup, to create these builds, and the goal is for the first two builds not to have any code that assumes nodejs at all, but instead uses webby APIs like fetch instead.

mrchrisadams commented 2 years ago

Closing this, in favour of merging the new v0.10.0 work in, as it's much tidier, and the PRs merging into it should do a better job of explaining what changes have been made