thegreenwebfoundation / co2.js

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

Removing debug #144

Closed tackaberry closed 1 year ago

tackaberry commented 1 year ago

Resolves #122.

Removes debug module completely.

Reduces build size from:

166K    ./dist/cjs
41K     ./dist/esm
108K    ./dist/iife
315K    ./dist/

To:

165K    ./cjs
41K     ./esm
76K     ./iife
282K    .
fershad commented 1 year ago

@tackaberry looks good. I'll give it a proper once over early next week and look to include this in the next patch release.

fershad commented 1 year ago

Took the chance to add some JSDoc comments to the hosting files which lacked them.