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

Avoid pulling in the bundled app from API in backend #396

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

jlongster
Copy link
Contributor

The backend imports the import-ynab4 and import-ynab5 packages, which we pulling in @actual-app/api directly. When we switched to the API using a full bundled version of the app, this is a problem. The importer packages are special because they are inlined directly into Actual, so although they invoke the API they are actually just running directly against Actual when in the app.

We can import just the methods from the API instead, which avoids pulling in the whole bundle. This fixes building the backend, and unblocks us to cut a release. Building the backend previously took many minutes (and resulted in a huge bundle) because it was embedding the API build; now it takes ~30 seconds.

@jlongster jlongster merged commit 157b58a into master Dec 2, 2022
@j-f1 j-f1 deleted the jlongster-avoid-api-bundle branch February 5, 2023 22:30
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.

None yet

1 participant