chore(ssr): replace ramda with moderndash, reduce global package size#771
chore(ssr): replace ramda with moderndash, reduce global package size#771Olyno wants to merge 5 commits into
Conversation
|
Actually this whole library is unnecessary only for merge. If you want you can remove it with a local implementation of merge. |
|
I just want to add here that at the time of working on this only |
|
From what i'm reading
From my understanding, it is the same thing than a simple a shallow or deep merge, as it combines both objects by replacing values, and returns a new object. Except if i'm wrong, the code i'm using should do the job 🤔 Please tell me your thought about it @silentworks |
|
This is getting "fixed" in this PR: supabase/ssr#1 |
What kind of change does this PR introduce?
The SSR package does not have a lot of dependencies, but one of them is taking the whole place. I tried multiple tools to compare the size, and it looks
ramdais the one having this issue.I did some search, and the lightest package i found (not deprecated) was
moderndash, offering around -75% less in terms of size, while still having the same features.Some requirements are needed tho:
What is the current behavior?
The package is too heavy for the code inside it.
What is the new behavior?
This change reduces the size of the package. Not sure of how many, but it should reduce the size of 50% at least.
Additional context
Bundlephobia
pkg-size.dev
Npmjs