🐞 - Unused extensions are not tree-shaken from production bundle #1412
Labels
bug
Something isn't working
contributions welcome
Architecture is clear and community can help
P3
This issue has low priority
Code Example URL
stackblitz.com
Description
Even if you customize the editor's extensions using
TUI_EDITOR_EXTENSIONS
provider, the production bundle still includes all the unused extensions like markdown and prosemirror-tables.Additional info
Angular: 18.2.5
Builder: @angular/build:application (based on esbuild)
ng build --stats-json
can be used to generates astats.json
file which can be analyzed with esbuild bundle analyzer.It might be needed to provide secondary entrypoints like in Angular Material project to have proper bundle tree-shaking
ng-packagr
explanation on how to add secondary entrypointsTaiga UI version
4.7.0
Browser Used
Chrome
OS Used
Windows
The text was updated successfully, but these errors were encountered: