Skip to content

docs(web-components-vite): document Stencil import injection for static builds#34523

Open
harshit-d3v wants to merge 1 commit intostorybookjs:nextfrom
harshit-d3v:docs/web-components-vite-stencil-import-injection
Open

docs(web-components-vite): document Stencil import injection for static builds#34523
harshit-d3v wants to merge 1 commit intostorybookjs:nextfrom
harshit-d3v:docs/web-components-vite-stencil-import-injection

Conversation

@harshit-d3v
Copy link
Copy Markdown

@harshit-d3v harshit-d3v commented Apr 11, 2026

Summary

  • document the Stencil configuration needed for static Storybook builds when using @storybook/web-components-vite
  • explain that projects using defineCustomElements() from the generated loader need import injection enabled so Vite includes lazy-loaded component entry files
  • add the Stencil 4.26+ config example using �xtras.enableImportInjection
  • mention �xperimentalImportInjection for older Stencil versions

Relates to #25704.

Testing

  • validated the updated documentation files in the editor
  • docs-only change

@valentinpalkovic
Copy link
Copy Markdown
Contributor

Hi @harshit-d3v,

Due to a recent high volume of unreviewed AI-generated PRs, we are requesting verification and proof that the implemented fix actually works. Please provide a simple GIF/Video or image of how the fix works, optimally with before-and-after comparisons.

Thank you for your understanding!

@harshit-d3v
Copy link
Copy Markdown
Author

pr-34523-proof Hi @valentinpalkovic , thanks for flagging this. This is a docs-only PR, so I’ve attached a before/after screenshot of the added guidance.

I verified the guidance against the related issue (#25704) and also confirmed locally that @stencil/core supports both enableImportInjection and experimentalImportInjection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Human verification

Development

Successfully merging this pull request may close these issues.

2 participants