GoogleChromeLabs / GoogleChromeLabs/jsbi

Export functions instead of static methods

Open
#22 5 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
962
Forks
70
PR merge metrics
No merged PRs in 30d

Description

The library is quite big and it cannot be tree shaken because all of the operators are static methods.
It would be nice to have them exported from module, so unused operators could be removed from final bundle, after all we all want faster web.
Chances are you won't be using many operators like bitwise operations.
In my case, I would like to use BigInt for operations on money and I really need only basic operations.

Contributor guide

Open the contributing guide

Research direction

Start by mapping the current static-method operators and the module's entry point. Define an export shape that lets unused operators be removed from the final bundle while preserving the basic operations needed for BigInt-based money use.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.