Unpatched @stencil/[email protected]. Two components import the same utility and
have separate plain CSS stylesheets with documented custom properties.
The Sass plugin matches the investigated configuration.
nvm use
npm ci
npm run buildnpm startWait for each successful build before continuing:
- Confirm both component READMEs contain CSS Custom Properties, and
stencil-docs.jsonhas twostylesentries per component. - Append
// probe edittosrc/components/stzh-alpha/stzh-alpha.tsx. Alpha's CSS section disappears and its JSONstylesbecomes[], although the stylesheet is unchanged. - Remove that comment. The documentation remains missing.
- Append a comment to
src/components/stzh-alpha/stzh-alpha.css. Its documentation returns.
Alternatively, edit a comment in src/utils.ts to affect importing components.
Only one watcher is needed; Storybook is not involved.
Stop the watcher with Ctrl+C. Restore your source edits, then run
npm run build to restore documentation through a fresh build.
TypeScript-only edits preserve CSS documentation, matching a fresh build.
Component READMEs are tracked intentionally so git diff shows the loss.
Generated distribution files and JSON output are ignored.
Verified locally on Node 24.18.0 with Stencil 4.45.0:
| Edit | Alpha CSS entries |
|---|---|
| Initial build | 2 |
| Add TSX comment | 0 |
| Revert TSX comment | 0 |
| Edit CSS | 2 |
See verification-results.json. All builds completed successfully.