Skip to content

fix(runtime): bundle size#6549

Merged
johnjenkins merged 8 commits intomainfrom
fix-runtime-bundle
Jan 15, 2026
Merged

fix(runtime): bundle size#6549
johnjenkins merged 8 commits intomainfrom
fix-runtime-bundle

Conversation

@johnjenkins
Copy link
Contributor

@johnjenkins johnjenkins commented Jan 15, 2026

What is the current behavior?

GitHub Issue Number: N/A

I noticed minimatch (a build-time dep used for bundling), was in my runtime output adding around 9kb (gzipped) to a minimum project's core runtime!

For the last 3 years Stencil has had no visibility of the file size of it's core runtime. The test for it was removed and a 'to-do' was put in place.

What is the new behavior?

The minimatch specific issue was due to runtime modules importing from barrel files (obvs). I have made sure all runtime modules now import the specific modules they require.

The core runtime module is now ~4kb down from ~13kb (gzipped)

Additionally, I have added a new core module size test which will fail when core is over 8kb (un-gzipped)

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@johnjenkins johnjenkins requested a review from a team as a code owner January 15, 2026 16:03
@johnjenkins johnjenkins merged commit 3de7ba6 into main Jan 15, 2026
69 checks passed
@johnjenkins johnjenkins deleted the fix-runtime-bundle branch January 15, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant