Skip to main content
All CollectionsRule documentationRelease readiness
Breaking change in LWC import and export statements
Breaking change in LWC import and export statements
Gabriele Gallo Stampino avatar
Written by Gabriele Gallo Stampino
Updated over a month ago

Rationale

Salesforce prevents the use of bare imports, bare exports, and exports from the lwc package to ensure developers do not unintentionally access private or internal APIs.

This rule detects invalid import/export patterns, prevents deployment errors and reduces the risk of relying on unintended behaviours in Lightning Web Components.

Scope

  • LWC

Related resources

Did this answer your question?