Skip to content

Can we reduce both the package size and the package creation time? #10564

@bhoomesh-spe

Description

@bhoomesh-spe

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • SPFx version - 1.21.1
  • Node.js version - 22.14.0

Describe the bug / error

We have developed an SPFx project that includes 15 web parts.

Please find the attached config.json and package.json files for additional details.

config.json
package.json

The project functions as expected; however, generating the package currently takes a significant amount of time—approximately 8–10 minutes.

The resulting package size is 21 MB.

Steps to reproduce

The following commands were executed during the package generation process:

  1. gulp clean
  2. gulp bundle --ship
  3. gulp package-solution --ship

Expected behavior

We would like to know if there is any way to optimize the package size and reduce the package creation time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions