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

fix: disable inline requires #25680

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

This PR reverts #25089 where we enabled inlineRequires by default.

The inline requires feature doesn't work as-is because it does not respect module side-effects. Due to the way inline requires is computed in the transformer, it has no ability to determine if a module should be automatically skipped to prevent breaking the expected order of instantiation.

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@EvanBacon EvanBacon merged commit b2563b3 into main Dec 1, 2023
3 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/metro-config/disable-inline-requires branch December 1, 2023 01:12
@expo-bot
Copy link
Collaborator

expo-bot commented Dec 1, 2023

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against 634ae33

onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
# Why

This PR reverts expo#25089 where we enabled
inlineRequires by default.

The inline requires feature doesn't work as-is because it does not
respect module side-effects. Due to the way inline requires is computed
in the transformer, it has no ability to determine if a module should be
automatically skipped to prevent breaking the expected order of
instantiation.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants