| #
4a8c0978 |
| 06-Sep-2023 |
Evan Bacon <[email protected]> |
chore: reduce unused web code (#24294)
# Why
Web bundles are too big by default, this is one of a series of PRs that
will reduce code that is pulled in on web.
<!--
Please describe the motiv
chore: reduce unused web code (#24294)
# Why
Web bundles are too big by default, this is one of a series of PRs that
will reduce code that is pulled in on web.
<!--
Please describe the motivation for this PR, and link to relevant GitHub
issues, forums posts, or feature requests.
-->
# How
Because we compile the src of `@expo/metro-runtime` to CJS, the
`react-native-web` shaking plugin breaks and we import everything. This
PR also switches the input for `@expo/metro-runtime` to be `src` for
both web and native, while using `build` for Node.js and types.
<!--
How did you build this feature or fix this bug and why?
-->
# Test Plan
<!--
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 ...
|