feat(manifest): extend manifest deduplication with edge mappings, ent…#1212
feat(manifest): extend manifest deduplication with edge mappings, ent…#1212vicb wants to merge 1 commit intoopennextjs:vicb/dedupfrom
Conversation
…ry files, and chunks arrays - Replace empty edgeSSRModuleMapping/edgeRscModuleMapping with shared __EMPTY variable - Factor entryCSSFiles and entryJSFiles through existing factorManifestValue - Deduplicate repeated chunks arrays within module mappings into shared c_<hash> variables Builds on opennextjs#1186 (vicb/dedup).
|
commit: |
|
@jkahn117 what repo/branch have you used to test the changes here? Do you have a path to a manifest showing size reduction vs the base PR? |
|
@jkahn117 This is what I find when testing this PR rebased on main on https://github.com/jkahn117/opennext-static-assets-test (branch
The reported size is for What am I doing wrong? |
|
Hey @vicb, sharing our results comparing this PR and #1186 using the output of BaselineNext 16.2.4 Turbopack: Webpack: PR #1186Turbopack: Webpack: This PR / extend manifest deduplicationTurbopack: Webpack: |
Thanks for the feedback @mgallagher - it would be hard for me to justify merging a PR penalizing every other apps as of now. Maybe you can DM me a few manifest files before/after this PR. I'll also check if I can find an heuristic to opt-out of the optimizations in this PR when they do not benefit the bundle size. |
|
@vicb Agree, not beneficial to include if it penalizes other apps right now. It was targeted to help with @mgallagher 's case, so possible that it was over specific. |
|
@mgallagher could you please try #1215 and let us know the numbers. The PR descriptiob has details about the changes. |
|
See #1215 instead |
…ry files, and chunks arrays