feat(metro, cli, router): production static web source maps support (#24213)# Why - Add support for exporting (or skipping) optimally formatted source maps on web with static rendering enabled.
feat(metro, cli, router): production static web source maps support (#24213)# Why - Add support for exporting (or skipping) optimally formatted source maps on web with static rendering enabled. - Improved version of https://github.com/expo/expo/pull/22334 <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> # How - Pass a new setting to the custom serializer when exporting for usage outside of the dev server. This setting will ensure a source map is created with paths relative to the server root. - The resources will be adjusted after exporting to reflect the hashed js filename location. - When no sourcemap exporting is enabled, the references will be stripped to prevent getting a chrome warning. <!-- How did you build this feature or fix this bug and why? --> # Test Plan - I added an e2e bundling test for both exporting with and without sourcemaps. <!-- Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction. --> # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Expo Bot <[email protected]>
show more ...
chore: improve expo router testing (#23795)# Why - Ensure the various aspects of `npx expo export` continue to work with the latest Expo Router/Metro depdencies. - We had a bundling testing fo
chore: improve expo router testing (#23795)# Why - Ensure the various aspects of `npx expo export` continue to work with the latest Expo Router/Metro depdencies. - We had a bundling testing for Expo Router but it wasn't linked to the monorepo so the dependencies weren't in sync. <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> # How - Create a new app in `apps/` which is synchronized with the monorepo. - This app contains multiple expo-router directories and various dynamic settings. - Fold the `expo-router` e2e tests into `@expo/cli`. - Test static rendering, single-page application exporting, and the native url polyfill (api). <!-- How did you build this feature or fix this bug and why? --> # Test Plan - The CLI E2E tests should pass. --------- Co-authored-by: Expo Bot <[email protected]>