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(admin-ui): inspect the cause of higher memory requirement in prod build creation #1243

Closed
duttarnab opened this issue Jul 25, 2023 · 2 comments · Fixed by #1257
Closed
Assignees
Labels
bug Something isn't working comp-admin-ui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@duttarnab
Copy link
Contributor

duttarnab commented Jul 25, 2023

Inspect the cause of higher memory requirement in prod build creation.

It appears on building admin-ui prod build by running npm run build:prod it takes more than 4 GB to create a prod build. Previously, it used to take less than 2 GB. We need to find the cause of this.

@duttarnab duttarnab added bug Something isn't working comp-admin-ui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels Jul 25, 2023
@duttarnab duttarnab self-assigned this Jul 25, 2023
@duttarnab
Copy link
Contributor Author

Finding: The bundling using webpack 5 is consuming the resource.

@duttarnab
Copy link
Contributor Author

The memory requirement of the project has increased due to

  • upgrading node.js version from 14.x to 18.x
  • using of the redux toolkit

There is no way to reduce the memory requirement significantly.

We will remove the following in this issue.

  • The unnecessary Webpack configuration to divide the build into chunks.
  • The GZIP of the build is not useful as it also creates an unpacked build. Hence removed that configuration.

jv18creator added a commit that referenced this issue Aug 11, 2023
fix: inspect the cause of higher memory requirement in prod build creation #1243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp-admin-ui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant