Repository navigation
fix(deps): remove unused @lwrjs/api and move lwc to devDependencies @W-24460137@ - #691
Merged
Merged
Conversation
…W-24460137@ Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…4460137@ Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
wjhsf
approved these changes
Oct 9, 2026
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.
What does this PR do?
Shrinks installed plugin size by ~208 MB (−23%).
@lwrjs/api— no remaining imports since its last usage was removed in W-21188143: chore: remove --ssr, --get-latest, and --guest flags from site command #635. Not part of the plugin's exports, so no consumer can depend on it through us.lwctodevDependencies— it was only independenciesas a peer of@lwrjs/api. Runtime compilation goes through the bundled@lwc/sfdx-local-dev-dist-*aliases;lwcis still needed for tests.link-lwr/unlink-lwrscripts and the matching README linking steps.yarn.lockdiff is removal-only.Measured (
npm install --omit devfrom a registry, shrinkwrap honored, i.e. whatsf plugins installdoes):node_modules"After" was published to a local Verdaccio registry. Installing from a local
file:tarball ignores the bundled shrinkwrap, so it under-reports size.The savings are one-time, not per API version. 66.0, 67.0 and 68.0 already share the LWR stack, and each version adds ~55–65 MB.
Verification
yarn build,yarn test: pass.lightning dev component|app|site: commands load,--helpOK.What issues does this PR fix or reference?
@W-24460137@
🤖 Generated with Claude Code