-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use package dependencies #1028
Use package dependencies #1028
Conversation
🎉 This PR is included in version 4.9.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Awesome! how you'd feel though about inlining |
@G-Rath Where do you see that? It should not be that big. |
Oh, I don't know, on one hand, 64Kb (without source maps) for a single function is too much. One the other hand, I don't want to copy-paste those functions all over the place. I guess the win-win would be to publish |
|
For context, this is the tree for v4.9.1:
and pov-wise I'm caring about this as a user of That's why I originally inlinined I agree with the general principle of using packages to avoid duplication of code, but I think there's a threshold that has to be met and I would be surprised if this function meets that - even if it's used in a couple of places, we're talking about ~500 bytes for this particular function, and it's not been changed in years from what I can tell; do you really think it's worth you spending the time to make it a dedicated package right now? (keeping in mind too we can always do that later). That's also why I've opened jsonjoy-com/util#2 because that's even less code. I think my overall concern with these packages is that right now they're still a bit too broad especially for the "webpack-dev-server" user - personally I'd really like to see something like "memfs-core" or "memfs-lite" that contained the original vanilla memfs that folks like |
How do you imagine this, would it be some monorepo/workspace, or just two packages: (1) original memfs; (2) everything else? |
I think I'd start by having just the two packages: In the long-run a monorepo might make sense for the "everything else" but I think it really depends on how all that is expected to be used which I don't have a good sense of i.e. you could have |
Awesome, and love that name to boot! Feel free to add me as a contributor if you'd like help with maintaining any of the new packages. Do you want to aim to remove the fs's from |
No description provided.