Skip to content

feat: v5 add externalRuntime option to loader-bundle output#6725

Open
johnjenkins wants to merge 6 commits into
v5from
v5-feat-loader-externalRuntime
Open

feat: v5 add externalRuntime option to loader-bundle output#6725
johnjenkins wants to merge 6 commits into
v5from
v5-feat-loader-externalRuntime

Conversation

@johnjenkins
Copy link
Copy Markdown
Contributor

@johnjenkins johnjenkins commented May 18, 2026

What is the current behavior?

GitHub Issue Number: N/A

What is the new behavior?

loader-bundle now supports externalRuntime - set externalRuntime: true on the loader-bundle output target to mark @stencil/core as an external dependency in the ESM/CJS distribution output. Only affects the bundler variant; the browser/CDN build always includes the runtime.

Means you can consume multiple stencil loaders via a downstream bundler resulting in a single stencil runtime.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@johnjenkins johnjenkins requested a review from a team as a code owner May 18, 2026 18:36
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