-
Notifications
You must be signed in to change notification settings - Fork 290
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
chore: fix package bundling #205
base: master
Are you sure you want to change the base?
Conversation
@alexei I don't know who the other maintainers are so, mentioning you in this here. |
What problem does this address? |
@alexei the fact that package bundling is not done correctly, as the name implies. Currently, the source code is included with bundles, whereas it should be the distribution channel exclusively. This fixes that. |
Why? |
@alexei Because that's how package distribution works. You package the metadata and production-ready version of the library. The source code is already available in the repository, and including it adds unnecessary bundle size and slows down dependency installation. |
Hehehe, if that were true, then why is my basic React app using 300 MB of disk space?
|
I have no idea, because react doesn't use anywhere near that much space. Seems like a you problem. Although, altogether, that is a logical fallacy - how can you disprove a statement using one edge case?
It can be, yes, I just wasn't sure whether you elected to have it like that in the first place for clarity, and removing it wouldn't pose too much difference.
Indeed it should. I'll do that.
What do you mean by "a feature of the npm repository"? The |
@alexei Status? |
@Nytelife26 sorry - I didn't have time to verify this and I don't consider it urgent anyway |
I would pick this up if I had an indication my PR would get merged. I agree that removing .npmignore (blacklist) and adding the files that should be published on npm in the code tab should be specified. I'd be more inclusive and also include CONTRIBUTORS.md, because it's the friendly thing to do. Or, move them into the package.json. |
There have been no updates other than for licensing in the past 3 years. I believe it's safe to assume the project will not be actively maintained, which is fine, because the ecosystem doesn't need it, but also strange, because it has 50 million weekly downloads. If you have agreed to take over maintenance, or you have administrative capacity to make a change like this by some means, I wouldn't mind finishing the job. |
I can also help here if there is any interest and migrate to typescript |
No description provided.