Skip to main content

Code Reviews Rules - Breaking change in LWC import and export statements

Valerio Chang avatar
Written by Valerio Chang
Updated over a week 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 behaviors in Lightning Web Components.

Scope

  • LWC

Related resources

Did this answer your question?