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
Respect unstable_serverRoot setting in experimentalImportBundleSupport mode
Summary:
There was a bug when serving bundles in `experimentalImportBundleSupport: true` mode (D15943150 (72329d0), aka development-mode bundle splitting) and using a non-empty `unstable_serverRoot` (D30247868 (026a66c)). The split bundles would be requested with the wrong URL, using `projectRoot` rather than `unstable_serverRoot` as the base path.
Here we fix this bug by adding a `serverRoot` property to the serializer's input and using it as the base path for split bundle URLs. We add `serverRoot` *alongside* `projectRoot` in order to avoid breaking custom serializers that may rely on `projectRoot`'s existence.
Reviewed By: GijsWeterings
Differential Revision: D35188943
fbshipit-source-id: 666943d90f5af613dbc366cf10861d7313ddd3c5
0 commit comments