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
Disabling file concatenation #3882
Comments
This has been discussed in the past in different contexts, see e.g. #3684. The way forward will be to fully respect the |
Thank you for the feedback 👍. I have no special urgency around this need, it's more for experimentation. |
It is now kind of tracked here: https://github.com/rollup/rollup/projects/3 |
By the way I found a way to disable concatenation by accident. In short, inside the "load" hook, I emit a chunk for every js file. async load(id) {
if (id.endsWith('.js')) {
this.emit({type: "chunk", id })
}
} . |
@dmail Your fix doesn't seem to be working for me. Does anyone's got some sorta workaround for this? |
Resolved in #4565 |
This issue has been resolved via #4565 as part of rollup@3.0.0-3. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4565 as part of rollup@3.0.0-4. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4565 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 #4565 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 #4565 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 #4565 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 #4565 as part of rollup@3.0.0. You can test it via |
Context
For some projects I would like to use rollup to benefit from tree-shaking and url hashing without generating chunks (disable concatenation of files). From my understanding
preserveModules
is the option to use for that situation. According to my testspreserveModules
behaviour is not what I expected.The following code illustrates what I have in mind.
Expected Behavior / Situation
Rollup write files with hash in their names such as
Actual Behavior / Situation
Rollup write files without hash under
_virtual
directory.Modification Proposal
Allow to disable chunks using
preserveModules
options or something else and update import paths to get hash in urls.The text was updated successfully, but these errors were encountered: