jamestalmage / jamestalmage/laxy

Avoid long chain of unnecessary dependencies

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Please copy&paste [these 16 lines](https://github.com/jamestalmage/lazy-singleton/blob/69436f1374e3caab42049f18f55f3754bef8a18e/index.js#L4-L20) that are actually used from the `lazy-singleton` dependency to this module to avoid absolutely unnecessary dependency on p2n <– global <– min-document <– dom-walk…

![Dependencies graph](https://user-images.githubusercontent.com/949228/59469205-67a7bb00-8e34-11e9-89ba-3bd44df814f6.png)

min-document has 54 kiB, dom-walk 18.2 kiB

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the repository entry point and compare its use of the lazy-singleton dependency with the linked 16 lines from lazy-singleton's index.js. Confirm the dependency chain is no longer needed and run the existing tests to verify lazy-loading behavior is unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.