docs: add live vite, webpack and rspack examples - #18
Merged
Conversation
Coverage Report for CI Build 32301183638Coverage remained the same at 91.37%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Three sandboxes, one demo each: a rule in the import query, a blur-up placeholder with priority, transparency and animation kept intact - built with the component packages, one per bundler. - vite + svelte, webpack + preact, rspack + react - The packages are declared as a consumer would declare them, `"*"`, and the workspace overrides resolve them to the local ones - The recursive root scripts are filtered to `./packages/*`, so the examples stay out of the build, the tests and the release
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.
Three runnable sandboxes, one per bundler, each demonstrating the same four things with the component package of its framework:
examples/vite@srcset/svelteexamples/webpack@srcset/preactexamples/rspack@srcset/reactEvery example renders a photo with widths and formats from an import query, a blur-up placeholder on a standalone
Imagewithpriority(the only place that prop is correct), a transparent png and an animated gif - and prints the generated variants under each section, so the page shows what the build produced.Sandboxes, not workspace hacks. The packages are declared as a consumer would declare them (
"@srcset/react": "*");pnpm-workspace.yamlmaps those specs toworkspace:^throughoverrides. Copying an example out of the repo needs no edit to its manifest.They stay out of the pipeline. The recursive root scripts are filtered to
./packages/*and the package.json check ignoresexamples- the same arrangement the nanoviews repository uses. Without it CI would build all three examples on every run and fail the package.json job on the private manifests.Verified for each: production build (23 variants: 9 for the query-rule photo, 6/4/4 for the rest), dev server compiling clean and serving the page, the built page rendered in a browser with all four sections and every image loading, and
oxlintclean.🤖 Generated with Claude Code