Skip to content

Conversation

@nrkruk
Copy link
Collaborator

@nrkruk nrkruk commented Nov 6, 2025

What does this PR do?

This PR ports functional changes from the 258-patch branch to main, focusing on improvements for IDE-based component preview and VSCode/Code Builder integration.

Key Changes:

  • Added new metaUtils.ts utility for auto-enabling Lightning Preview in orgs
  • Enhanced lightning dev component command with:
    • --api-version flag for API version override
    • Auto-enable local dev support (via AUTO_ENABLE_LOCAL_DEV env var)
    • VSCode/Code Builder proxy support (via SF_CONTAINER_MODE and VSCODE_PROXY_URI env vars)
    • Improved return type with ComponentPreviewResult for better JSON output
  • Added generateComponentPreviewUrl() helper method in previewUtils
  • Removed lightning-base-components dependency from lwc.config.json
  • Updated GitHub workflow to promote version 4 to 'latest' tag
  • Updated command snapshot for new flag

These changes enable better integration with IDEs (especially VSCode/Code Builder) and provide the foundation for fixing single component preview from IDE environments.

What issues does this PR fix or reference?

@W-20141594@

@nrkruk nrkruk requested review from a team as code owners November 6, 2025 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants