You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to reproduction: https://repl.it/@oatymart/rollup-repro (REPL is slightly contrived, since I wouldn't normally use switch in manualChunks or mix and match chunk sizes. However I discovered the inconsistency while investigating why my single-module chunks would never take their specified names.)
Description
Given a manualChunks function for code-splitting based on language files, similar to that from the documentation (https://rollupjs.org/guide/en/#outputmanualchunks).
The resulting chunk naming is inconsistent.
Expected Behavior
Any chunk created by a manualChunks return value should have a name matching the string returned.
Actual Behavior
Chunks containing multiple modules take the name string returned from manualChunks function.
Chunks containing only 1 module take a name derived from the module filename.
The text was updated successfully, but these errors were encountered:
This is happening if there is a single dynamic entry point (i.e. target of a dynamic import(...)) in the chunk.
The issue was caused by a conflict with the name derived from the dynamic entry point with the manual chunk name. #4040 will switch the naming priorities here to avoid this and prefer the manual chunk name.
switch
in manualChunks or mix and match chunk sizes. However I discovered the inconsistency while investigating why my single-module chunks would never take their specified names.)Description
Given a manualChunks function for code-splitting based on language files, similar to that from the documentation (https://rollupjs.org/guide/en/#outputmanualchunks).
The resulting chunk naming is inconsistent.
Expected Behavior
Any chunk created by a manualChunks return value should have a name matching the string returned.
Actual Behavior
Chunks containing multiple modules take the name string returned from manualChunks function.
Chunks containing only 1 module take a name derived from the module filename.
The text was updated successfully, but these errors were encountered: