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

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