Skip to content

feat: Upgrade Rollup to Latest Version to Improve Performance and Support for Modern JavaScript Features #5976

Closed
@a7medm7med

Description

@a7medm7med

Prerequisites

Describe the Feature Request

Hi StencilJS Team,

First, I want to express my deep appreciation for all the hard work you've put into StencilJS. I've been using it extensively in my projects and absolutely love it! Special shout-out to @christian-bromann for the amazing contributions.

However, I'm encountering some significant issues due to the use of an outdated version of Rollup (currently 2.56.3), while the latest version is 4.12.2. This old version prevents me from using new JavaScript features, such as Static Initialization Blocks. Additionally, the dev server performance has become a major pain point.

In my project, which has double the number of components compared to Ionic Framework, I'm seeing build times of more than 18 seconds after each code update. It’s especially worse when editing code that requires updating the components.d.ts file — in these cases, the delay is more than 40 seconds, even on a high-performance machine.

For context, I’ve experimented with esbuild in combination with lit, and the results were fantastic, with dev server updates taking less than 2 seconds!

I know the StencilJS team works hard to maintain this awesome framework, and I’m hopeful that upgrading Rollup to a more recent version will bring improvements in performance and support for modern JavaScript features or using esbuild instead of Rollup.

Thanks so much for your time and for continuing to make StencilJS great!

Describe the Use Case


Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: RefineThis PR is marked for Jira refinement. We're not working on it - we're talking it through.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions