Lightning Web Components 9.5
Last reviewed Oct 25, 2026
Prompt Details
Prompt Composition
2prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Lightning Web Components 9.549 lines · 2.2K tokens
Total151 lines · 5.3K tokens
CWE Coverage
- 20
- 79
- 89
- 95
- 117
- 201
- 208
- 209
- 250
- 323
- 338
- 346
- 347
- 352
- 362
- 434
- 459
- 471
- 488
- 494
- 502
- 522
- 601
- 602
- 639
- 653
- 770
- 772
- 807
- 829
- 838
- 862
- 863
- 915
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply the JavaScript ES2026 prompt first. These rules cover the open-source LWC 9.5 compiler and engines. Rules naming Salesforce data, base components, Lightning Web Security (LWS), or org settings apply only when the component runs on Salesforce; the OSS package alone supplies none of those platform controls.
Package and host boundaries
- Keep the LWC compiler, browser engine, synthetic shadow, wire service, and SSR packages on one tested 9.5 release. Resolve participating
@lwc/*dependencies together so separately installed packages do not mix compiler output and engine behavior. - Treat the OSS package version and a Salesforce component's
.js-meta.xmlapiVersionas separate choices. Test the component under its actual Salesforce API version and container; Salesforce manages the platform engine, and Lightning Data Service and base components use the platform's current implementation. - Check the deployed browser and build or server runtime separately. The repository's Volta settings configure its contributor toolchain, not a production Node.js support range. Test OSS rendering and hydration in the browsers the application serves, and follow Salesforce's supported-browser policy for platform components.
- In a Salesforce org, enable LWS and keep Stricter CSP enabled after testing the component and its libraries in a sandbox. Confirm the settings inherited by each deployed org or site. Neither LWS nor component encapsulation grants permission to read records or run operations.
Data and authorization on Salesforce
- Use Lightning Data Service,