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
Reduce disk impact of Rollup NPM package #4076
Comments
The source map was added as people are using the REPL to debug Rollup. |
Note that the source map for the browser build is also the only one we are including, specifically to support this use case. |
@lukastaegert I understand. Since I think that the majority of Rollup users integrate Rollup in their build system, would it maybe be possible to separate out the REPL-support in a separate NPM package? E.g. something like |
Might be a good idea for the next major version to think about the package structure. Separating the browser build from the rest is likely a good idea as there should be little overlap between their consumers. |
@lukastaegert Quick question: when are you expecting to publish a new major version? |
At least some months from now. It is clear what should be part of that version but work has been blocked by other issues. |
This issue has been resolved via #4593 as part of rollup@3.0.0-5. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4593 as part of rollup@3.0.0-6. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4593 as part of rollup@3.0.0-7. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4593 as part of rollup@3.0.0-8. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4593 as part of rollup@3.0.0. You can test it via |
Expected Behavior / Situation
Rollup should have a minimal disk impact in
node_modules
Actual Behavior / Situation
Rollup takes up 4.3MB of disk space in the
node_modules/
of Chrome DevTools, which puts it in the top 10 largest packages.Rollup ships with a sourcemap that takes up 30% of its bundle.
Modification Proposal
Similarly to what we have done with Acorn (acornjs/acorn#1023) and ESLint (eslint/eslint#14098), can we remove the sourcemap from the NPM package?
The text was updated successfully, but these errors were encountered: