Repository navigation
feat: expose style dependencies and buildFinished events - #13
Merged
davidpett merged 1 commit intoMay 29, 2026
Merged
Conversation
4 tasks
Add getComponentStyleDependencies() for component/style file graphs and stencilBuildEvents so downstream tools can react after project-wide Stencil rebuilds without regex or dist mtime polling.
davidpett
force-pushed
the
feat/style-deps-and-build-events
branch
from
May 29, 2026 15:15
f6dda8c to
128f29b
Compare
christian-bromann
approved these changes
May 29, 2026
christian-bromann
left a comment
Member
There was a problem hiding this comment.
Thanks @davidpett 👍
I made you a maintainer, so feel free to merge and publish updates without approval from me moving forward.
Collaborator
Author
|
@christian-bromann that is great, thanks! Although I am not able to release via the action. I get an npm auth error: https://github.com/stencil-community/unplugin-stencil/actions/runs/26661703777/job/78585587398 |
This was referenced Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getComponentStyleDependencies()returningbyComponent,byStyle, and resolvedglobalStylemaps, rebuilt after each successful Stencil compile via TypeScript AST over component sources (styleUrl,styleUrlsarray, and mode object).stencilBuildEvents(buildFinishedwithCompilerBuildResults,buildError) forwarded fromBuildQueueso consumers can invalidate all dist output after a project-wide rebuild without mtime polling.typescriptas a runtime dependency for AST parsing; include unit tests and workspace ESLint-on-save settings aligned with@antfu/eslint-config.Motivation
Enables
@stencil/storybook-plugin(and similar tooling) to drop fragile regex extraction of style paths and post-transform dist polling.Test plan
pnpm exec vitest run test/pnpm build