Repository navigation
Conversation
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
June 10, 2026 22:50
f644074 to
f74c494
Compare
Collaborator
Author
|
Closing — superseded by #15 which rebases cleanly on top of the merged main. |
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
@stencil-community/unplugin-stenciland update README install/import references.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.actions/checkoutandpnpm/action-setupto v4, use a genericGitHub Actionsgit identity, and enable npm provenance.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/(19 tests pass)pnpm build