Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: decoupled svg imports from main bundle (#36662)
## Description Decoupled svg imports from main bundle, this is an 800kb file and should be lazily loaded when we actually need an svg. The previous implementation is incorrect. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/11178699547> > Commit: c6ee0c3 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11178699547&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 04 Oct 2024 13:28:17 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Enhanced the `Icon` component to load SVG icons asynchronously, improving efficiency and responsiveness. - Introduced a caching mechanism to optimize SVG imports. - Added a new dependency, `webpack-bundle-analyzer`, to analyze bundle size and structure during the build process. - **Bug Fixes** - Resolved issues related to redundant SVG imports through lazy loading. - **Chores** - Removed optimization settings for code minimization in the development configuration, improving the development experience by reducing visual clutter. - Updated `devServer` configuration to suppress warnings and errors in the client overlay. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information