Repository navigation
Fix the Vite plugin notes from the #108 review - #109
Merged
Merged
Conversation
A resource attribute replaces only its own folder, so only assets-base makes the plugin's copy unused. The frameworks bullet now covers any Vite app, React Router included. The 4.5.0 migration step says to remove assets-base and the copy, since the element ignores the plugin's copy while assets-base is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
With assets-base set, the folders an attribute doesn't replace come from assets-base, not from the plugin's copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Fixes the four review comments on #108, which merged before they were addressed. All four were correct:
assets-baseor a resource attribute makes the plugin's copy unused. Onlyassets-basedoes that. A resource attribute such asc-map-urlreplaces only its own folder, and the element still loads the rest from the plugin's copy. This matchesgetResourceOptionin the element.dist, but not thatassets-basehas to go. Whileassets-baseis set, the element ignores the plugin's copy. The step now says to add the plugin and then removeassets-base, any resource attributes that point at the copy, and the copy step.Validation
pnpm buildpasses, and everyhref="#…"on_site/pdfjs-viewer/index.htmlmatches an id, including the new link to#pdf-js-resources.🤖 Generated with Claude Code
Summary by cubic
Fixes the four review notes on #108, which merged before they were addressed. The docs now match how the element and plugin actually behave.
c-map-urlreplaces only its own folder; onlyassets-basemakes the plugin's copy unused. Withoutassets-base, the folders an attribute doesn't replace come from the plugin's copy.assets-base, any resource attributes pointing at the copy, and the copy step, since the element ignores the plugin's copy whileassets-baseis set.Written for commit 3a5bcd2. Summary will update on new commits.