Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(metro): strip app/+html files from client bundles. #22881

Merged
merged 3 commits into from
Jun 16, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

Prevent the contents of +html from leaking into the client bundle. This is only enabled when static rendering is enabled.

How

If the file matches app/+html* and metro isn't compiling that file for node.js, then it will be removed.

Test Plan

Added automated tests.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 14, 2023
EvanBacon and others added 2 commits June 13, 2023 20:14
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 14, 2023
@EvanBacon EvanBacon merged commit 8455e99 into main Jun 16, 2023
7 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/metro/strip-server-files branch June 16, 2023 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants