Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Stencil CSS documentation loss reproduction

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.

Setup

nvm use
npm ci
npm run build

Reproduce

npm start

Wait for each successful build before continuing:

  1. Confirm both component READMEs contain CSS Custom Properties, and stencil-docs.json has two styles entries per component.
  2. Append // probe edit to src/components/stzh-alpha/stzh-alpha.tsx. Alpha's CSS section disappears and its JSON styles becomes [], although the stylesheet is unchanged.
  3. Remove that comment. The documentation remains missing.
  4. 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.

Expected behavior

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 results

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages