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(babel): aggregate externals #92

Merged
merged 2 commits into from
Jan 5, 2025
Merged

feat(babel): aggregate externals #92

merged 2 commits into from
Jan 5, 2025

Conversation

crherman7
Copy link
Owner

@crherman7 crherman7 commented Jan 4, 2025

Scope

closes TICKET-85

Implementation

When generating the code with for RECHUNK_GLOBAL via babel we will automatically aggregate externals i.e. path aliases via babel. We first load the tsconfig to track all the path aliases. We then aggregate all *.ts and *.tsx files and then traverse those to store all import sources that match the path alias. We will then add those to the require function.

Screenshots

ios

Simulator Screenshot - iPhone 15 - 2025-01-05 at 11 43 39

android

Screenshot_1736095404

How to Test

./scripts/init-local

Emoji Guide

For reviewers: Emojis can be added to comments to call out blocking versus non-blocking feedback.

E.g: Praise, minor suggestions, or clarifying questions that don’t block merging the PR.

🟢 Nice refactor!

🟡 Why was the default value removed?

E.g: Blocking feedback must be addressed before merging.

🔴 This change will break something important

Blocking 🔴 ❌ 🚨 RED
Non-blocking 🟡 💡 🤔 💭 Yellow, thinking, etc
Praise 🟢 💚 😍 👍 🙌 Green, hearts, positive emojis, etc

@crherman7 crherman7 marked this pull request as draft January 4, 2025 22:55
@crherman7 crherman7 linked an issue Jan 5, 2025 that may be closed by this pull request
@crherman7 crherman7 marked this pull request as ready for review January 5, 2025 16:46
@crherman7 crherman7 merged commit 7513011 into develop Jan 5, 2025
@crherman7 crherman7 deleted the feat/aggregate_ext branch January 5, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aggregate externals
1 participant