Repository navigation
Provide more chunk information - #2553
lukastaegert wants to merge 6 commits into
Conversation
95f4c84 to
0ba4d26
Compare
* Give precedence to entry facades when deconflicting ids * Add entryModuleId to entry facades
…ry points * Use internal names for dynamic entry points * Do not generate dynamic entry points that are not used
1283ee0 to
9887f3c
Compare
9887f3c to
5a73390
Compare
|
While trying to solve my "CSS shadow dependency graph" issues in Chunks that use I'm trying to ensure the CSS gets chunked up like the JS but w/o that crucible piece of information I can really only get like 80% of the way there. |
Dynamic imports still failing: rollup/rollup#2553 (comment)
|
Sounds great, thanks @lukastaegert! |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
Breaking changes:
isEntry: trueif they have a separate entry module facade as the facade replaces the chunkisEntry: trueand no longer use theentryFileNamesbut thechunkFileNamesnaming scheme unless they are also listed as actual entry points in the inputsThis PR aims to provide more information about the generated chunks in the return values of
generateandwriteas well as thegenerateBundlehook. This is still work-in-progress and will be updated. Currently implemented changes:isEntry: true. Thus there is a one-to-one correspondence of inputs and entry chunksentryModuleIdproperty which contains the id of the corresponding entry module.isEntryis false for them and their names are determined via thechunkFileNamesproperty instead of theentryFileNamespropertyisDynamicEntry: truepropertynameproperty used when generating chunk names is exposed vianame.Note: There is an issue when dynamically importing a manual chunk. This issue was present before but manifests now differently. I plan on working on a PR that fixes this in a more substantial way soon. Until then, the corresponding test is skipped.