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

Remove (almost) all use of dynamic imports #870

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Remove (almost) all use of dynamic imports #870

merged 1 commit into from
Sep 22, 2023

Conversation

simenheg
Copy link
Collaborator

Dynamic imports reduce the bundle size of the main index.js file, but they cause problems when deploying new versions of the app because previous versions of the bundle files (which are still possibly referenced by a running app) are removed.

We keep one exception for this change: the Api.js bundle is still loaded dynamically because of its size (almost the same as index.js itself).

@simenheg simenheg requested a review from a team September 21, 2023 07:27
Dynamic imports reduce the bundle size of the main `index.js` file,
but they cause problems when deploying new versions of the app because
previous versions of the bundle files (which are still possibly
referenced by a running app) are removed.

We keep one exception for this change: the `Api.js` bundle is still
loaded dynamically because of its size (almost the same as `index.js`
itself).
Copy link
Collaborator

@petterhj petterhj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@simenheg simenheg merged commit 09a565a into main Sep 22, 2023
3 checks passed
@simenheg simenheg deleted the no-async branch September 22, 2023 08:06
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.

2 participants