Lightning Web コンポーネントからアクセスできる Salesforce リソースは 3 つあります。 3つの回答を選択してください
正解:B,D,E
Lightning Web Components (LWC) can access various Salesforce resources. Option B: SVG resources Accessible. LWCs can include SVG files to define custom icons for the component. The SVG file is placed in the component bundle with the name componentName.svg. LWCs can access content asset files using the @salesforce/contentAssetUrl import. This allows components to reference content assets stored in Salesforce. Example: import myContentAsset from '@salesforce/contentAssetUrl/My_Asset'; LWCs can access static resources using the @salesforce/resourceUrl import. Static resources can include JavaScript libraries, images, stylesheets, etc. Example: import myResource from '@salesforce/resourceUrl/My_Resource'; LWCs can use external JavaScript libraries, but there are restrictions. The library must be included as a static resource and must be compatible with Locker Service. Not all external libraries can be used due to security restrictions. LWCs cannot import or use third-party web components due to Locker Service and namespace restrictions. Components must be within the same namespace to be used. Conclusion: The three Salesforce resources that can be accessed from a Lightning web component are: Option B: SVG resources Option D: Content asset files Option E: Static resources Reference: Adding an SVG Resource to a Component Option D: Content asset files Accessible. Import Content Assets Option E: Static resources Accessible. Import Static Resources Options Not Applicable: Option A: All external libraries Not All Accessible. Third-Party Libraries Option C: Third-party web components Not Accessible.