entropic-dev / entropic-dev/entropic
Equivalent for Yarn's "Plug'n'play" feature
- Dominant language
- JavaScript
- Stars
- 5.2k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
# Is this a feature request or a bug?
Feature request
# Expected behavior:
[For those who are unfamiliar](https://yarnpkg.com/en/docs/pnp)
Yarn's Plug'n'play feature enables it to be incredibly fast and disk usage efficient. It not only improves install times, but can improve startup time as well.
Installs are simplified to only reading one or two files (a package manifest and a lock file) and writing one file (Yarn calls it .pnp.js, but I'm not really attached to the name) rather than writing a bunch of files in nested directories or creating symbolic links to a bunch of nested directories and other sad things.
At runtime, this single output file knows exactly where we have stored our local copies of each dependency so that we don't have to waste a bunch of time on file system traversals. In addition we are also able to throw errors when we try to import dependencies which are not declared in our package file instead of silently succeeding and then failing later when run somewhere else without that dependency.
# Actual behavior:
Entropic currently defaults to being slow and creating huge node_modules folders like a sucker. ☹️
I would be willing to help implement this, but there are a few implementation details that would need to be worked out first. That, and deciding if this is a feature that people actually want/care about.
Contributor guide
Assessment
This issue has not been assessed yet.