Skip to content

Syncfusion DocumentEditor causes large bundle size even after lazy loading and manual chunking in Vite #123

@AmmarMohamadIsmaeel

Description

@AmmarMohamadIsmaeel

The core @syncfusion/ej2-documenteditor package is too large (3.5 MB minified) to be split into smaller chunks despite modular usage. This leads to a persistent warning and unnecessarily large payload for certain routes.

What we've tried:
✅ Lazy-loading the Syncfusion component via defineAsyncComponent()

✅ Manually splitting @syncfusion/ej2-documenteditor and @syncfusion/ej2-vue-documenteditor into separate chunks

✅ Avoiding any static imports across the app

✅ Using tree-shaking and importing only required modules (SfdtExport, Editor, etc.)

✅ Verified bundle with vite-plugin-visualizer

Suggested Feature / Fix:
Modularize the Syncfusion editor package – Split into smaller independent packages or modules that can be tree-shaken better.

Provide guidance on best practices for optimizing Syncfusion in modern frameworks like Vite.

Optionally publish E.g., @syncfusion/documenteditor-core, @syncfusion/documenteditor-export, etc. for better granularity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions