Improve bundle size and add webpack-bundle-analyzer #25337
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #2498
Before 14.5 MB bundle.js
![image](https://private-user-images.githubusercontent.com/2403652/237693336-45c44a8f-4b2a-482e-b03f-f6566f2475d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzk2MjMsIm5iZiI6MTczOTIzOTMyMywicGF0aCI6Ii8yNDAzNjUyLzIzNzY5MzMzNi00NWM0NGE4Zi00YjJhLTQ4MmUtYjAzZi1mNjU2NmYyNDc1ZDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDIwMjAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjk5YTQ4NTRhNzMzZTNlYjc3NTdjZGJhYTExYzE1MDE0NTViZGY4ZTc0YmZhZTk0ZGM1NzI4NjQzMjY0YTcwMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9p5zyNeZUAYYfojRleBgkgUKLfYvu1ygI-0Pt4AKPR0)
After 13.28 MB bundle.js
![image](https://private-user-images.githubusercontent.com/2403652/237692809-527c43af-d0c0-49ca-be0a-8022b85c38d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzk2MjMsIm5iZiI6MTczOTIzOTMyMywicGF0aCI6Ii8yNDAzNjUyLzIzNzY5MjgwOS01MjdjNDNhZi1kMGMwLTQ5Y2EtYmUwYS04MDIyYjg1YzM4ZDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDIwMjAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTBjYjcxODI1ZWFlNjVlNDc4YzZiNWY4YThhZDJkY2NhNzMxMDU3NWIxYTYzNWZmMWYwNzdhNmFjMzYzMWI5OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.VMt7R5gZNMJV-H49cHnzBgofx8ipg4JnSv-KvOhNDoI)
This change is marked as an internal change (Task), so will not be included in the changelog.